118
119
grid.row_spacing = 6;
119
120
grid.hexpand = true;
122
var monitors_box = new Box (Orientation.HORIZONTAL, 0);
121
123
var monitors_combo = new ComboBoxText ();
122
monitors_combo.halign = Align.END;
124
monitors_combo.hexpand = true;
123
125
for (var i=0;i<Gdk.Screen.get_default ().get_n_monitors (); i++)
124
126
monitors_combo.append (i.to_string (), _("Monitor")+" "+(i+1).to_string ());
125
127
monitors_combo.active = 0;
126
128
if (Gdk.Screen.get_default ().get_n_monitors () == 1)
127
129
monitors_combo.set_sensitive (false);
130
monitors_box.pack_start (new LLabel (_("Record video from")), false, true, 0);
131
monitors_box.pack_start (monitors_combo, true, true, 0);
129
133
var width = new SpinButton.with_range (50, Gdk.Screen.get_default ().get_width (), 1);
130
width.width_chars = 5;
134
width.width_chars = 4;
131
135
var width_lbl = new LLabel (_("Width"));
132
136
var height = new SpinButton.with_range (50, Gdk.Screen.get_default ().get_height (), 1);
133
height.width_chars = 5;
137
height.width_chars = 4;
134
138
var height_lbl = new LLabel (_("Height"));
135
139
var width_box = new Box (Orientation.HORIZONTAL, 0);
136
140
var height_box = new Box (Orientation.HORIZONTAL, 0);
153
157
var audio_source = new ComboBoxText ();
154
158
audio_source.append ("0", "Default");
155
159
audio_source.active = 0;
156
audio_source.halign = Align.END;
160
audio_source.hexpand = true;
157
161
audio_source.set_sensitive (false);
163
var audio_box = new Box (Orientation.HORIZONTAL, 0);
164
audio_box.pack_start (use_audio, false, true, 0);
165
audio_box.pack_start (audio_source, true, true, 0);
159
167
var start_bt = new Button.from_stock (Stock.MEDIA_RECORD);
160
168
start_bt.set_tooltip_text (_("Start recording"));
161
169
var cancel_bt = new Button.from_stock (Stock.CANCEL);
167
175
start_bt.can_default = true;
168
176
this.main_window.set_default (start_bt);
170
grid.attach (new LLabel (_("Record video from")), 0, 1, 2, 1);
171
grid.attach (monitors_combo, 2, 1, 1, 1);
179
grid.attach (monitors_box, 0, 1, 3, 1);
173
180
grid.attach (use_arealimit, 0, 2, 3, 1);
175
181
grid.attach (width_box, 1, 3, 1, 1);
177
182
grid.attach (height_box, 1, 4, 1, 1);
179
183
grid.attach (use_keyview, 0, 5, 3, 1);
182
185
//grid.attach (use_comp_sounds, 0, 5, 3, 1);
184
grid.attach (use_audio, 0, 7, 2, 1);
185
grid.attach (audio_source, 2, 7, 1, 1);
186
grid.attach (audio_box, 0, 7, 3, 1);
187
187
grid.attach (buttons, 0, 8, 3, 1);