Mercurial > audlegacy-plugins
annotate src/alarm/interface.c @ 1889:9deee216c094
Provide a proper path to the buildsystem root.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Wed, 26 Sep 2007 11:27:39 -0500 |
parents | 756ec3dcd3ec |
children | 3134a0987162 |
rev | line source |
---|---|
121 | 1 /* |
2 * DO NOT EDIT THIS FILE - it is generated by Glade. | |
3 */ | |
4 | |
1840 | 5 #include <config.h> |
121 | 6 |
7 #include <sys/types.h> | |
8 #include <sys/stat.h> | |
9 #include <unistd.h> | |
10 #include <string.h> | |
11 | |
12 #include <gdk/gdkkeysyms.h> | |
13 #include <gtk/gtk.h> | |
14 | |
15 #include "callbacks.h" | |
16 #include "interface.h" | |
17 #include "support.h" | |
18 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
19 #include <audacious/i18n.h> |
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
20 |
121 | 21 GtkWidget* |
22 create_about_dialog (void) | |
23 { | |
24 GtkWidget *about_dialog; | |
25 GtkWidget *dialog_vbox2; | |
26 GtkWidget *frame6; | |
27 GtkWidget *label18; | |
28 GtkWidget *dialog_action_area2; | |
29 GtkWidget *close; | |
30 | |
31 about_dialog = gtk_dialog_new (); | |
32 gtk_widget_set_name (about_dialog, "about_dialog"); | |
33 gtk_object_set_data (GTK_OBJECT (about_dialog), "about_dialog", about_dialog); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
34 gtk_window_set_title (GTK_WINDOW (about_dialog), _("About XMMS Alarm")); |
121 | 35 /* |
36 * GTK2 hack | |
37 * GTK_WINDOW (about_dialog)->type = GTK_WINDOW_DIALOG; | |
38 */ | |
39 GTK_WINDOW (about_dialog)->type = GTK_WINDOW_TOPLEVEL; | |
40 gtk_window_set_policy (GTK_WINDOW (about_dialog), FALSE, FALSE, TRUE); | |
41 | |
42 dialog_vbox2 = GTK_DIALOG (about_dialog)->vbox; | |
43 gtk_widget_set_name (dialog_vbox2, "dialog_vbox2"); | |
44 gtk_object_set_data (GTK_OBJECT (about_dialog), "dialog_vbox2", dialog_vbox2); | |
45 gtk_widget_show (dialog_vbox2); | |
46 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
47 frame6 = gtk_frame_new (_("XMMS Alarm")); |
121 | 48 gtk_widget_set_name (frame6, "frame6"); |
49 gtk_widget_ref (frame6); | |
50 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "frame6", frame6, | |
51 (GtkDestroyNotify) gtk_widget_unref); | |
52 gtk_widget_show (frame6); | |
53 gtk_box_pack_start (GTK_BOX (dialog_vbox2), frame6, TRUE, TRUE, 0); | |
54 gtk_container_set_border_width (GTK_CONTAINER (frame6), 10); | |
55 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
56 label18 = gtk_label_new (_("An XMMS plugin which can be used\nto start playing at a certain time.\n\nSend all complaints to:\nAdam Feakin <adamf@snika.uklinux.net>\nDaniel Stodden <stodden@in.tum.de>\n\nhttp://www.snika.uklinux.net/xmms-alarm/")); |
121 | 57 gtk_widget_set_name (label18, "label18"); |
58 gtk_widget_ref (label18); | |
59 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "label18", label18, | |
60 (GtkDestroyNotify) gtk_widget_unref); | |
61 gtk_widget_show (label18); | |
62 gtk_container_add (GTK_CONTAINER (frame6), label18); | |
63 gtk_misc_set_padding (GTK_MISC (label18), 10, 20); | |
64 | |
65 dialog_action_area2 = GTK_DIALOG (about_dialog)->action_area; | |
66 gtk_widget_set_name (dialog_action_area2, "dialog_action_area2"); | |
67 gtk_object_set_data (GTK_OBJECT (about_dialog), "dialog_action_area2", dialog_action_area2); | |
68 gtk_widget_show (dialog_action_area2); | |
69 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area2), 10); | |
70 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
71 close = gtk_button_new_with_label (_("Close")); |
121 | 72 gtk_widget_set_name (close, "close"); |
73 gtk_widget_ref (close); | |
74 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "close", close, | |
75 (GtkDestroyNotify) gtk_widget_unref); | |
76 gtk_widget_show (close); | |
77 gtk_box_pack_start (GTK_BOX (dialog_action_area2), close, FALSE, TRUE, 0); | |
78 GTK_WIDGET_SET_FLAGS (close, GTK_CAN_DEFAULT); | |
79 | |
80 gtk_signal_connect_object (GTK_OBJECT (close), "clicked", | |
81 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
82 GTK_OBJECT (about_dialog)); | |
83 | |
84 gtk_widget_grab_focus (close); | |
85 gtk_widget_grab_default (close); | |
86 return about_dialog; | |
87 } | |
88 | |
89 GtkWidget* | |
90 create_alarm_dialog (void) | |
91 { | |
92 GtkWidget *alarm_dialog; | |
93 GtkWidget *dialog_vbox3; | |
94 GtkWidget *label19; | |
95 GtkWidget *dialog_action_area3; | |
96 GtkWidget *button9; | |
97 | |
98 alarm_dialog = gtk_dialog_new (); | |
99 gtk_widget_set_name (alarm_dialog, "alarm_dialog"); | |
100 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "alarm_dialog", alarm_dialog); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
101 gtk_window_set_title (GTK_WINDOW (alarm_dialog), _("Alarm")); |
121 | 102 gtk_window_set_policy (GTK_WINDOW (alarm_dialog), FALSE, FALSE, FALSE); |
103 | |
104 dialog_vbox3 = GTK_DIALOG (alarm_dialog)->vbox; | |
105 gtk_widget_set_name (dialog_vbox3, "dialog_vbox3"); | |
106 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "dialog_vbox3", dialog_vbox3); | |
107 gtk_widget_show (dialog_vbox3); | |
108 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
109 label19 = gtk_label_new (_("This is your wakeup call.")); |
121 | 110 gtk_widget_set_name (label19, "label19"); |
111 gtk_widget_ref (label19); | |
112 gtk_object_set_data_full (GTK_OBJECT (alarm_dialog), "label19", label19, | |
113 (GtkDestroyNotify) gtk_widget_unref); | |
114 gtk_widget_show (label19); | |
115 gtk_box_pack_start (GTK_BOX (dialog_vbox3), label19, FALSE, TRUE, 0); | |
116 gtk_misc_set_padding (GTK_MISC (label19), 10, 10); | |
117 | |
118 dialog_action_area3 = GTK_DIALOG (alarm_dialog)->action_area; | |
119 gtk_widget_set_name (dialog_action_area3, "dialog_action_area3"); | |
120 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "dialog_action_area3", dialog_action_area3); | |
121 gtk_widget_show (dialog_action_area3); | |
122 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area3), 10); | |
123 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
124 button9 = gtk_button_new_with_label (_("OK")); |
121 | 125 gtk_widget_set_name (button9, "button9"); |
126 gtk_widget_ref (button9); | |
127 gtk_object_set_data_full (GTK_OBJECT (alarm_dialog), "button9", button9, | |
128 (GtkDestroyNotify) gtk_widget_unref); | |
129 gtk_widget_show (button9); | |
130 gtk_box_pack_start (GTK_BOX (dialog_action_area3), button9, FALSE, TRUE, 0); | |
131 GTK_WIDGET_SET_FLAGS (button9, GTK_CAN_DEFAULT); | |
132 | |
133 gtk_signal_connect (GTK_OBJECT (button9), "clicked", | |
134 GTK_SIGNAL_FUNC (alarm_stop_cancel), | |
135 NULL); | |
136 gtk_signal_connect_object (GTK_OBJECT (button9), "clicked", | |
137 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
138 GTK_OBJECT (alarm_dialog)); | |
139 | |
140 gtk_widget_grab_focus (button9); | |
141 gtk_widget_grab_default (button9); | |
142 return alarm_dialog; | |
143 } | |
144 | |
145 GtkWidget* | |
146 create_playlist_fileselection (void) | |
147 { | |
148 GtkWidget *playlist_fileselection; | |
149 GtkWidget *ok_button1; | |
150 GtkWidget *cancel_button1; | |
151 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
152 playlist_fileselection = gtk_file_selection_new (_("Select Playlist")); |
121 | 153 gtk_widget_set_name (playlist_fileselection, "playlist_fileselection"); |
154 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "playlist_fileselection", playlist_fileselection); | |
155 gtk_container_set_border_width (GTK_CONTAINER (playlist_fileselection), 10); | |
156 gtk_window_set_modal (GTK_WINDOW (playlist_fileselection), TRUE); | |
157 | |
158 ok_button1 = GTK_FILE_SELECTION (playlist_fileselection)->ok_button; | |
159 gtk_widget_set_name (ok_button1, "ok_button1"); | |
160 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "ok_button1", ok_button1); | |
161 gtk_widget_show (ok_button1); | |
162 GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT); | |
163 | |
164 cancel_button1 = GTK_FILE_SELECTION (playlist_fileselection)->cancel_button; | |
165 gtk_widget_set_name (cancel_button1, "cancel_button1"); | |
166 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "cancel_button1", cancel_button1); | |
167 gtk_widget_show (cancel_button1); | |
168 GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT); | |
169 | |
170 gtk_signal_connect (GTK_OBJECT (ok_button1), "clicked", | |
171 GTK_SIGNAL_FUNC (alarm_store_playlistname), | |
172 playlist_fileselection); | |
173 gtk_signal_connect_object (GTK_OBJECT (ok_button1), "clicked", | |
174 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
175 GTK_OBJECT (playlist_fileselection)); | |
176 gtk_signal_connect_object (GTK_OBJECT (cancel_button1), "clicked", | |
177 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
178 GTK_OBJECT (playlist_fileselection)); | |
179 | |
180 return playlist_fileselection; | |
181 } | |
182 | |
183 GtkWidget* | |
184 create_warning_dialog (void) | |
185 { | |
186 GtkWidget *warning_dialog; | |
187 GtkWidget *dialog_vbox4; | |
188 GtkWidget *frame9; | |
189 GtkWidget *label70; | |
190 GtkWidget *dialog_action_area4; | |
191 GtkWidget *button10; | |
192 | |
193 warning_dialog = gtk_dialog_new (); | |
194 gtk_widget_set_name (warning_dialog, "warning_dialog"); | |
195 gtk_object_set_data (GTK_OBJECT (warning_dialog), "warning_dialog", warning_dialog); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
196 gtk_window_set_title (GTK_WINDOW (warning_dialog), _("Sorry")); |
121 | 197 gtk_window_set_policy (GTK_WINDOW (warning_dialog), FALSE, FALSE, FALSE); |
198 | |
199 dialog_vbox4 = GTK_DIALOG (warning_dialog)->vbox; | |
200 gtk_widget_set_name (dialog_vbox4, "dialog_vbox4"); | |
201 gtk_object_set_data (GTK_OBJECT (warning_dialog), "dialog_vbox4", dialog_vbox4); | |
202 gtk_widget_show (dialog_vbox4); | |
203 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
204 frame9 = gtk_frame_new (_("Warning")); |
121 | 205 gtk_widget_set_name (frame9, "frame9"); |
206 gtk_widget_ref (frame9); | |
207 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "frame9", frame9, | |
208 (GtkDestroyNotify) gtk_widget_unref); | |
209 gtk_widget_show (frame9); | |
210 gtk_box_pack_start (GTK_BOX (dialog_vbox4), frame9, TRUE, TRUE, 0); | |
211 gtk_container_set_border_width (GTK_CONTAINER (frame9), 10); | |
212 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
213 label70 = gtk_label_new (_("For safety reasons the \"quiet\" time must be at least 65 seconds longer than the fading time, it must also be more than 10 seconds. This basically means that there is a bug in the code and until I find a way of really fixing it this message will appear :)\n\nYour fading settings have NOT been saved\n\n--\nAdam")); |
121 | 214 gtk_widget_set_name (label70, "label70"); |
215 gtk_widget_ref (label70); | |
216 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "label70", label70, | |
217 (GtkDestroyNotify) gtk_widget_unref); | |
218 gtk_widget_show (label70); | |
219 gtk_container_add (GTK_CONTAINER (frame9), label70); | |
220 gtk_label_set_line_wrap (GTK_LABEL (label70), TRUE); | |
221 gtk_misc_set_padding (GTK_MISC (label70), 10, 20); | |
222 | |
223 dialog_action_area4 = GTK_DIALOG (warning_dialog)->action_area; | |
224 gtk_widget_set_name (dialog_action_area4, "dialog_action_area4"); | |
225 gtk_object_set_data (GTK_OBJECT (warning_dialog), "dialog_action_area4", dialog_action_area4); | |
226 gtk_widget_show (dialog_action_area4); | |
227 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area4), 10); | |
228 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
229 button10 = gtk_button_new_with_label (_("Oh Well")); |
121 | 230 gtk_widget_set_name (button10, "button10"); |
231 gtk_widget_ref (button10); | |
232 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "button10", button10, | |
233 (GtkDestroyNotify) gtk_widget_unref); | |
234 gtk_widget_show (button10); | |
235 gtk_box_pack_start (GTK_BOX (dialog_action_area4), button10, FALSE, TRUE, 0); | |
236 GTK_WIDGET_SET_FLAGS (button10, GTK_CAN_DEFAULT); | |
237 | |
238 gtk_signal_connect_object (GTK_OBJECT (button10), "clicked", | |
239 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
240 GTK_OBJECT (warning_dialog)); | |
241 | |
242 gtk_widget_grab_focus (button10); | |
243 gtk_widget_grab_default (button10); | |
244 return warning_dialog; | |
245 } | |
246 | |
247 GtkWidget* | |
248 create_config_dialog (void) | |
249 { | |
250 GtkWidget *config_dialog; | |
251 GtkWidget *dialog_vbox5; | |
252 GtkWidget *notebook1; | |
253 GtkWidget *frame10; | |
254 GtkWidget *table3; | |
255 GtkWidget *hbox21; | |
256 GtkObject *stop_h_spin_adj; | |
257 GtkWidget *stop_h_spin; | |
258 GtkWidget *label75; | |
259 GtkWidget *hbox22; | |
260 GtkObject *alarm_h_spin_adj; | |
261 GtkWidget *alarm_h_spin; | |
262 GtkWidget *label76; | |
263 GtkWidget *hbox23; | |
264 GtkObject *alarm_m_spin_adj; | |
265 GtkWidget *alarm_m_spin; | |
266 GtkWidget *label77; | |
267 GtkWidget *hbox24; | |
268 GtkObject *stop_m_spin_adj; | |
269 GtkWidget *stop_m_spin; | |
270 GtkWidget *label78; | |
271 GtkWidget *stop_checkb; | |
272 GtkWidget *label79; | |
273 GtkWidget *label80; | |
274 GtkWidget *label71; | |
275 GtkWidget *frame15; | |
276 GtkWidget *table4; | |
277 GtkWidget *hbox31; | |
278 GtkWidget *mon_def; | |
279 GtkObject *mon_h_adj; | |
280 GtkWidget *mon_h; | |
281 GtkWidget *label89; | |
282 GtkObject *mon_m_adj; | |
283 GtkWidget *mon_m; | |
284 GtkWidget *hbox32; | |
285 GtkWidget *tue_def; | |
286 GtkObject *tue_h_adj; | |
287 GtkWidget *tue_h; | |
288 GtkWidget *label90; | |
289 GtkObject *tue_m_adj; | |
290 GtkWidget *tue_m; | |
291 GtkWidget *hbox33; | |
292 GtkWidget *wed_def; | |
293 GtkObject *wed_h_adj; | |
294 GtkWidget *wed_h; | |
295 GtkWidget *label91; | |
296 GtkObject *wed_m_adj; | |
297 GtkWidget *wed_m; | |
298 GtkWidget *hbox34; | |
299 GtkWidget *thu_def; | |
300 GtkObject *thu_h_adj; | |
301 GtkWidget *thu_h; | |
302 GtkWidget *label92; | |
303 GtkObject *thu_m_adj; | |
304 GtkWidget *thu_m; | |
305 GtkWidget *hbox35; | |
306 GtkWidget *fri_def; | |
307 GtkObject *fri_h_adj; | |
308 GtkWidget *fri_h; | |
309 GtkWidget *label93; | |
310 GtkObject *fri_m_adj; | |
311 GtkWidget *fri_m; | |
312 GtkWidget *hbox36; | |
313 GtkWidget *sat_def; | |
314 GtkObject *sat_h_adj; | |
315 GtkWidget *sat_h; | |
316 GtkWidget *label94; | |
317 GtkObject *sat_m_adj; | |
318 GtkWidget *sat_m; | |
319 GtkWidget *hbox37; | |
320 GtkWidget *sun_def; | |
321 GtkObject *sun_h_adj; | |
322 GtkWidget *sun_h; | |
323 GtkWidget *label95; | |
324 GtkObject *sun_m_adj; | |
325 GtkWidget *sun_m; | |
326 GtkWidget *label87; | |
327 GtkWidget *label88; | |
328 GtkWidget *tue_cb; | |
329 GtkWidget *wed_cb; | |
330 GtkWidget *thu_cb; | |
331 GtkWidget *fri_cb; | |
332 GtkWidget *sat_cb; | |
333 GtkWidget *sun_cb; | |
334 GtkWidget *mon_cb; | |
335 GtkWidget *label72; | |
336 GtkWidget *vbox8; | |
337 GtkWidget *frame11; | |
338 GtkWidget *alignment10; | |
339 GtkWidget *hbox25; | |
340 GtkObject *fading_spin_adj; | |
341 GtkWidget *fading_spin; | |
342 GtkWidget *label81; | |
343 GtkWidget *frame12; | |
344 GtkWidget *vbox9; | |
345 GtkWidget *alignment11; | |
346 GtkWidget *current_button; | |
347 GtkWidget *label82; | |
348 GtkWidget *hbox26; | |
349 GtkWidget *quiet_vol_scale; | |
350 GtkWidget *label83; | |
351 GtkWidget *hseparator2; | |
352 GtkWidget *label84; | |
353 GtkWidget *hbox27; | |
354 GtkWidget *vol_scale; | |
355 GtkWidget *label85; | |
356 GtkWidget *label73; | |
357 GtkWidget *vbox10; | |
358 GtkWidget *frame13; | |
359 GtkWidget *hbox28; | |
360 GtkWidget *cmd_entry; | |
361 GtkWidget *cmd_checkb; | |
362 GtkWidget *frame14; | |
363 GtkWidget *hbox29; | |
364 GtkWidget *playlist; | |
365 GtkWidget *playlist_browse_button; | |
366 GtkWidget *frame18; | |
367 GtkWidget *hbox38; | |
368 GtkWidget *reminder_cb; | |
369 GtkWidget *reminder_text; | |
370 GtkWidget *label74; | |
371 GtkWidget *frame16; | |
372 GtkWidget *scrolledwindow1; | |
373 GtkWidget *text1; | |
134
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
374 GtkTextBuffer *text1buffer; |
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
375 GtkTextIter iter; |
121 | 376 GtkWidget *label86; |
377 GtkWidget *dialog_action_area5; | |
378 GtkWidget *hbox20; | |
379 GtkWidget *ok_button; | |
380 GtkWidget *cancel_button; | |
381 GtkTooltips *tooltips; | |
382 | |
383 tooltips = gtk_tooltips_new (); | |
384 | |
385 config_dialog = gtk_dialog_new (); | |
386 gtk_widget_set_name (config_dialog, "config_dialog"); | |
387 gtk_object_set_data (GTK_OBJECT (config_dialog), "config_dialog", config_dialog); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
388 gtk_window_set_title (GTK_WINDOW (config_dialog), _("Alarm Settings")); |
121 | 389 gtk_window_set_policy (GTK_WINDOW (config_dialog), FALSE, FALSE, FALSE); |
390 | |
391 dialog_vbox5 = GTK_DIALOG (config_dialog)->vbox; | |
392 gtk_widget_set_name (dialog_vbox5, "dialog_vbox5"); | |
393 gtk_object_set_data (GTK_OBJECT (config_dialog), "dialog_vbox5", dialog_vbox5); | |
394 gtk_widget_show (dialog_vbox5); | |
395 | |
396 notebook1 = gtk_notebook_new (); | |
397 gtk_widget_set_name (notebook1, "notebook1"); | |
398 gtk_widget_ref (notebook1); | |
399 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "notebook1", notebook1, | |
400 (GtkDestroyNotify) gtk_widget_unref); | |
401 gtk_widget_show (notebook1); | |
402 gtk_box_pack_start (GTK_BOX (dialog_vbox5), notebook1, TRUE, TRUE, 0); | |
403 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
404 frame10 = gtk_frame_new (_("Time")); |
121 | 405 gtk_widget_set_name (frame10, "frame10"); |
406 gtk_widget_ref (frame10); | |
407 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame10", frame10, | |
408 (GtkDestroyNotify) gtk_widget_unref); | |
409 gtk_widget_show (frame10); | |
410 gtk_container_add (GTK_CONTAINER (notebook1), frame10); | |
411 gtk_container_set_border_width (GTK_CONTAINER (frame10), 10); | |
412 | |
413 table3 = gtk_table_new (2, 3, FALSE); | |
414 gtk_widget_set_name (table3, "table3"); | |
415 gtk_widget_ref (table3); | |
416 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "table3", table3, | |
417 (GtkDestroyNotify) gtk_widget_unref); | |
418 gtk_widget_show (table3); | |
419 gtk_container_add (GTK_CONTAINER (frame10), table3); | |
420 gtk_container_set_border_width (GTK_CONTAINER (table3), 8); | |
421 gtk_table_set_row_spacings (GTK_TABLE (table3), 5); | |
422 gtk_table_set_col_spacings (GTK_TABLE (table3), 15); | |
423 | |
424 hbox21 = gtk_hbox_new (FALSE, 0); | |
425 gtk_widget_set_name (hbox21, "hbox21"); | |
426 gtk_widget_ref (hbox21); | |
427 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox21", hbox21, | |
428 (GtkDestroyNotify) gtk_widget_unref); | |
429 gtk_widget_show (hbox21); | |
430 gtk_table_attach (GTK_TABLE (table3), hbox21, 1, 2, 1, 2, | |
431 (GtkAttachOptions) (GTK_FILL), | |
432 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
433 | |
434 stop_h_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10); | |
435 stop_h_spin = gtk_spin_button_new (GTK_ADJUSTMENT (stop_h_spin_adj), 1, 0); | |
436 gtk_widget_set_name (stop_h_spin, "stop_h_spin"); | |
437 gtk_widget_ref (stop_h_spin); | |
438 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_h_spin", stop_h_spin, | |
439 (GtkDestroyNotify) gtk_widget_unref); | |
440 gtk_widget_show (stop_h_spin); | |
441 gtk_box_pack_start (GTK_BOX (hbox21), stop_h_spin, FALSE, FALSE, 0); | |
442 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (stop_h_spin), TRUE); | |
443 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (stop_h_spin), GTK_UPDATE_IF_VALID); | |
444 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
445 label75 = gtk_label_new (_("hours")); |
121 | 446 gtk_widget_set_name (label75, "label75"); |
447 gtk_widget_ref (label75); | |
448 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label75", label75, | |
449 (GtkDestroyNotify) gtk_widget_unref); | |
450 gtk_widget_show (label75); | |
451 gtk_box_pack_start (GTK_BOX (hbox21), label75, FALSE, FALSE, 0); | |
452 | |
453 hbox22 = gtk_hbox_new (FALSE, 0); | |
454 gtk_widget_set_name (hbox22, "hbox22"); | |
455 gtk_widget_ref (hbox22); | |
456 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox22", hbox22, | |
457 (GtkDestroyNotify) gtk_widget_unref); | |
458 gtk_widget_show (hbox22); | |
459 gtk_table_attach (GTK_TABLE (table3), hbox22, 1, 2, 0, 1, | |
460 (GtkAttachOptions) (GTK_FILL), | |
461 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
462 | |
463 alarm_h_spin_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
464 alarm_h_spin = gtk_spin_button_new (GTK_ADJUSTMENT (alarm_h_spin_adj), 1, 0); | |
465 gtk_widget_set_name (alarm_h_spin, "alarm_h_spin"); | |
466 gtk_widget_ref (alarm_h_spin); | |
467 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alarm_h_spin", alarm_h_spin, | |
468 (GtkDestroyNotify) gtk_widget_unref); | |
469 gtk_widget_show (alarm_h_spin); | |
470 gtk_box_pack_start (GTK_BOX (hbox22), alarm_h_spin, FALSE, FALSE, 0); | |
471 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (alarm_h_spin), TRUE); | |
472 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (alarm_h_spin), GTK_UPDATE_IF_VALID); | |
473 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (alarm_h_spin), TRUE); | |
474 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
475 label76 = gtk_label_new (":"); |
121 | 476 gtk_widget_set_name (label76, "label76"); |
477 gtk_widget_ref (label76); | |
478 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label76", label76, | |
479 (GtkDestroyNotify) gtk_widget_unref); | |
480 gtk_widget_show (label76); | |
481 gtk_box_pack_start (GTK_BOX (hbox22), label76, FALSE, FALSE, 0); | |
482 gtk_misc_set_padding (GTK_MISC (label76), 5, 0); | |
483 | |
484 hbox23 = gtk_hbox_new (FALSE, 0); | |
485 gtk_widget_set_name (hbox23, "hbox23"); | |
486 gtk_widget_ref (hbox23); | |
487 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox23", hbox23, | |
488 (GtkDestroyNotify) gtk_widget_unref); | |
489 gtk_widget_show (hbox23); | |
490 gtk_table_attach (GTK_TABLE (table3), hbox23, 2, 3, 0, 1, | |
491 (GtkAttachOptions) (GTK_FILL), | |
492 (GtkAttachOptions) (GTK_FILL), 0, 0); | |
493 | |
494 alarm_m_spin_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
495 alarm_m_spin = gtk_spin_button_new (GTK_ADJUSTMENT (alarm_m_spin_adj), 1, 0); | |
496 gtk_widget_set_name (alarm_m_spin, "alarm_m_spin"); | |
497 gtk_widget_ref (alarm_m_spin); | |
498 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alarm_m_spin", alarm_m_spin, | |
499 (GtkDestroyNotify) gtk_widget_unref); | |
500 gtk_widget_show (alarm_m_spin); | |
501 gtk_box_pack_start (GTK_BOX (hbox23), alarm_m_spin, FALSE, TRUE, 0); | |
502 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (alarm_m_spin), TRUE); | |
503 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (alarm_m_spin), GTK_UPDATE_IF_VALID); | |
504 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (alarm_m_spin), TRUE); | |
505 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
506 label77 = gtk_label_new (_("h")); |
121 | 507 gtk_widget_set_name (label77, "label77"); |
508 gtk_widget_ref (label77); | |
509 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label77", label77, | |
510 (GtkDestroyNotify) gtk_widget_unref); | |
511 gtk_widget_show (label77); | |
512 gtk_box_pack_start (GTK_BOX (hbox23), label77, FALSE, FALSE, 0); | |
513 | |
514 hbox24 = gtk_hbox_new (FALSE, 0); | |
515 gtk_widget_set_name (hbox24, "hbox24"); | |
516 gtk_widget_ref (hbox24); | |
517 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox24", hbox24, | |
518 (GtkDestroyNotify) gtk_widget_unref); | |
519 gtk_widget_show (hbox24); | |
520 gtk_table_attach (GTK_TABLE (table3), hbox24, 2, 3, 1, 2, | |
521 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), | |
522 (GtkAttachOptions) (GTK_FILL), 0, 0); | |
523 | |
524 stop_m_spin_adj = gtk_adjustment_new (0, 0, 59, 1, 10, 10); | |
525 stop_m_spin = gtk_spin_button_new (GTK_ADJUSTMENT (stop_m_spin_adj), 1, 0); | |
526 gtk_widget_set_name (stop_m_spin, "stop_m_spin"); | |
527 gtk_widget_ref (stop_m_spin); | |
528 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_m_spin", stop_m_spin, | |
529 (GtkDestroyNotify) gtk_widget_unref); | |
530 gtk_widget_show (stop_m_spin); | |
531 gtk_box_pack_start (GTK_BOX (hbox24), stop_m_spin, FALSE, FALSE, 0); | |
532 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (stop_m_spin), TRUE); | |
533 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (stop_m_spin), GTK_UPDATE_IF_VALID); | |
534 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_m_spin), TRUE); | |
535 | |
1584
a6115d004ec3
Adapted plugins for internationalisation, update-po, German translation
mf0102 <0102@gmx.at>
parents:
1538
diff
changeset
|
536 label78 = gtk_label_new (_("minutes")); |
121 | 537 gtk_widget_set_name (label78, "label78"); |
538 gtk_widget_ref (label78); | |
539 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label78", label78, | |
540 (GtkDestroyNotify) gtk_widget_unref); | |
541 gtk_widget_show (label78); | |
542 gtk_box_pack_start (GTK_BOX (hbox24), label78, FALSE, FALSE, 0); | |
543 | |
544 stop_checkb = gtk_check_button_new (); | |
545 gtk_widget_set_name (stop_checkb, "stop_checkb"); | |
546 gtk_widget_ref (stop_checkb); | |
547 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_checkb", stop_checkb, | |
548 (GtkDestroyNotify) gtk_widget_unref); | |
549 gtk_widget_show (stop_checkb); | |
550 gtk_table_attach (GTK_TABLE (table3), stop_checkb, 0, 1, 1, 2, | |
551 (GtkAttachOptions) (GTK_FILL), | |
552 (GtkAttachOptions) (0), 0, 0); | |
553 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
554 label79 = gtk_label_new (_("Quiet after:")); |
121 | 555 gtk_widget_set_name (label79, "label79"); |
556 gtk_widget_ref (label79); | |
557 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label79", label79, | |
558 (GtkDestroyNotify) gtk_widget_unref); | |
559 gtk_widget_show (label79); | |
560 gtk_container_add (GTK_CONTAINER (stop_checkb), label79); | |
561 gtk_label_set_justify (GTK_LABEL (label79), GTK_JUSTIFY_LEFT); | |
562 gtk_misc_set_alignment (GTK_MISC (label79), 0, 0.5); | |
563 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
564 label80 = gtk_label_new (_("Alarm at (default):")); |
121 | 565 gtk_widget_set_name (label80, "label80"); |
566 gtk_widget_ref (label80); | |
567 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label80", label80, | |
568 (GtkDestroyNotify) gtk_widget_unref); | |
569 gtk_widget_show (label80); | |
570 gtk_table_attach (GTK_TABLE (table3), label80, 0, 1, 0, 1, | |
571 (GtkAttachOptions) (GTK_FILL), | |
572 (GtkAttachOptions) (0), 0, 0); | |
573 gtk_label_set_justify (GTK_LABEL (label80), GTK_JUSTIFY_LEFT); | |
574 gtk_misc_set_alignment (GTK_MISC (label80), 0, 0.5); | |
575 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
576 label71 = gtk_label_new (_("Time")); |
121 | 577 gtk_widget_set_name (label71, "label71"); |
578 gtk_widget_ref (label71); | |
579 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label71", label71, | |
580 (GtkDestroyNotify) gtk_widget_unref); | |
581 gtk_widget_show (label71); | |
582 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label71); | |
583 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
584 frame15 = gtk_frame_new (_("Choose the days for the alarm to come on")); |
121 | 585 gtk_widget_set_name (frame15, "frame15"); |
586 gtk_widget_ref (frame15); | |
587 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame15", frame15, | |
588 (GtkDestroyNotify) gtk_widget_unref); | |
589 gtk_widget_show (frame15); | |
590 gtk_container_add (GTK_CONTAINER (notebook1), frame15); | |
591 gtk_container_set_border_width (GTK_CONTAINER (frame15), 10); | |
592 | |
593 table4 = gtk_table_new (8, 2, FALSE); | |
594 gtk_widget_set_name (table4, "table4"); | |
595 gtk_widget_ref (table4); | |
596 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "table4", table4, | |
597 (GtkDestroyNotify) gtk_widget_unref); | |
598 gtk_widget_show (table4); | |
599 gtk_container_add (GTK_CONTAINER (frame15), table4); | |
600 gtk_container_set_border_width (GTK_CONTAINER (table4), 5); | |
601 | |
602 hbox31 = gtk_hbox_new (FALSE, 0); | |
603 gtk_widget_set_name (hbox31, "hbox31"); | |
604 gtk_widget_ref (hbox31); | |
605 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox31", hbox31, | |
606 (GtkDestroyNotify) gtk_widget_unref); | |
607 gtk_widget_show (hbox31); | |
608 gtk_table_attach (GTK_TABLE (table4), hbox31, 1, 2, 1, 2, | |
609 (GtkAttachOptions) (GTK_FILL), | |
610 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
611 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
612 mon_def = gtk_check_button_new_with_label (_("Default")); |
121 | 613 gtk_widget_set_name (mon_def, "mon_def"); |
614 gtk_widget_ref (mon_def); | |
615 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_def", mon_def, | |
616 (GtkDestroyNotify) gtk_widget_unref); | |
617 gtk_widget_show (mon_def); | |
618 gtk_box_pack_start (GTK_BOX (hbox31), mon_def, FALSE, FALSE, 0); | |
619 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mon_def), TRUE); | |
620 | |
621 mon_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
622 mon_h = gtk_spin_button_new (GTK_ADJUSTMENT (mon_h_adj), 1, 0); | |
623 gtk_widget_set_name (mon_h, "mon_h"); | |
624 gtk_widget_ref (mon_h); | |
625 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_h", mon_h, | |
626 (GtkDestroyNotify) gtk_widget_unref); | |
627 gtk_widget_show (mon_h); | |
628 gtk_box_pack_start (GTK_BOX (hbox31), mon_h, TRUE, TRUE, 0); | |
629 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (mon_h), TRUE); | |
630 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
631 label89 = gtk_label_new (":"); |
121 | 632 gtk_widget_set_name (label89, "label89"); |
633 gtk_widget_ref (label89); | |
634 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label89", label89, | |
635 (GtkDestroyNotify) gtk_widget_unref); | |
636 gtk_widget_show (label89); | |
637 gtk_box_pack_start (GTK_BOX (hbox31), label89, FALSE, FALSE, 0); | |
638 | |
639 mon_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
640 mon_m = gtk_spin_button_new (GTK_ADJUSTMENT (mon_m_adj), 1, 0); | |
641 gtk_widget_set_name (mon_m, "mon_m"); | |
642 gtk_widget_ref (mon_m); | |
643 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_m", mon_m, | |
644 (GtkDestroyNotify) gtk_widget_unref); | |
645 gtk_widget_show (mon_m); | |
646 gtk_box_pack_start (GTK_BOX (hbox31), mon_m, TRUE, TRUE, 0); | |
647 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (mon_m), TRUE); | |
648 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (mon_m), TRUE); | |
649 | |
650 hbox32 = gtk_hbox_new (FALSE, 0); | |
651 gtk_widget_set_name (hbox32, "hbox32"); | |
652 gtk_widget_ref (hbox32); | |
653 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox32", hbox32, | |
654 (GtkDestroyNotify) gtk_widget_unref); | |
655 gtk_widget_show (hbox32); | |
656 gtk_table_attach (GTK_TABLE (table4), hbox32, 1, 2, 2, 3, | |
657 (GtkAttachOptions) (GTK_FILL), | |
658 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
659 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
660 tue_def = gtk_check_button_new_with_label (_("Default")); |
121 | 661 gtk_widget_set_name (tue_def, "tue_def"); |
662 gtk_widget_ref (tue_def); | |
663 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_def", tue_def, | |
664 (GtkDestroyNotify) gtk_widget_unref); | |
665 gtk_widget_show (tue_def); | |
666 gtk_box_pack_start (GTK_BOX (hbox32), tue_def, FALSE, FALSE, 0); | |
667 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tue_def), TRUE); | |
668 | |
669 tue_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
670 tue_h = gtk_spin_button_new (GTK_ADJUSTMENT (tue_h_adj), 1, 0); | |
671 gtk_widget_set_name (tue_h, "tue_h"); | |
672 gtk_widget_ref (tue_h); | |
673 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_h", tue_h, | |
674 (GtkDestroyNotify) gtk_widget_unref); | |
675 gtk_widget_show (tue_h); | |
676 gtk_box_pack_start (GTK_BOX (hbox32), tue_h, TRUE, TRUE, 0); | |
677 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tue_h), TRUE); | |
678 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
679 label90 = gtk_label_new (":"); |
121 | 680 gtk_widget_set_name (label90, "label90"); |
681 gtk_widget_ref (label90); | |
682 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label90", label90, | |
683 (GtkDestroyNotify) gtk_widget_unref); | |
684 gtk_widget_show (label90); | |
685 gtk_box_pack_start (GTK_BOX (hbox32), label90, FALSE, FALSE, 0); | |
686 | |
687 tue_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
688 tue_m = gtk_spin_button_new (GTK_ADJUSTMENT (tue_m_adj), 1, 0); | |
689 gtk_widget_set_name (tue_m, "tue_m"); | |
690 gtk_widget_ref (tue_m); | |
691 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_m", tue_m, | |
692 (GtkDestroyNotify) gtk_widget_unref); | |
693 gtk_widget_show (tue_m); | |
694 gtk_box_pack_start (GTK_BOX (hbox32), tue_m, TRUE, TRUE, 0); | |
695 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tue_m), TRUE); | |
696 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (tue_m), TRUE); | |
697 | |
698 hbox33 = gtk_hbox_new (FALSE, 0); | |
699 gtk_widget_set_name (hbox33, "hbox33"); | |
700 gtk_widget_ref (hbox33); | |
701 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox33", hbox33, | |
702 (GtkDestroyNotify) gtk_widget_unref); | |
703 gtk_widget_show (hbox33); | |
704 gtk_table_attach (GTK_TABLE (table4), hbox33, 1, 2, 3, 4, | |
705 (GtkAttachOptions) (GTK_FILL), | |
706 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
707 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
708 wed_def = gtk_check_button_new_with_label (_("Default")); |
121 | 709 gtk_widget_set_name (wed_def, "wed_def"); |
710 gtk_widget_ref (wed_def); | |
711 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_def", wed_def, | |
712 (GtkDestroyNotify) gtk_widget_unref); | |
713 gtk_widget_show (wed_def); | |
714 gtk_box_pack_start (GTK_BOX (hbox33), wed_def, FALSE, FALSE, 0); | |
715 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wed_def), TRUE); | |
716 | |
717 wed_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
718 wed_h = gtk_spin_button_new (GTK_ADJUSTMENT (wed_h_adj), 1, 0); | |
719 gtk_widget_set_name (wed_h, "wed_h"); | |
720 gtk_widget_ref (wed_h); | |
721 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_h", wed_h, | |
722 (GtkDestroyNotify) gtk_widget_unref); | |
723 gtk_widget_show (wed_h); | |
724 gtk_box_pack_start (GTK_BOX (hbox33), wed_h, TRUE, TRUE, 0); | |
725 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wed_h), TRUE); | |
726 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
727 label91 = gtk_label_new (":"); |
121 | 728 gtk_widget_set_name (label91, "label91"); |
729 gtk_widget_ref (label91); | |
730 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label91", label91, | |
731 (GtkDestroyNotify) gtk_widget_unref); | |
732 gtk_widget_show (label91); | |
733 gtk_box_pack_start (GTK_BOX (hbox33), label91, FALSE, FALSE, 0); | |
734 | |
735 wed_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
736 wed_m = gtk_spin_button_new (GTK_ADJUSTMENT (wed_m_adj), 1, 0); | |
737 gtk_widget_set_name (wed_m, "wed_m"); | |
738 gtk_widget_ref (wed_m); | |
739 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_m", wed_m, | |
740 (GtkDestroyNotify) gtk_widget_unref); | |
741 gtk_widget_show (wed_m); | |
742 gtk_box_pack_start (GTK_BOX (hbox33), wed_m, TRUE, TRUE, 0); | |
743 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wed_m), TRUE); | |
744 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (wed_m), TRUE); | |
745 | |
746 hbox34 = gtk_hbox_new (FALSE, 0); | |
747 gtk_widget_set_name (hbox34, "hbox34"); | |
748 gtk_widget_ref (hbox34); | |
749 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox34", hbox34, | |
750 (GtkDestroyNotify) gtk_widget_unref); | |
751 gtk_widget_show (hbox34); | |
752 gtk_table_attach (GTK_TABLE (table4), hbox34, 1, 2, 4, 5, | |
753 (GtkAttachOptions) (GTK_FILL), | |
754 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
755 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
756 thu_def = gtk_check_button_new_with_label (_("Default")); |
121 | 757 gtk_widget_set_name (thu_def, "thu_def"); |
758 gtk_widget_ref (thu_def); | |
759 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_def", thu_def, | |
760 (GtkDestroyNotify) gtk_widget_unref); | |
761 gtk_widget_show (thu_def); | |
762 gtk_box_pack_start (GTK_BOX (hbox34), thu_def, FALSE, FALSE, 0); | |
763 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (thu_def), TRUE); | |
764 | |
765 thu_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
766 thu_h = gtk_spin_button_new (GTK_ADJUSTMENT (thu_h_adj), 1, 0); | |
767 gtk_widget_set_name (thu_h, "thu_h"); | |
768 gtk_widget_ref (thu_h); | |
769 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_h", thu_h, | |
770 (GtkDestroyNotify) gtk_widget_unref); | |
771 gtk_widget_show (thu_h); | |
772 gtk_box_pack_start (GTK_BOX (hbox34), thu_h, TRUE, TRUE, 0); | |
773 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thu_h), TRUE); | |
774 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
775 label92 = gtk_label_new (":"); |
121 | 776 gtk_widget_set_name (label92, "label92"); |
777 gtk_widget_ref (label92); | |
778 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label92", label92, | |
779 (GtkDestroyNotify) gtk_widget_unref); | |
780 gtk_widget_show (label92); | |
781 gtk_box_pack_start (GTK_BOX (hbox34), label92, FALSE, FALSE, 0); | |
782 | |
783 thu_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
784 thu_m = gtk_spin_button_new (GTK_ADJUSTMENT (thu_m_adj), 1, 0); | |
785 gtk_widget_set_name (thu_m, "thu_m"); | |
786 gtk_widget_ref (thu_m); | |
787 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_m", thu_m, | |
788 (GtkDestroyNotify) gtk_widget_unref); | |
789 gtk_widget_show (thu_m); | |
790 gtk_box_pack_start (GTK_BOX (hbox34), thu_m, TRUE, TRUE, 0); | |
791 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thu_m), TRUE); | |
792 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (thu_m), TRUE); | |
793 | |
794 hbox35 = gtk_hbox_new (FALSE, 0); | |
795 gtk_widget_set_name (hbox35, "hbox35"); | |
796 gtk_widget_ref (hbox35); | |
797 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox35", hbox35, | |
798 (GtkDestroyNotify) gtk_widget_unref); | |
799 gtk_widget_show (hbox35); | |
800 gtk_table_attach (GTK_TABLE (table4), hbox35, 1, 2, 5, 6, | |
801 (GtkAttachOptions) (GTK_FILL), | |
802 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
803 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
804 fri_def = gtk_check_button_new_with_label (_("Default")); |
121 | 805 gtk_widget_set_name (fri_def, "fri_def"); |
806 gtk_widget_ref (fri_def); | |
807 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_def", fri_def, | |
808 (GtkDestroyNotify) gtk_widget_unref); | |
809 gtk_widget_show (fri_def); | |
810 gtk_box_pack_start (GTK_BOX (hbox35), fri_def, FALSE, FALSE, 0); | |
811 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fri_def), TRUE); | |
812 | |
813 fri_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
814 fri_h = gtk_spin_button_new (GTK_ADJUSTMENT (fri_h_adj), 1, 0); | |
815 gtk_widget_set_name (fri_h, "fri_h"); | |
816 gtk_widget_ref (fri_h); | |
817 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_h", fri_h, | |
818 (GtkDestroyNotify) gtk_widget_unref); | |
819 gtk_widget_show (fri_h); | |
820 gtk_box_pack_start (GTK_BOX (hbox35), fri_h, TRUE, TRUE, 0); | |
821 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fri_h), TRUE); | |
822 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
823 label93 = gtk_label_new (":"); |
121 | 824 gtk_widget_set_name (label93, "label93"); |
825 gtk_widget_ref (label93); | |
826 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label93", label93, | |
827 (GtkDestroyNotify) gtk_widget_unref); | |
828 gtk_widget_show (label93); | |
829 gtk_box_pack_start (GTK_BOX (hbox35), label93, FALSE, FALSE, 0); | |
830 | |
831 fri_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
832 fri_m = gtk_spin_button_new (GTK_ADJUSTMENT (fri_m_adj), 1, 0); | |
833 gtk_widget_set_name (fri_m, "fri_m"); | |
834 gtk_widget_ref (fri_m); | |
835 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_m", fri_m, | |
836 (GtkDestroyNotify) gtk_widget_unref); | |
837 gtk_widget_show (fri_m); | |
838 gtk_box_pack_start (GTK_BOX (hbox35), fri_m, TRUE, TRUE, 0); | |
839 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fri_m), TRUE); | |
840 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (fri_m), TRUE); | |
841 | |
842 hbox36 = gtk_hbox_new (FALSE, 0); | |
843 gtk_widget_set_name (hbox36, "hbox36"); | |
844 gtk_widget_ref (hbox36); | |
845 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox36", hbox36, | |
846 (GtkDestroyNotify) gtk_widget_unref); | |
847 gtk_widget_show (hbox36); | |
848 gtk_table_attach (GTK_TABLE (table4), hbox36, 1, 2, 6, 7, | |
849 (GtkAttachOptions) (GTK_FILL), | |
850 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
851 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
852 sat_def = gtk_check_button_new_with_label (_("Default")); |
121 | 853 gtk_widget_set_name (sat_def, "sat_def"); |
854 gtk_widget_ref (sat_def); | |
855 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_def", sat_def, | |
856 (GtkDestroyNotify) gtk_widget_unref); | |
857 gtk_widget_show (sat_def); | |
858 gtk_box_pack_start (GTK_BOX (hbox36), sat_def, FALSE, FALSE, 0); | |
859 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sat_def), TRUE); | |
860 | |
861 sat_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
862 sat_h = gtk_spin_button_new (GTK_ADJUSTMENT (sat_h_adj), 1, 0); | |
863 gtk_widget_set_name (sat_h, "sat_h"); | |
864 gtk_widget_ref (sat_h); | |
865 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_h", sat_h, | |
866 (GtkDestroyNotify) gtk_widget_unref); | |
867 gtk_widget_show (sat_h); | |
868 gtk_box_pack_start (GTK_BOX (hbox36), sat_h, TRUE, TRUE, 0); | |
869 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sat_h), TRUE); | |
870 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
871 label94 = gtk_label_new (":"); |
121 | 872 gtk_widget_set_name (label94, "label94"); |
873 gtk_widget_ref (label94); | |
874 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label94", label94, | |
875 (GtkDestroyNotify) gtk_widget_unref); | |
876 gtk_widget_show (label94); | |
877 gtk_box_pack_start (GTK_BOX (hbox36), label94, FALSE, FALSE, 0); | |
878 | |
879 sat_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
880 sat_m = gtk_spin_button_new (GTK_ADJUSTMENT (sat_m_adj), 1, 0); | |
881 gtk_widget_set_name (sat_m, "sat_m"); | |
882 gtk_widget_ref (sat_m); | |
883 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_m", sat_m, | |
884 (GtkDestroyNotify) gtk_widget_unref); | |
885 gtk_widget_show (sat_m); | |
886 gtk_box_pack_start (GTK_BOX (hbox36), sat_m, TRUE, TRUE, 0); | |
887 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sat_m), TRUE); | |
888 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (sat_m), TRUE); | |
889 | |
890 hbox37 = gtk_hbox_new (FALSE, 0); | |
891 gtk_widget_set_name (hbox37, "hbox37"); | |
892 gtk_widget_ref (hbox37); | |
893 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox37", hbox37, | |
894 (GtkDestroyNotify) gtk_widget_unref); | |
895 gtk_widget_show (hbox37); | |
896 gtk_table_attach (GTK_TABLE (table4), hbox37, 1, 2, 7, 8, | |
897 (GtkAttachOptions) (GTK_FILL), | |
898 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
899 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
900 sun_def = gtk_check_button_new_with_label (_("Default")); |
121 | 901 gtk_widget_set_name (sun_def, "sun_def"); |
902 gtk_widget_ref (sun_def); | |
903 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_def", sun_def, | |
904 (GtkDestroyNotify) gtk_widget_unref); | |
905 gtk_widget_show (sun_def); | |
906 gtk_box_pack_start (GTK_BOX (hbox37), sun_def, FALSE, FALSE, 0); | |
907 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sun_def), TRUE); | |
908 | |
909 sun_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10); | |
910 sun_h = gtk_spin_button_new (GTK_ADJUSTMENT (sun_h_adj), 1, 0); | |
911 gtk_widget_set_name (sun_h, "sun_h"); | |
912 gtk_widget_ref (sun_h); | |
913 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_h", sun_h, | |
914 (GtkDestroyNotify) gtk_widget_unref); | |
915 gtk_widget_show (sun_h); | |
916 gtk_box_pack_start (GTK_BOX (hbox37), sun_h, TRUE, TRUE, 0); | |
917 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sun_h), TRUE); | |
918 | |
1538
da1aa3c38cda
i'm currently "update-po"ing like a madman with a Chainsaw ;-)
mf0102 <0102@gmx.at>
parents:
1298
diff
changeset
|
919 label95 = gtk_label_new (":"); |
121 | 920 gtk_widget_set_name (label95, "label95"); |
921 gtk_widget_ref (label95); | |
922 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label95", label95, | |
923 (GtkDestroyNotify) gtk_widget_unref); | |
924 gtk_widget_show (label95); | |
925 gtk_box_pack_start (GTK_BOX (hbox37), label95, FALSE, FALSE, 0); | |
926 | |
927 sun_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10); | |
928 sun_m = gtk_spin_button_new (GTK_ADJUSTMENT (sun_m_adj), 1, 0); | |
929 gtk_widget_set_name (sun_m, "sun_m"); | |
930 gtk_widget_ref (sun_m); | |
931 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_m", sun_m, | |
932 (GtkDestroyNotify) gtk_widget_unref); | |
933 gtk_widget_show (sun_m); | |
934 gtk_box_pack_start (GTK_BOX (hbox37), sun_m, TRUE, TRUE, 0); | |
935 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sun_m), TRUE); | |
936 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (sun_m), TRUE); | |
937 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
938 label87 = gtk_label_new (_("Day")); |
121 | 939 gtk_widget_set_name (label87, "label87"); |
940 gtk_widget_ref (label87); | |
941 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label87", label87, | |
942 (GtkDestroyNotify) gtk_widget_unref); | |
943 gtk_widget_show (label87); | |
944 gtk_table_attach (GTK_TABLE (table4), label87, 0, 1, 0, 1, | |
945 (GtkAttachOptions) (0), | |
946 (GtkAttachOptions) (0), 0, 0); | |
947 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
948 label88 = gtk_label_new (_("Time")); |
121 | 949 gtk_widget_set_name (label88, "label88"); |
950 gtk_widget_ref (label88); | |
951 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label88", label88, | |
952 (GtkDestroyNotify) gtk_widget_unref); | |
953 gtk_widget_show (label88); | |
954 gtk_table_attach (GTK_TABLE (table4), label88, 1, 2, 0, 1, | |
955 (GtkAttachOptions) (0), | |
956 (GtkAttachOptions) (0), 0, 0); | |
957 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
958 tue_cb = gtk_check_button_new_with_label (_("Tuesday")); |
121 | 959 gtk_widget_set_name (tue_cb, "tue_cb"); |
960 gtk_widget_ref (tue_cb); | |
961 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_cb", tue_cb, | |
962 (GtkDestroyNotify) gtk_widget_unref); | |
963 gtk_widget_show (tue_cb); | |
964 gtk_table_attach (GTK_TABLE (table4), tue_cb, 0, 1, 2, 3, | |
965 (GtkAttachOptions) (0), | |
966 (GtkAttachOptions) (0), 0, 0); | |
967 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tue_cb), TRUE); | |
968 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
969 wed_cb = gtk_check_button_new_with_label (_("Wednesday")); |
121 | 970 gtk_widget_set_name (wed_cb, "wed_cb"); |
971 gtk_widget_ref (wed_cb); | |
972 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_cb", wed_cb, | |
973 (GtkDestroyNotify) gtk_widget_unref); | |
974 gtk_widget_show (wed_cb); | |
975 gtk_table_attach (GTK_TABLE (table4), wed_cb, 0, 1, 3, 4, | |
976 (GtkAttachOptions) (0), | |
977 (GtkAttachOptions) (0), 0, 0); | |
978 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wed_cb), TRUE); | |
979 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
980 thu_cb = gtk_check_button_new_with_label (_("Thursday")); |
121 | 981 gtk_widget_set_name (thu_cb, "thu_cb"); |
982 gtk_widget_ref (thu_cb); | |
983 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_cb", thu_cb, | |
984 (GtkDestroyNotify) gtk_widget_unref); | |
985 gtk_widget_show (thu_cb); | |
986 gtk_table_attach (GTK_TABLE (table4), thu_cb, 0, 1, 4, 5, | |
987 (GtkAttachOptions) (0), | |
988 (GtkAttachOptions) (0), 0, 0); | |
989 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (thu_cb), TRUE); | |
990 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
991 fri_cb = gtk_check_button_new_with_label (_("Friday")); |
121 | 992 gtk_widget_set_name (fri_cb, "fri_cb"); |
993 gtk_widget_ref (fri_cb); | |
994 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_cb", fri_cb, | |
995 (GtkDestroyNotify) gtk_widget_unref); | |
996 gtk_widget_show (fri_cb); | |
997 gtk_table_attach (GTK_TABLE (table4), fri_cb, 0, 1, 5, 6, | |
998 (GtkAttachOptions) (0), | |
999 (GtkAttachOptions) (0), 0, 0); | |
1000 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fri_cb), TRUE); | |
1001 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1002 sat_cb = gtk_check_button_new_with_label (_("Saturday")); |
121 | 1003 gtk_widget_set_name (sat_cb, "sat_cb"); |
1004 gtk_widget_ref (sat_cb); | |
1005 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_cb", sat_cb, | |
1006 (GtkDestroyNotify) gtk_widget_unref); | |
1007 gtk_widget_show (sat_cb); | |
1008 gtk_table_attach (GTK_TABLE (table4), sat_cb, 0, 1, 6, 7, | |
1009 (GtkAttachOptions) (0), | |
1010 (GtkAttachOptions) (0), 0, 0); | |
1011 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sat_cb), TRUE); | |
1012 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1013 sun_cb = gtk_check_button_new_with_label (_("Sunday")); |
121 | 1014 gtk_widget_set_name (sun_cb, "sun_cb"); |
1015 gtk_widget_ref (sun_cb); | |
1016 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_cb", sun_cb, | |
1017 (GtkDestroyNotify) gtk_widget_unref); | |
1018 gtk_widget_show (sun_cb); | |
1019 gtk_table_attach (GTK_TABLE (table4), sun_cb, 0, 1, 7, 8, | |
1020 (GtkAttachOptions) (0), | |
1021 (GtkAttachOptions) (0), 0, 0); | |
1022 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1023 mon_cb = gtk_check_button_new_with_label (_("Monday")); |
121 | 1024 gtk_widget_set_name (mon_cb, "mon_cb"); |
1025 gtk_widget_ref (mon_cb); | |
1026 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_cb", mon_cb, | |
1027 (GtkDestroyNotify) gtk_widget_unref); | |
1028 gtk_widget_show (mon_cb); | |
1029 gtk_table_attach (GTK_TABLE (table4), mon_cb, 0, 1, 1, 2, | |
1030 (GtkAttachOptions) (0), | |
1031 (GtkAttachOptions) (0), 0, 0); | |
1032 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mon_cb), TRUE); | |
1033 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1034 label72 = gtk_label_new (_("Days")); |
121 | 1035 gtk_widget_set_name (label72, "label72"); |
1036 gtk_widget_ref (label72); | |
1037 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label72", label72, | |
1038 (GtkDestroyNotify) gtk_widget_unref); | |
1039 gtk_widget_show (label72); | |
1040 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label72); | |
1041 | |
1042 vbox8 = gtk_vbox_new (FALSE, 0); | |
1043 gtk_widget_set_name (vbox8, "vbox8"); | |
1044 gtk_widget_ref (vbox8); | |
1045 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox8", vbox8, | |
1046 (GtkDestroyNotify) gtk_widget_unref); | |
1047 gtk_widget_show (vbox8); | |
1048 gtk_container_add (GTK_CONTAINER (notebook1), vbox8); | |
1049 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1050 frame11 = gtk_frame_new (_("Fading")); |
121 | 1051 gtk_widget_set_name (frame11, "frame11"); |
1052 gtk_widget_ref (frame11); | |
1053 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame11", frame11, | |
1054 (GtkDestroyNotify) gtk_widget_unref); | |
1055 gtk_widget_show (frame11); | |
1056 gtk_box_pack_start (GTK_BOX (vbox8), frame11, TRUE, TRUE, 0); | |
1057 gtk_container_set_border_width (GTK_CONTAINER (frame11), 10); | |
1058 | |
1059 alignment10 = gtk_alignment_new (0, 0.5, 0.1, 1); | |
1060 gtk_widget_set_name (alignment10, "alignment10"); | |
1061 gtk_widget_ref (alignment10); | |
1062 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alignment10", alignment10, | |
1063 (GtkDestroyNotify) gtk_widget_unref); | |
1064 gtk_widget_show (alignment10); | |
1065 gtk_container_add (GTK_CONTAINER (frame11), alignment10); | |
1066 gtk_container_set_border_width (GTK_CONTAINER (alignment10), 8); | |
1067 | |
1068 hbox25 = gtk_hbox_new (FALSE, 0); | |
1069 gtk_widget_set_name (hbox25, "hbox25"); | |
1070 gtk_widget_ref (hbox25); | |
1071 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox25", hbox25, | |
1072 (GtkDestroyNotify) gtk_widget_unref); | |
1073 gtk_widget_show (hbox25); | |
1074 gtk_container_add (GTK_CONTAINER (alignment10), hbox25); | |
1075 | |
1076 fading_spin_adj = gtk_adjustment_new (120, 0, 3600, 1, 10, 10); | |
1077 fading_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fading_spin_adj), 1, 0); | |
1078 gtk_widget_set_name (fading_spin, "fading_spin"); | |
1079 gtk_widget_ref (fading_spin); | |
1080 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fading_spin", fading_spin, | |
1081 (GtkDestroyNotify) gtk_widget_unref); | |
1082 gtk_widget_show (fading_spin); | |
1083 gtk_box_pack_start (GTK_BOX (hbox25), fading_spin, TRUE, TRUE, 0); | |
1084 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fading_spin), TRUE); | |
1085 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (fading_spin), GTK_UPDATE_IF_VALID); | |
1086 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1087 label81 = gtk_label_new (_("seconds")); |
121 | 1088 gtk_widget_set_name (label81, "label81"); |
1089 gtk_widget_ref (label81); | |
1090 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label81", label81, | |
1091 (GtkDestroyNotify) gtk_widget_unref); | |
1092 gtk_widget_show (label81); | |
1093 gtk_box_pack_start (GTK_BOX (hbox25), label81, FALSE, TRUE, 0); | |
1094 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1095 frame12 = gtk_frame_new (_("Volume")); |
121 | 1096 gtk_widget_set_name (frame12, "frame12"); |
1097 gtk_widget_ref (frame12); | |
1098 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame12", frame12, | |
1099 (GtkDestroyNotify) gtk_widget_unref); | |
1100 gtk_widget_show (frame12); | |
1101 gtk_box_pack_start (GTK_BOX (vbox8), frame12, TRUE, TRUE, 0); | |
1102 gtk_container_set_border_width (GTK_CONTAINER (frame12), 10); | |
1103 | |
1104 vbox9 = gtk_vbox_new (FALSE, 10); | |
1105 gtk_widget_set_name (vbox9, "vbox9"); | |
1106 gtk_widget_ref (vbox9); | |
1107 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox9", vbox9, | |
1108 (GtkDestroyNotify) gtk_widget_unref); | |
1109 gtk_widget_show (vbox9); | |
1110 gtk_container_add (GTK_CONTAINER (frame12), vbox9); | |
1111 gtk_container_set_border_width (GTK_CONTAINER (vbox9), 8); | |
1112 | |
1113 alignment11 = gtk_alignment_new (1, 0.5, 0.1, 1); | |
1114 gtk_widget_set_name (alignment11, "alignment11"); | |
1115 gtk_widget_ref (alignment11); | |
1116 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alignment11", alignment11, | |
1117 (GtkDestroyNotify) gtk_widget_unref); | |
1118 gtk_widget_show (alignment11); | |
1119 gtk_box_pack_end (GTK_BOX (vbox9), alignment11, FALSE, FALSE, 0); | |
1120 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1121 current_button = gtk_button_new_with_label (_("Current")); |
121 | 1122 gtk_widget_set_name (current_button, "current_button"); |
1123 gtk_widget_ref (current_button); | |
1124 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "current_button", current_button, | |
1125 (GtkDestroyNotify) gtk_widget_unref); | |
1126 gtk_widget_show (current_button); | |
1127 gtk_container_add (GTK_CONTAINER (alignment11), current_button); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1128 gtk_tooltips_set_tip (tooltips, current_button, _("reset to current output volume"), NULL); |
121 | 1129 |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1130 label82 = gtk_label_new (_("Start at")); |
121 | 1131 gtk_widget_set_name (label82, "label82"); |
1132 gtk_widget_ref (label82); | |
1133 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label82", label82, | |
1134 (GtkDestroyNotify) gtk_widget_unref); | |
1135 gtk_widget_show (label82); | |
1136 gtk_box_pack_start (GTK_BOX (vbox9), label82, FALSE, FALSE, 0); | |
1137 gtk_label_set_justify (GTK_LABEL (label82), GTK_JUSTIFY_LEFT); | |
1138 gtk_misc_set_alignment (GTK_MISC (label82), 7.45058e-09, 0.5); | |
1139 | |
1140 hbox26 = gtk_hbox_new (FALSE, 0); | |
1141 gtk_widget_set_name (hbox26, "hbox26"); | |
1142 gtk_widget_ref (hbox26); | |
1143 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox26", hbox26, | |
1144 (GtkDestroyNotify) gtk_widget_unref); | |
1145 gtk_widget_show (hbox26); | |
1146 gtk_box_pack_start (GTK_BOX (vbox9), hbox26, TRUE, TRUE, 0); | |
1147 | |
1148 quiet_vol_scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (20, 0, 100, 1, 5, 0))); | |
1149 gtk_widget_set_name (quiet_vol_scale, "quiet_vol_scale"); | |
1150 gtk_widget_ref (quiet_vol_scale); | |
1151 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "quiet_vol_scale", quiet_vol_scale, | |
1152 (GtkDestroyNotify) gtk_widget_unref); | |
1153 gtk_widget_show (quiet_vol_scale); | |
1154 gtk_box_pack_start (GTK_BOX (hbox26), quiet_vol_scale, TRUE, TRUE, 0); | |
1155 gtk_scale_set_value_pos (GTK_SCALE (quiet_vol_scale), GTK_POS_RIGHT); | |
1156 gtk_scale_set_digits (GTK_SCALE (quiet_vol_scale), 0); | |
1157 | |
1298
94eee8a16189
The "i18n" saga is still going on...
Stany HENRY <StrassBoy@gmail.com>
parents:
1285
diff
changeset
|
1158 label83 = gtk_label_new (_("%")); |
121 | 1159 gtk_widget_set_name (label83, "label83"); |
1160 gtk_widget_ref (label83); | |
1161 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label83", label83, | |
1162 (GtkDestroyNotify) gtk_widget_unref); | |
1163 gtk_widget_show (label83); | |
1164 gtk_box_pack_start (GTK_BOX (hbox26), label83, FALSE, FALSE, 0); | |
1165 | |
1166 hseparator2 = gtk_hseparator_new (); | |
1167 gtk_widget_set_name (hseparator2, "hseparator2"); | |
1168 gtk_widget_ref (hseparator2); | |
1169 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hseparator2", hseparator2, | |
1170 (GtkDestroyNotify) gtk_widget_unref); | |
1171 gtk_widget_show (hseparator2); | |
1172 gtk_box_pack_start (GTK_BOX (vbox9), hseparator2, TRUE, TRUE, 0); | |
1173 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1174 label84 = gtk_label_new (_("Final")); |
121 | 1175 gtk_widget_set_name (label84, "label84"); |
1176 gtk_widget_ref (label84); | |
1177 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label84", label84, | |
1178 (GtkDestroyNotify) gtk_widget_unref); | |
1179 gtk_widget_show (label84); | |
1180 gtk_box_pack_start (GTK_BOX (vbox9), label84, FALSE, FALSE, 0); | |
1181 gtk_label_set_justify (GTK_LABEL (label84), GTK_JUSTIFY_LEFT); | |
1182 gtk_misc_set_alignment (GTK_MISC (label84), 0, 0.5); | |
1183 | |
1184 hbox27 = gtk_hbox_new (FALSE, 0); | |
1185 gtk_widget_set_name (hbox27, "hbox27"); | |
1186 gtk_widget_ref (hbox27); | |
1187 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox27", hbox27, | |
1188 (GtkDestroyNotify) gtk_widget_unref); | |
1189 gtk_widget_show (hbox27); | |
1190 gtk_box_pack_start (GTK_BOX (vbox9), hbox27, TRUE, TRUE, 0); | |
1191 | |
1192 vol_scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (80, 0, 100, 1, 5, 0))); | |
1193 gtk_widget_set_name (vol_scale, "vol_scale"); | |
1194 gtk_widget_ref (vol_scale); | |
1195 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vol_scale", vol_scale, | |
1196 (GtkDestroyNotify) gtk_widget_unref); | |
1197 gtk_widget_show (vol_scale); | |
1198 gtk_box_pack_start (GTK_BOX (hbox27), vol_scale, TRUE, TRUE, 0); | |
1199 gtk_scale_set_value_pos (GTK_SCALE (vol_scale), GTK_POS_RIGHT); | |
1200 gtk_scale_set_digits (GTK_SCALE (vol_scale), 0); | |
1201 | |
1298
94eee8a16189
The "i18n" saga is still going on...
Stany HENRY <StrassBoy@gmail.com>
parents:
1285
diff
changeset
|
1202 label85 = gtk_label_new (_("%")); |
121 | 1203 gtk_widget_set_name (label85, "label85"); |
1204 gtk_widget_ref (label85); | |
1205 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label85", label85, | |
1206 (GtkDestroyNotify) gtk_widget_unref); | |
1207 gtk_widget_show (label85); | |
1208 gtk_box_pack_start (GTK_BOX (hbox27), label85, FALSE, TRUE, 0); | |
1209 gtk_label_set_justify (GTK_LABEL (label85), GTK_JUSTIFY_FILL); | |
1210 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1211 label73 = gtk_label_new (_("Volume")); |
121 | 1212 gtk_widget_set_name (label73, "label73"); |
1213 gtk_widget_ref (label73); | |
1214 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label73", label73, | |
1215 (GtkDestroyNotify) gtk_widget_unref); | |
1216 gtk_widget_show (label73); | |
1217 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label73); | |
1218 | |
1219 vbox10 = gtk_vbox_new (FALSE, 0); | |
1220 gtk_widget_set_name (vbox10, "vbox10"); | |
1221 gtk_widget_ref (vbox10); | |
1222 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox10", vbox10, | |
1223 (GtkDestroyNotify) gtk_widget_unref); | |
1224 gtk_widget_show (vbox10); | |
1225 gtk_container_add (GTK_CONTAINER (notebook1), vbox10); | |
1226 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1227 frame13 = gtk_frame_new (_("Additional Command")); |
121 | 1228 gtk_widget_set_name (frame13, "frame13"); |
1229 gtk_widget_ref (frame13); | |
1230 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame13", frame13, | |
1231 (GtkDestroyNotify) gtk_widget_unref); | |
1232 gtk_widget_show (frame13); | |
1233 gtk_box_pack_start (GTK_BOX (vbox10), frame13, FALSE, FALSE, 0); | |
1234 gtk_container_set_border_width (GTK_CONTAINER (frame13), 10); | |
1235 | |
1236 hbox28 = gtk_hbox_new (FALSE, 5); | |
1237 gtk_widget_set_name (hbox28, "hbox28"); | |
1238 gtk_widget_ref (hbox28); | |
1239 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox28", hbox28, | |
1240 (GtkDestroyNotify) gtk_widget_unref); | |
1241 gtk_widget_show (hbox28); | |
1242 gtk_container_add (GTK_CONTAINER (frame13), hbox28); | |
1243 gtk_container_set_border_width (GTK_CONTAINER (hbox28), 8); | |
1244 | |
1245 cmd_entry = gtk_entry_new (); | |
1246 gtk_widget_set_name (cmd_entry, "cmd_entry"); | |
1247 gtk_widget_ref (cmd_entry); | |
1248 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cmd_entry", cmd_entry, | |
1249 (GtkDestroyNotify) gtk_widget_unref); | |
1250 gtk_widget_show (cmd_entry); | |
1251 gtk_box_pack_start (GTK_BOX (hbox28), cmd_entry, TRUE, TRUE, 0); | |
1252 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1253 cmd_checkb = gtk_check_button_new_with_label (_("enable")); |
121 | 1254 gtk_widget_set_name (cmd_checkb, "cmd_checkb"); |
1255 gtk_widget_ref (cmd_checkb); | |
1256 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cmd_checkb", cmd_checkb, | |
1257 (GtkDestroyNotify) gtk_widget_unref); | |
1258 gtk_widget_show (cmd_checkb); | |
1259 gtk_box_pack_start (GTK_BOX (hbox28), cmd_checkb, FALSE, FALSE, 0); | |
1260 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1261 frame14 = gtk_frame_new (_("Playlist (optional)")); |
121 | 1262 gtk_widget_set_name (frame14, "frame14"); |
1263 gtk_widget_ref (frame14); | |
1264 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame14", frame14, | |
1265 (GtkDestroyNotify) gtk_widget_unref); | |
1266 gtk_widget_show (frame14); | |
1267 gtk_box_pack_start (GTK_BOX (vbox10), frame14, FALSE, FALSE, 0); | |
1268 gtk_container_set_border_width (GTK_CONTAINER (frame14), 10); | |
1269 | |
1270 hbox29 = gtk_hbox_new (FALSE, 5); | |
1271 gtk_widget_set_name (hbox29, "hbox29"); | |
1272 gtk_widget_ref (hbox29); | |
1273 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox29", hbox29, | |
1274 (GtkDestroyNotify) gtk_widget_unref); | |
1275 gtk_widget_show (hbox29); | |
1276 gtk_container_add (GTK_CONTAINER (frame14), hbox29); | |
1277 gtk_container_set_border_width (GTK_CONTAINER (hbox29), 8); | |
1278 | |
1279 playlist = gtk_entry_new (); | |
1280 gtk_widget_set_name (playlist, "playlist"); | |
1281 gtk_widget_ref (playlist); | |
1282 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "playlist", playlist, | |
1283 (GtkDestroyNotify) gtk_widget_unref); | |
1284 gtk_widget_show (playlist); | |
1285 gtk_box_pack_start (GTK_BOX (hbox29), playlist, TRUE, TRUE, 0); | |
1286 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1287 playlist_browse_button = gtk_button_new_with_label (_("Browse...")); |
121 | 1288 gtk_widget_set_name (playlist_browse_button, "playlist_browse_button"); |
1289 gtk_widget_ref (playlist_browse_button); | |
1290 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "playlist_browse_button", playlist_browse_button, | |
1291 (GtkDestroyNotify) gtk_widget_unref); | |
1292 gtk_widget_show (playlist_browse_button); | |
1293 gtk_box_pack_start (GTK_BOX (hbox29), playlist_browse_button, FALSE, FALSE, 0); | |
1294 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1295 frame18 = gtk_frame_new (_("Reminder")); |
121 | 1296 gtk_widget_set_name (frame18, "frame18"); |
1297 gtk_widget_ref (frame18); | |
1298 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame18", frame18, | |
1299 (GtkDestroyNotify) gtk_widget_unref); | |
1300 gtk_widget_show (frame18); | |
1301 gtk_box_pack_start (GTK_BOX (vbox10), frame18, TRUE, TRUE, 0); | |
1302 gtk_container_set_border_width (GTK_CONTAINER (frame18), 10); | |
1303 | |
1304 hbox38 = gtk_hbox_new (FALSE, 0); | |
1305 gtk_widget_set_name (hbox38, "hbox38"); | |
1306 gtk_widget_ref (hbox38); | |
1307 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox38", hbox38, | |
1308 (GtkDestroyNotify) gtk_widget_unref); | |
1309 gtk_widget_show (hbox38); | |
1310 gtk_container_add (GTK_CONTAINER (frame18), hbox38); | |
1311 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1312 reminder_cb = gtk_check_button_new_with_label (_("Use reminder")); |
121 | 1313 gtk_widget_set_name (reminder_cb, "reminder_cb"); |
1314 gtk_widget_ref (reminder_cb); | |
1315 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "reminder_cb", reminder_cb, | |
1316 (GtkDestroyNotify) gtk_widget_unref); | |
1317 gtk_widget_show (reminder_cb); | |
1318 gtk_box_pack_start (GTK_BOX (hbox38), reminder_cb, FALSE, FALSE, 0); | |
1319 | |
1320 reminder_text = gtk_entry_new (); | |
1321 gtk_widget_set_name (reminder_text, "reminder_text"); | |
1322 gtk_widget_ref (reminder_text); | |
1323 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "reminder_text", reminder_text, | |
1324 (GtkDestroyNotify) gtk_widget_unref); | |
1325 gtk_widget_show (reminder_text); | |
1326 gtk_box_pack_start (GTK_BOX (hbox38), reminder_text, TRUE, TRUE, 5); | |
1327 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1328 label74 = gtk_label_new (_("Options")); |
121 | 1329 gtk_widget_set_name (label74, "label74"); |
1330 gtk_widget_ref (label74); | |
1331 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label74", label74, | |
1332 (GtkDestroyNotify) gtk_widget_unref); | |
1333 gtk_widget_show (label74); | |
1334 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label74); | |
1335 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1336 frame16 = gtk_frame_new (_("What do these options mean?")); |
121 | 1337 gtk_widget_set_name (frame16, "frame16"); |
1338 gtk_widget_ref (frame16); | |
1339 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame16", frame16, | |
1340 (GtkDestroyNotify) gtk_widget_unref); | |
1341 gtk_widget_show (frame16); | |
1342 gtk_container_add (GTK_CONTAINER (notebook1), frame16); | |
1343 gtk_container_set_border_width (GTK_CONTAINER (frame16), 10); | |
1344 | |
1345 scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); | |
1346 gtk_widget_set_name (scrolledwindow1, "scrolledwindow1"); | |
1347 gtk_widget_ref (scrolledwindow1); | |
1348 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "scrolledwindow1", scrolledwindow1, | |
1349 (GtkDestroyNotify) gtk_widget_unref); | |
1350 gtk_widget_show (scrolledwindow1); | |
1351 gtk_container_add (GTK_CONTAINER (frame16), scrolledwindow1); | |
1352 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | |
1353 | |
134
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
1354 text1 = gtk_text_view_new(); |
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
1355 text1buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (text1)); |
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
1356 gtk_text_buffer_get_iter_at_offset (text1buffer, &iter, 0); |
121 | 1357 gtk_widget_set_name (text1, "text1"); |
1358 gtk_widget_ref (text1); | |
1359 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "text1", text1, | |
1360 (GtkDestroyNotify) gtk_widget_unref); | |
1361 gtk_widget_show (text1); | |
1362 gtk_container_add (GTK_CONTAINER (scrolledwindow1), text1); | |
134
8b343e9684b5
[svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents:
131
diff
changeset
|
1363 gtk_text_buffer_insert (text1buffer, &iter, |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1364 _("\nTime\n Alarm at: \n The time for the alarm to come on.\n\n Quiet After: \n Stop alarm after this amount of time.\n (if the wakeup dialog is not closed)\n\n\nDays\n Day:\n Select the days for the alarm to activate.\n\n Time:\n Choose the time for the alarm on each day,\n or select the toggle button to use the default\n time.\n\n\nVolume\n Fading: \n Fade the volume up to the chosen volume \n for this amount of time.\n\n Start at: \n Start fading from this volume.\n\n Final: \n The volume to stop fading at. If the fading\n time is 0 then set volume to this and start\n playing.\n\n\nOptions:\n Additional Command:\n Run this command at the alarm time.\n\n Playlist: \n Load this playlist for playing songs from \n (must have .m3u extension). If no playlist\n is given then the songs which are currently\n in the list will be used.\n The URL of an mp3/ogg stream can also be\n entered here, but loading of playlists from\n URLs is not currently supported by xmms.\n\n Reminder:\n Display a reminder when the alarm goes off,\n type the reminder in the box and turn on the\n toggle button if you want it to be shown.\n"), -1); |
121 | 1365 |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1366 label86 = gtk_label_new (_("Help")); |
121 | 1367 gtk_widget_set_name (label86, "label86"); |
1368 gtk_widget_ref (label86); | |
1369 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label86", label86, | |
1370 (GtkDestroyNotify) gtk_widget_unref); | |
1371 gtk_widget_show (label86); | |
1372 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 4), label86); | |
1373 | |
1374 dialog_action_area5 = GTK_DIALOG (config_dialog)->action_area; | |
1375 gtk_widget_set_name (dialog_action_area5, "dialog_action_area5"); | |
1376 gtk_object_set_data (GTK_OBJECT (config_dialog), "dialog_action_area5", dialog_action_area5); | |
1377 gtk_widget_show (dialog_action_area5); | |
1378 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area5), 10); | |
1379 | |
1380 hbox20 = gtk_hbox_new (TRUE, 5); | |
1381 gtk_widget_set_name (hbox20, "hbox20"); | |
1382 gtk_widget_ref (hbox20); | |
1383 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox20", hbox20, | |
1384 (GtkDestroyNotify) gtk_widget_unref); | |
1385 gtk_widget_show (hbox20); | |
1386 gtk_box_pack_start (GTK_BOX (dialog_action_area5), hbox20, TRUE, TRUE, 0); | |
1387 gtk_container_set_border_width (GTK_CONTAINER (hbox20), 10); | |
1388 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1389 ok_button = gtk_button_new_with_label (_("OK")); |
121 | 1390 gtk_widget_set_name (ok_button, "ok_button"); |
1391 gtk_widget_ref (ok_button); | |
1392 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "ok_button", ok_button, | |
1393 (GtkDestroyNotify) gtk_widget_unref); | |
1394 gtk_widget_show (ok_button); | |
1395 gtk_box_pack_start (GTK_BOX (hbox20), ok_button, FALSE, TRUE, 0); | |
1396 GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT); | |
1397 | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1398 cancel_button = gtk_button_new_with_label (_("Cancel")); |
121 | 1399 gtk_widget_set_name (cancel_button, "cancel_button"); |
1400 gtk_widget_ref (cancel_button); | |
1401 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cancel_button", cancel_button, | |
1402 (GtkDestroyNotify) gtk_widget_unref); | |
1403 gtk_widget_show (cancel_button); | |
1404 gtk_box_pack_start (GTK_BOX (hbox20), cancel_button, FALSE, TRUE, 0); | |
1405 GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT); | |
1406 | |
1407 gtk_signal_connect (GTK_OBJECT (mon_def), "toggled", | |
1408 GTK_SIGNAL_FUNC (on_mon_def_toggled), | |
1409 NULL); | |
1410 gtk_signal_connect (GTK_OBJECT (tue_def), "toggled", | |
1411 GTK_SIGNAL_FUNC (on_tue_def_toggled), | |
1412 NULL); | |
1413 gtk_signal_connect (GTK_OBJECT (wed_def), "toggled", | |
1414 GTK_SIGNAL_FUNC (on_wed_def_toggled), | |
1415 NULL); | |
1416 gtk_signal_connect (GTK_OBJECT (thu_def), "toggled", | |
1417 GTK_SIGNAL_FUNC (on_thu_def_toggled), | |
1418 NULL); | |
1419 gtk_signal_connect (GTK_OBJECT (fri_def), "toggled", | |
1420 GTK_SIGNAL_FUNC (on_fri_def_toggled), | |
1421 NULL); | |
1422 gtk_signal_connect (GTK_OBJECT (sat_def), "toggled", | |
1423 GTK_SIGNAL_FUNC (on_sat_def_toggled), | |
1424 NULL); | |
1425 gtk_signal_connect (GTK_OBJECT (sun_def), "toggled", | |
1426 GTK_SIGNAL_FUNC (on_sun_def_toggled), | |
1427 NULL); | |
1428 gtk_signal_connect (GTK_OBJECT (current_button), "clicked", | |
1429 GTK_SIGNAL_FUNC (alarm_current_volume), | |
1430 NULL); | |
1431 gtk_signal_connect (GTK_OBJECT (ok_button), "clicked", | |
1432 GTK_SIGNAL_FUNC (alarm_save), | |
1433 NULL); | |
1434 gtk_signal_connect_object (GTK_OBJECT (ok_button), "clicked", | |
1435 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
1436 GTK_OBJECT (config_dialog)); | |
1437 gtk_signal_connect_object (GTK_OBJECT (cancel_button), "clicked", | |
1438 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
1439 GTK_OBJECT (config_dialog)); | |
1440 | |
1441 gtk_widget_grab_default (ok_button); | |
1442 gtk_object_set_data (GTK_OBJECT (config_dialog), "tooltips", tooltips); | |
1443 | |
1444 return config_dialog; | |
1445 } | |
1446 | |
1447 GtkWidget* | |
1448 create_reminder_dialog (gchar *reminder_msg) | |
1449 { | |
1450 GtkWidget *reminder_dialog; | |
1451 GtkWidget *dialog_vbox6; | |
1452 GtkWidget *frame19; | |
1453 GtkWidget *reminder_entry; | |
1454 GtkWidget *dialog_action_area6; | |
1455 GtkWidget *button11; | |
1456 | |
1457 reminder_dialog = gtk_dialog_new (); | |
1458 gtk_widget_set_name (reminder_dialog, "reminder_dialog"); | |
1459 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "reminder_dialog", reminder_dialog); | |
1285
e3b27548e45f
All strings are now translatable.
Stany HENRY <StrassBoy@gmail.com>
parents:
134
diff
changeset
|
1460 gtk_window_set_title (GTK_WINDOW (reminder_dialog), _("Reminder")); |
121 | 1461 gtk_window_set_policy (GTK_WINDOW (reminder_dialog), TRUE, TRUE, FALSE); |
1462 | |
1463 dialog_vbox6 = GTK_DIALOG (reminder_dialog)->vbox; | |
1464 gtk_widget_set_name (dialog_vbox6, "dialog_vbox6"); | |
1465 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "dialog_vbox6", dialog_vbox6); | |
1466 gtk_widget_show (dialog_vbox6); | |
1467 | |
1298
94eee8a16189
The "i18n" saga is still going on...
Stany HENRY <StrassBoy@gmail.com>
parents:
1285
diff
changeset
|
1468 frame19 = gtk_frame_new (_("Your reminder for today is..")); |
121 | 1469 gtk_widget_set_name (frame19, "frame19"); |
1470 gtk_widget_ref (frame19); | |
1471 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "frame19", frame19, | |
1472 (GtkDestroyNotify) gtk_widget_unref); | |
1473 gtk_widget_show (frame19); | |
1474 gtk_box_pack_start (GTK_BOX (dialog_vbox6), frame19, TRUE, TRUE, 0); | |
1475 gtk_container_set_border_width (GTK_CONTAINER (frame19), 10); | |
1476 | |
1477 reminder_entry = gtk_entry_new (); | |
1478 gtk_widget_set_name (reminder_entry, "reminder_entry"); | |
1479 gtk_widget_ref (reminder_entry); | |
1480 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "reminder_entry", reminder_entry, | |
1481 (GtkDestroyNotify) gtk_widget_unref); | |
1482 gtk_widget_show (reminder_entry); | |
1483 gtk_container_add (GTK_CONTAINER (frame19), reminder_entry); | |
1484 gtk_entry_set_editable (GTK_ENTRY (reminder_entry), FALSE); | |
1485 gtk_entry_set_text (GTK_ENTRY (reminder_entry), reminder_msg); | |
1486 | |
1487 dialog_action_area6 = GTK_DIALOG (reminder_dialog)->action_area; | |
1488 gtk_widget_set_name (dialog_action_area6, "dialog_action_area6"); | |
1489 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "dialog_action_area6", dialog_action_area6); | |
1490 gtk_widget_show (dialog_action_area6); | |
1491 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area6), 10); | |
1492 | |
1298
94eee8a16189
The "i18n" saga is still going on...
Stany HENRY <StrassBoy@gmail.com>
parents:
1285
diff
changeset
|
1493 button11 = gtk_button_new_with_label (_("Thankyou")); |
121 | 1494 gtk_widget_set_name (button11, "button11"); |
1495 gtk_widget_ref (button11); | |
1496 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "button11", button11, | |
1497 (GtkDestroyNotify) gtk_widget_unref); | |
1498 gtk_widget_show (button11); | |
1499 gtk_box_pack_start (GTK_BOX (dialog_action_area6), button11, FALSE, FALSE, 0); | |
1500 | |
1501 gtk_signal_connect_object (GTK_OBJECT (button11), "clicked", | |
1502 GTK_SIGNAL_FUNC (gtk_widget_destroy), | |
1503 GTK_OBJECT(reminder_dialog)); | |
1504 | |
1505 return reminder_dialog; | |
1506 } | |
1507 | |
1508 /* | |
1509 * vi:ai:expandtab:ts=2 sts=2 shiftwidth=2:nowrap: | |
1510 */ |