Mercurial > geeqie.yaz
comparison src/preferences.c @ 625:076e6f7e9ecb
Add an help button to OSD info configuration in Preferences dialog.
Make its own section named "Overlay Screen Display".
author | zas_ |
---|---|
date | Sun, 11 May 2008 11:30:41 +0000 |
parents | 5da092a6a92a |
children | 1fa2cb6d9d65 |
comparison
equal
deleted
inserted
replaced
624:4cae1118e881 | 625:076e6f7e9ecb |
---|---|
828 _("This will reset the image overlay template string to the default.\nContinue?")); | 828 _("This will reset the image overlay template string to the default.\nContinue?")); |
829 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, image_overlay_default_template_ok_cb, TRUE); | 829 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, image_overlay_default_template_ok_cb, TRUE); |
830 gtk_widget_show(gd->dialog); | 830 gtk_widget_show(gd->dialog); |
831 } | 831 } |
832 | 832 |
833 static void image_overlay_help_cb(GtkWidget *widget, gpointer data) | |
834 { | |
835 help_window_show("overlay"); | |
836 } | |
833 | 837 |
834 /* general options tab */ | 838 /* general options tab */ |
835 static void config_tab_general(GtkWidget *notebook) | 839 static void config_tab_general(GtkWidget *notebook) |
836 { | 840 { |
837 GtkWidget *label; | 841 GtkWidget *label; |
1322 | 1326 |
1323 pref_checkbox_new_int(group, _("Smooth image flip"), | 1327 pref_checkbox_new_int(group, _("Smooth image flip"), |
1324 options->fullscreen.clean_flip, &c_options->fullscreen.clean_flip); | 1328 options->fullscreen.clean_flip, &c_options->fullscreen.clean_flip); |
1325 pref_checkbox_new_int(group, _("Disable screen saver"), | 1329 pref_checkbox_new_int(group, _("Disable screen saver"), |
1326 options->fullscreen.disable_saver, &c_options->fullscreen.disable_saver); | 1330 options->fullscreen.disable_saver, &c_options->fullscreen.disable_saver); |
1331 | |
1332 | |
1333 group = pref_group_new(vbox, FALSE, _("Overlay Screen Display"), GTK_ORIENTATION_VERTICAL); | |
1334 | |
1327 pref_checkbox_new_int(group, _("Always show image overlay at startup"), | 1335 pref_checkbox_new_int(group, _("Always show image overlay at startup"), |
1328 options->image_overlay.common.show_at_startup, &c_options->image_overlay.common.show_at_startup); | 1336 options->image_overlay.common.show_at_startup, &c_options->image_overlay.common.show_at_startup); |
1329 pref_label_new(group, _("Image overlay template")); | 1337 pref_label_new(group, _("Image overlay template")); |
1330 | 1338 |
1331 scrolled = gtk_scrolled_window_new(NULL, NULL); | 1339 scrolled = gtk_scrolled_window_new(NULL, NULL); |
1360 button = pref_button_new(NULL, NULL, _("Defaults"), FALSE, | 1368 button = pref_button_new(NULL, NULL, _("Defaults"), FALSE, |
1361 G_CALLBACK(image_overlay_default_template_cb), image_overlay_template_view); | 1369 G_CALLBACK(image_overlay_default_template_cb), image_overlay_template_view); |
1362 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 1370 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
1363 gtk_widget_show(button); | 1371 gtk_widget_show(button); |
1364 | 1372 |
1373 button = pref_button_new(NULL, GTK_STOCK_HELP, NULL, FALSE, | |
1374 G_CALLBACK(image_overlay_help_cb), NULL); | |
1375 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | |
1376 gtk_widget_show(button); | |
1377 | |
1365 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(image_overlay_template_view)); | 1378 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(image_overlay_template_view)); |
1366 if (options->image_overlay.common.template_string) gtk_text_buffer_set_text(buffer, options->image_overlay.common.template_string, -1); | 1379 if (options->image_overlay.common.template_string) gtk_text_buffer_set_text(buffer, options->image_overlay.common.template_string, -1); |
1367 g_signal_connect(G_OBJECT(buffer), "changed", | 1380 g_signal_connect(G_OBJECT(buffer), "changed", |
1368 G_CALLBACK(image_overlay_template_view_changed_cb), image_overlay_template_view); | 1381 G_CALLBACK(image_overlay_template_view_changed_cb), image_overlay_template_view); |
1369 | 1382 |