2 * DO NOT EDIT THIS FILE - it is generated by Glade.
15 #include <gdk/gdkkeysyms.h>
18 #include "glade_options.h"
20 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
21 g_object_set_data_full (G_OBJECT (component), name, \
22 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
24 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
25 g_object_set_data (G_OBJECT (component), name, widget)
28 create_options_dialog (void)
30 GtkWidget
*options_dialog
;
35 GtkWidget
*fullscreen
;
37 GtkWidget
*scrollbars
;
38 GtkWidget
*status_bar
;
41 GtkObject
*delay_cursor_adj
;
42 GtkWidget
*delay_cursor
;
47 GtkWidget
*scale_down
;
48 GtkWidget
*force_load
;
49 GtkWidget
*alpha_checks
;
53 GtkWidget
*resize_win
;
57 GtkWidget
*images_menus_startup
;
58 GtkWidget
*images_menus_mnemonics
;
59 GtkWidget
*thumbnails
;
65 GtkObject
*thumbnails_width_adj
;
66 GtkWidget
*thumbnails_width
;
67 GtkObject
*thumbnails_height_adj
;
68 GtkWidget
*thumbnails_height
;
71 GtkWidget
*zoom_pointer
;
77 GtkObject
*max_fps_adj
;
79 GtkObject
*history_length_adj
;
80 GtkWidget
*history_length
;
84 GtkWidget
*start_slide_show
;
85 GtkWidget
*slide_show_loop
;
88 GtkObject
*slide_show_delay_adj
;
89 GtkWidget
*slide_show_delay
;
92 GtkWidget
*background
;
103 options_dialog
= gtk_window_new (GTK_WINDOW_TOPLEVEL
);
104 gtk_window_set_title (GTK_WINDOW (options_dialog
), _("Options"));
105 gtk_window_set_position (GTK_WINDOW (options_dialog
), GTK_WIN_POS_MOUSE
);
106 gtk_window_set_destroy_with_parent (GTK_WINDOW (options_dialog
), TRUE
);
108 vbox1
= gtk_vbox_new (FALSE
, 0);
109 gtk_widget_show (vbox1
);
110 gtk_container_add (GTK_CONTAINER (options_dialog
), vbox1
);
112 notebook1
= gtk_notebook_new ();
113 gtk_widget_show (notebook1
);
114 gtk_box_pack_start (GTK_BOX (vbox1
), notebook1
, TRUE
, TRUE
, 0);
115 gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook1
));
117 vbox3
= gtk_vbox_new (FALSE
, 0);
118 gtk_widget_show (vbox3
);
119 gtk_container_add (GTK_CONTAINER (notebook1
), vbox3
);
121 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), vbox3
,
122 TRUE
, TRUE
, GTK_PACK_START
);
124 table1
= gtk_table_new (2, 2, TRUE
);
125 gtk_widget_show (table1
);
126 gtk_box_pack_start (GTK_BOX (vbox3
), table1
, TRUE
, TRUE
, 0);
128 fullscreen
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Fullscreen mode")));
129 add_check_button(fullscreen
, OPTION_FULLSCREEN
);
130 gtk_widget_show (fullscreen
);
131 gtk_table_attach (GTK_TABLE (table1
), fullscreen
, 0, 1, 0, 1,
132 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
133 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
135 menu_bar
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Menu bar enabled")));
136 add_check_button(menu_bar
, OPTION_MENU_BAR
);
137 gtk_widget_show (menu_bar
);
138 gtk_table_attach (GTK_TABLE (table1
), menu_bar
, 1, 2, 0, 1,
139 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
140 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
142 scrollbars
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scrollbars enabled")));
143 add_check_button(scrollbars
, OPTION_SCROLLBARS
);
144 gtk_widget_show (scrollbars
);
145 gtk_table_attach (GTK_TABLE (table1
), scrollbars
, 0, 1, 1, 2,
146 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
147 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
149 status_bar
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Status bar enabled")));
150 add_check_button(status_bar
, OPTION_STATUS_BAR
);
151 gtk_widget_show (status_bar
);
152 gtk_table_attach (GTK_TABLE (table1
), status_bar
, 1, 2, 1, 2,
153 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
154 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
156 hbox2
= gtk_hbox_new (FALSE
, 0);
157 gtk_widget_show (hbox2
);
158 gtk_box_pack_start (GTK_BOX (vbox3
), hbox2
, TRUE
, TRUE
, 0);
160 label8
= gtk_label_new (_("Delay before hiding the cursor\n0: feature disabled"));
161 gtk_widget_show (label8
);
162 gtk_box_pack_start (GTK_BOX (hbox2
), label8
, TRUE
, TRUE
, 0);
164 delay_cursor_adj
= gtk_adjustment_new (1, 0, 1e+09, 1, 10, 10);
165 delay_cursor
= gtk_spin_button_new (GTK_ADJUSTMENT (delay_cursor_adj
), 1, 0);
166 add_spin_button(delay_cursor
, OPTION_DELAY_CURSOR
);
167 gtk_widget_show (delay_cursor
);
168 gtk_box_pack_start (GTK_BOX (hbox2
), delay_cursor
, TRUE
, TRUE
, 0);
169 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (delay_cursor
), TRUE
);
170 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (delay_cursor
), GTK_UPDATE_IF_VALID
);
172 label9
= gtk_label_new (_("milliseconds"));
173 gtk_widget_show (label9
);
174 gtk_box_pack_start (GTK_BOX (hbox2
), label9
, TRUE
, TRUE
, 0);
176 label1
= gtk_label_new (_("Interface"));
177 gtk_widget_show (label1
);
178 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 0), label1
);
179 gtk_label_set_justify (GTK_LABEL (label1
), GTK_JUSTIFY_LEFT
);
181 table2
= gtk_table_new (4, 2, FALSE
);
182 gtk_widget_show (table2
);
183 gtk_container_add (GTK_CONTAINER (notebook1
), table2
);
185 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), table2
,
186 TRUE
, TRUE
, GTK_PACK_START
);
188 dithering
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Dithering")));
189 add_check_button(dithering
, OPTION_DITHERING
);
190 gtk_widget_show (dithering
);
191 gtk_table_attach (GTK_TABLE (table2
), dithering
, 0, 1, 1, 2,
192 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
193 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
195 scale_down
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scale down large images")));
196 add_check_button(scale_down
, OPTION_SCALE_DOWN
);
197 gtk_widget_show (scale_down
);
198 gtk_table_attach (GTK_TABLE (table2
), scale_down
, 0, 1, 0, 1,
199 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
200 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
202 force_load
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Try to load every file")));
203 add_check_button(force_load
, OPTION_FORCE_LOAD
);
204 gtk_widget_show (force_load
);
205 gtk_table_attach (GTK_TABLE (table2
), force_load
, 0, 1, 2, 3,
206 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
207 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
209 alpha_checks
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Alpha checks")));
210 add_check_button(alpha_checks
, OPTION_ALPHA_CHECKS
);
211 gtk_widget_show (alpha_checks
);
212 gtk_table_attach (GTK_TABLE (table2
), alpha_checks
, 0, 1, 3, 4,
213 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
214 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
216 one_image
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Keep only one image in memory")));
217 add_check_button(one_image
, OPTION_ONE_IMAGE
);
218 gtk_widget_show (one_image
);
219 gtk_table_attach (GTK_TABLE (table2
), one_image
, 1, 2, 2, 3,
220 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
221 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
223 mipmaps
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build Mipmaps")));
224 add_check_button(mipmaps
, OPTION_MIPMAPS
);
225 gtk_widget_show (mipmaps
);
226 gtk_table_attach (GTK_TABLE (table2
), mipmaps
, 1, 2, 1, 2,
227 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
228 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
230 maximize
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Maximize small images")));
231 add_check_button(maximize
, OPTION_MAXIMIZE
);
232 gtk_widget_show (maximize
);
233 gtk_table_attach (GTK_TABLE (table2
), maximize
, 1, 2, 0, 1,
234 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
235 (GtkAttachOptions
) (GTK_EXPAND
), 0, 0);
237 resize_win
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Automatic window resizing")));
238 add_check_button(resize_win
, OPTION_RESIZE_WIN
);
239 gtk_widget_show (resize_win
);
240 gtk_table_attach (GTK_TABLE (table2
), resize_win
, 1, 2, 3, 4,
241 (GtkAttachOptions
) (GTK_FILL
),
242 (GtkAttachOptions
) (0), 0, 0);
244 label2
= gtk_label_new (_("Images"));
245 gtk_widget_show (label2
);
246 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 1), label2
);
247 gtk_label_set_justify (GTK_LABEL (label2
), GTK_JUSTIFY_LEFT
);
249 vbox7
= gtk_vbox_new (FALSE
, 0);
250 gtk_widget_show (vbox7
);
251 gtk_container_add (GTK_CONTAINER (notebook1
), vbox7
);
254 hbox5
= gtk_hbox_new (FALSE
, 0);
255 gtk_widget_show (hbox5
);
256 gtk_box_pack_start (GTK_BOX (vbox7
), hbox5
, TRUE
, FALSE
, 0);
258 images_menus_startup
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build images menus at startup")));
259 add_check_button(images_menus_startup
, OPTION_IMAGES_MENUS_STARTUP
);
260 gtk_widget_show (images_menus_startup
);
261 gtk_box_pack_start (GTK_BOX (hbox5
), images_menus_startup
, TRUE
, TRUE
, 0);
263 images_menus_mnemonics
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make mnemonics for images menus")));
264 add_check_button(images_menus_mnemonics
, OPTION_IMAGES_MENUS_MNEMONICS
);
265 gtk_widget_show (images_menus_mnemonics
);
266 gtk_box_pack_start (GTK_BOX (hbox5
), images_menus_mnemonics
, TRUE
, TRUE
, 0);
268 thumbnails
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Show thumbnails in images menus")));
269 add_check_button(thumbnails
, OPTION_THUMBNAILS
);
270 gtk_widget_show (thumbnails
);
271 gtk_box_pack_start (GTK_BOX (vbox7
), thumbnails
, TRUE
, FALSE
, 0);
273 table5
= gtk_table_new (2, 3, FALSE
);
274 gtk_widget_show (table5
);
275 gtk_box_pack_start (GTK_BOX (vbox7
), table5
, TRUE
, TRUE
, 0);
277 label26
= gtk_label_new (_("pixels"));
278 gtk_widget_show (label26
);
279 gtk_table_attach (GTK_TABLE (table5
), label26
, 2, 3, 0, 1,
280 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
),
281 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
282 gtk_misc_set_alignment (GTK_MISC (label26
), 0, 0.5);
284 label27
= gtk_label_new (_("pixels"));
285 gtk_widget_show (label27
);
286 gtk_table_attach (GTK_TABLE (table5
), label27
, 2, 3, 1, 2,
287 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
),
288 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
289 gtk_misc_set_alignment (GTK_MISC (label27
), 0, 0.5);
291 label24
= gtk_label_new (_("Thumbnail width"));
292 gtk_widget_show (label24
);
293 gtk_table_attach (GTK_TABLE (table5
), label24
, 0, 1, 0, 1,
294 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
),
295 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
296 gtk_misc_set_alignment (GTK_MISC (label24
), 0, 0.5);
298 label25
= gtk_label_new (_("Thumbnail height"));
299 gtk_widget_show (label25
);
300 gtk_table_attach (GTK_TABLE (table5
), label25
, 0, 1, 1, 2,
301 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
),
302 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
303 gtk_label_set_justify (GTK_LABEL (label25
), GTK_JUSTIFY_LEFT
);
304 gtk_misc_set_alignment (GTK_MISC (label25
), 0, 0.5);
306 thumbnails_width_adj
= gtk_adjustment_new (1, 1, 1e+09, 1, 10, 10);
307 thumbnails_width
= gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_width_adj
), 1, 0);
308 add_spin_button(thumbnails_width
, OPTION_THUMBNAILS_WIDTH
);
309 gtk_widget_show (thumbnails_width
);
310 gtk_table_attach (GTK_TABLE (table5
), thumbnails_width
, 1, 2, 0, 1,
311 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
312 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
313 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_width
), TRUE
);
314 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_width
), GTK_UPDATE_IF_VALID
);
316 thumbnails_height_adj
= gtk_adjustment_new (1, 1, 1e+09, 1, 10, 10);
317 thumbnails_height
= gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_height_adj
), 1, 0);
318 add_spin_button(thumbnails_height
, OPTION_THUMBNAILS_HEIGHT
);
319 gtk_widget_show (thumbnails_height
);
320 gtk_table_attach (GTK_TABLE (table5
), thumbnails_height
, 1, 2, 1, 2,
321 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
322 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
323 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_height
), TRUE
);
324 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_height
), GTK_UPDATE_IF_VALID
);
326 label3
= gtk_label_new (_("Images menus"));
327 gtk_widget_show (label3
);
328 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 2), label3
);
329 gtk_label_set_justify (GTK_LABEL (label3
), GTK_JUSTIFY_LEFT
);
331 vbox5
= gtk_vbox_new (FALSE
, 0);
332 gtk_widget_show (vbox5
);
333 gtk_container_add (GTK_CONTAINER (notebook1
), vbox5
);
335 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), vbox5
,
336 TRUE
, TRUE
, GTK_PACK_START
);
338 zoom_pointer
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Zoom centered on pointer")));
339 add_check_button(zoom_pointer
, OPTION_ZOOM_POINTER
);
340 gtk_widget_show (zoom_pointer
);
341 gtk_box_pack_start (GTK_BOX (vbox5
), zoom_pointer
, TRUE
, FALSE
, 0);
343 table4
= gtk_table_new (2, 3, FALSE
);
344 gtk_widget_show (table4
);
345 gtk_box_pack_start (GTK_BOX (vbox5
), table4
, TRUE
, TRUE
, 0);
347 label16
= gtk_label_new (_("History length\n0: feature disabled\n-1: infinite"));
348 gtk_widget_show (label16
);
349 gtk_table_attach (GTK_TABLE (table4
), label16
, 0, 1, 0, 1,
350 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
351 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
353 label17
= gtk_label_new (_("Maximum framerate\n-1: infinite"));
354 gtk_widget_show (label17
);
355 gtk_table_attach (GTK_TABLE (table4
), label17
, 0, 1, 1, 2,
356 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
357 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
359 label18
= gtk_label_new (_("elements"));
360 gtk_widget_show (label18
);
361 gtk_table_attach (GTK_TABLE (table4
), label18
, 2, 3, 0, 1,
362 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
363 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
365 label19
= gtk_label_new (_("fps"));
366 gtk_widget_show (label19
);
367 gtk_table_attach (GTK_TABLE (table4
), label19
, 2, 3, 1, 2,
368 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
369 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
371 max_fps_adj
= gtk_adjustment_new (1, -1, 1e+09, 1, 10, 10);
372 max_fps
= gtk_spin_button_new (GTK_ADJUSTMENT (max_fps_adj
), 1, 0);
373 add_spin_button(max_fps
, OPTION_MAX_FPS
);
374 gtk_widget_show (max_fps
);
375 gtk_table_attach (GTK_TABLE (table4
), max_fps
, 1, 2, 1, 2,
376 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
),
377 (GtkAttachOptions
) (GTK_EXPAND
| GTK_SHRINK
| GTK_FILL
), 0, 0);
378 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (max_fps
), TRUE
);
379 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (max_fps
), GTK_UPDATE_IF_VALID
);
381 history_length_adj
= gtk_adjustment_new (1, -1, 1e+09, 1, 10, 10);
382 history_length
= gtk_spin_button_new (GTK_ADJUSTMENT (history_length_adj
), 1, 0);
383 add_spin_button(history_length
, OPTION_HISTORY_LENGTH
);
384 gtk_widget_show (history_length
);
385 gtk_table_attach (GTK_TABLE (table4
), history_length
, 1, 2, 0, 1,
386 (GtkAttachOptions
) (GTK_EXPAND
| GTK_FILL
),
387 (GtkAttachOptions
) (GTK_SHRINK
| GTK_FILL
), 0, 0);
388 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (history_length
), TRUE
);
389 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (history_length
), GTK_UPDATE_IF_VALID
);
391 label4
= gtk_label_new (_("Transformations"));
392 gtk_widget_show (label4
);
393 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 3), label4
);
394 gtk_label_set_justify (GTK_LABEL (label4
), GTK_JUSTIFY_LEFT
);
396 vbox6
= gtk_vbox_new (FALSE
, 0);
397 gtk_widget_show (vbox6
);
398 gtk_container_add (GTK_CONTAINER (notebook1
), vbox6
);
400 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), vbox6
,
401 TRUE
, TRUE
, GTK_PACK_START
);
403 hbox3
= gtk_hbox_new (FALSE
, 0);
404 gtk_widget_show (hbox3
);
405 gtk_box_pack_start (GTK_BOX (vbox6
), hbox3
, TRUE
, FALSE
, 0);
407 start_slide_show
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Start with the slide show")));
408 add_check_button(start_slide_show
, OPTION_START_SLIDE_SHOW
);
409 gtk_widget_show (start_slide_show
);
410 gtk_box_pack_start (GTK_BOX (hbox3
), start_slide_show
, TRUE
, TRUE
, 0);
412 slide_show_loop
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make the slide show loop")));
413 add_check_button(slide_show_loop
, OPTION_SLIDE_SHOW_LOOP
);
414 gtk_widget_show (slide_show_loop
);
415 gtk_box_pack_start (GTK_BOX (hbox3
), slide_show_loop
, TRUE
, TRUE
, 0);
417 hbox4
= gtk_hbox_new (FALSE
, 0);
418 gtk_widget_show (hbox4
);
419 gtk_box_pack_start (GTK_BOX (vbox6
), hbox4
, TRUE
, TRUE
, 0);
421 label20
= gtk_label_new (_("Delay between images during the slide show"));
422 gtk_widget_show (label20
);
423 gtk_box_pack_start (GTK_BOX (hbox4
), label20
, TRUE
, TRUE
, 0);
424 gtk_label_set_justify (GTK_LABEL (label20
), GTK_JUSTIFY_LEFT
);
426 slide_show_delay_adj
= gtk_adjustment_new (1, -1, 1e+09, 1, 10, 10);
427 slide_show_delay
= gtk_spin_button_new (GTK_ADJUSTMENT (slide_show_delay_adj
), 1, 0);
428 add_spin_button(slide_show_delay
, OPTION_SLIDE_SHOW_DELAY
);
429 gtk_widget_show (slide_show_delay
);
430 gtk_box_pack_start (GTK_BOX (hbox4
), slide_show_delay
, TRUE
, TRUE
, 0);
431 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (slide_show_delay
), TRUE
);
432 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (slide_show_delay
), GTK_UPDATE_IF_VALID
);
434 label21
= gtk_label_new (_("seconds"));
435 gtk_widget_show (label21
);
436 gtk_box_pack_start (GTK_BOX (hbox4
), label21
, TRUE
, TRUE
, 0);
437 gtk_label_set_justify (GTK_LABEL (label21
), GTK_JUSTIFY_LEFT
);
439 label5
= gtk_label_new (_("Slide show"));
440 gtk_widget_show (label5
);
441 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 4), label5
);
442 gtk_label_set_justify (GTK_LABEL (label5
), GTK_JUSTIFY_LEFT
);
444 background
= gtk_color_selection_new ();
445 add_color_selection(background
, OPTION_BACKGROUND
);
446 gtk_widget_show (background
);
447 gtk_container_add (GTK_CONTAINER (notebook1
), background
);
449 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), background
,
450 TRUE
, TRUE
, GTK_PACK_START
);
451 gtk_container_set_border_width (GTK_CONTAINER (background
), 10);
452 gtk_color_selection_set_has_opacity_control (GTK_COLOR_SELECTION (background
), TRUE
);
453 gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (background
), TRUE
);
455 label6
= gtk_label_new (_("Background"));
456 gtk_widget_show (label6
);
457 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 5), label6
);
458 gtk_label_set_justify (GTK_LABEL (label6
), GTK_JUSTIFY_LEFT
);
460 alpha1
= gtk_color_selection_new ();
461 add_color_selection(alpha1
, OPTION_ALPHA1
);
462 gtk_widget_show (alpha1
);
463 gtk_container_add (GTK_CONTAINER (notebook1
), alpha1
);
465 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), alpha1
,
466 TRUE
, TRUE
, GTK_PACK_START
);
467 gtk_container_set_border_width (GTK_CONTAINER (alpha1
), 10);
468 gtk_color_selection_set_has_opacity_control (GTK_COLOR_SELECTION (alpha1
), TRUE
);
469 gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (alpha1
), TRUE
);
471 label22
= gtk_label_new (_("Alpha 1"));
472 gtk_widget_show (label22
);
473 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 6), label22
);
474 gtk_label_set_justify (GTK_LABEL (label22
), GTK_JUSTIFY_LEFT
);
476 alpha2
= gtk_color_selection_new ();
477 add_color_selection(alpha2
, OPTION_ALPHA2
);
478 gtk_widget_show (alpha2
);
479 gtk_container_add (GTK_CONTAINER (notebook1
), alpha2
);
481 gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1
), alpha2
,
482 TRUE
, TRUE
, GTK_PACK_START
);
483 gtk_container_set_border_width (GTK_CONTAINER (alpha2
), 10);
484 gtk_color_selection_set_has_opacity_control (GTK_COLOR_SELECTION (alpha2
), TRUE
);
485 gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (alpha2
), TRUE
);
487 label23
= gtk_label_new (_("Alpha 2"));
488 gtk_widget_show (label23
);
489 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1
), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1
), 7), label23
);
490 gtk_label_set_justify (GTK_LABEL (label23
), GTK_JUSTIFY_LEFT
);
492 hbox1
= gtk_hbox_new (FALSE
, 0);
493 gtk_widget_show (hbox1
);
494 gtk_box_pack_start (GTK_BOX (vbox1
), hbox1
, FALSE
, FALSE
, 0);
496 save
= gtk_check_button_new_with_mnemonic (add_mnemonic(_("Save options in ~/.glivrc")));
497 add_check_button(save
, OPTION_SAVE
);
498 gtk_widget_show (save
);
499 gtk_box_pack_start (GTK_BOX (hbox1
), save
, TRUE
, TRUE
, 10);
500 gtk_container_set_border_width (GTK_CONTAINER (save
), 10);
502 cancel
= gtk_button_new_from_stock ("gtk-cancel");
503 add_cancel_button(cancel
);
504 gtk_widget_show (cancel
);
505 gtk_box_pack_start (GTK_BOX (hbox1
), cancel
, TRUE
, TRUE
, 10);
506 gtk_container_set_border_width (GTK_CONTAINER (cancel
), 10);
508 ok
= gtk_button_new_from_stock ("gtk-ok");
510 gtk_widget_show (ok
);
511 gtk_box_pack_start (GTK_BOX (hbox1
), ok
, TRUE
, TRUE
, 10);
512 gtk_container_set_border_width (GTK_CONTAINER (ok
), 10);
514 /* Store pointers to all widgets, for use by lookup_widget(). */
515 GLADE_HOOKUP_OBJECT_NO_REF (options_dialog
, options_dialog
, "options_dialog");
516 GLADE_HOOKUP_OBJECT (options_dialog
, vbox1
, "vbox1");
517 GLADE_HOOKUP_OBJECT (options_dialog
, notebook1
, "notebook1");
518 GLADE_HOOKUP_OBJECT (options_dialog
, vbox3
, "vbox3");
519 GLADE_HOOKUP_OBJECT (options_dialog
, table1
, "table1");
520 GLADE_HOOKUP_OBJECT (options_dialog
, fullscreen
, "fullscreen");
521 GLADE_HOOKUP_OBJECT (options_dialog
, menu_bar
, "menu_bar");
522 GLADE_HOOKUP_OBJECT (options_dialog
, scrollbars
, "scrollbars");
523 GLADE_HOOKUP_OBJECT (options_dialog
, status_bar
, "status_bar");
524 GLADE_HOOKUP_OBJECT (options_dialog
, hbox2
, "hbox2");
525 GLADE_HOOKUP_OBJECT (options_dialog
, label8
, "label8");
526 GLADE_HOOKUP_OBJECT (options_dialog
, delay_cursor
, "delay_cursor");
527 GLADE_HOOKUP_OBJECT (options_dialog
, label9
, "label9");
528 GLADE_HOOKUP_OBJECT (options_dialog
, label1
, "label1");
529 GLADE_HOOKUP_OBJECT (options_dialog
, table2
, "table2");
530 GLADE_HOOKUP_OBJECT (options_dialog
, dithering
, "dithering");
531 GLADE_HOOKUP_OBJECT (options_dialog
, scale_down
, "scale_down");
532 GLADE_HOOKUP_OBJECT (options_dialog
, force_load
, "force_load");
533 GLADE_HOOKUP_OBJECT (options_dialog
, alpha_checks
, "alpha_checks");
534 GLADE_HOOKUP_OBJECT (options_dialog
, one_image
, "one_image");
535 GLADE_HOOKUP_OBJECT (options_dialog
, mipmaps
, "mipmaps");
536 GLADE_HOOKUP_OBJECT (options_dialog
, maximize
, "maximize");
537 GLADE_HOOKUP_OBJECT (options_dialog
, resize_win
, "resize_win");
538 GLADE_HOOKUP_OBJECT (options_dialog
, label2
, "label2");
539 GLADE_HOOKUP_OBJECT (options_dialog
, vbox7
, "vbox7");
540 GLADE_HOOKUP_OBJECT (options_dialog
, hbox5
, "hbox5");
541 GLADE_HOOKUP_OBJECT (options_dialog
, images_menus_startup
, "images_menus_startup");
542 GLADE_HOOKUP_OBJECT (options_dialog
, images_menus_mnemonics
, "images_menus_mnemonics");
543 GLADE_HOOKUP_OBJECT (options_dialog
, thumbnails
, "thumbnails");
544 GLADE_HOOKUP_OBJECT (options_dialog
, table5
, "table5");
545 GLADE_HOOKUP_OBJECT (options_dialog
, label26
, "label26");
546 GLADE_HOOKUP_OBJECT (options_dialog
, label27
, "label27");
547 GLADE_HOOKUP_OBJECT (options_dialog
, label24
, "label24");
548 GLADE_HOOKUP_OBJECT (options_dialog
, label25
, "label25");
549 GLADE_HOOKUP_OBJECT (options_dialog
, thumbnails_width
, "thumbnails_width");
550 GLADE_HOOKUP_OBJECT (options_dialog
, thumbnails_height
, "thumbnails_height");
551 GLADE_HOOKUP_OBJECT (options_dialog
, label3
, "label3");
552 GLADE_HOOKUP_OBJECT (options_dialog
, vbox5
, "vbox5");
553 GLADE_HOOKUP_OBJECT (options_dialog
, zoom_pointer
, "zoom_pointer");
554 GLADE_HOOKUP_OBJECT (options_dialog
, table4
, "table4");
555 GLADE_HOOKUP_OBJECT (options_dialog
, label16
, "label16");
556 GLADE_HOOKUP_OBJECT (options_dialog
, label17
, "label17");
557 GLADE_HOOKUP_OBJECT (options_dialog
, label18
, "label18");
558 GLADE_HOOKUP_OBJECT (options_dialog
, label19
, "label19");
559 GLADE_HOOKUP_OBJECT (options_dialog
, max_fps
, "max_fps");
560 GLADE_HOOKUP_OBJECT (options_dialog
, history_length
, "history_length");
561 GLADE_HOOKUP_OBJECT (options_dialog
, label4
, "label4");
562 GLADE_HOOKUP_OBJECT (options_dialog
, vbox6
, "vbox6");
563 GLADE_HOOKUP_OBJECT (options_dialog
, hbox3
, "hbox3");
564 GLADE_HOOKUP_OBJECT (options_dialog
, start_slide_show
, "start_slide_show");
565 GLADE_HOOKUP_OBJECT (options_dialog
, slide_show_loop
, "slide_show_loop");
566 GLADE_HOOKUP_OBJECT (options_dialog
, hbox4
, "hbox4");
567 GLADE_HOOKUP_OBJECT (options_dialog
, label20
, "label20");
568 GLADE_HOOKUP_OBJECT (options_dialog
, slide_show_delay
, "slide_show_delay");
569 GLADE_HOOKUP_OBJECT (options_dialog
, label21
, "label21");
570 GLADE_HOOKUP_OBJECT (options_dialog
, label5
, "label5");
571 GLADE_HOOKUP_OBJECT (options_dialog
, background
, "background");
572 GLADE_HOOKUP_OBJECT (options_dialog
, label6
, "label6");
573 GLADE_HOOKUP_OBJECT (options_dialog
, alpha1
, "alpha1");
574 GLADE_HOOKUP_OBJECT (options_dialog
, label22
, "label22");
575 GLADE_HOOKUP_OBJECT (options_dialog
, alpha2
, "alpha2");
576 GLADE_HOOKUP_OBJECT (options_dialog
, label23
, "label23");
577 GLADE_HOOKUP_OBJECT (options_dialog
, hbox1
, "hbox1");
578 GLADE_HOOKUP_OBJECT (options_dialog
, save
, "save");
579 GLADE_HOOKUP_OBJECT (options_dialog
, cancel
, "cancel");
580 GLADE_HOOKUP_OBJECT (options_dialog
, ok
, "ok");
582 return options_dialog
;