changeset 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 4cae1118e881
children 20495dd4e6e6
files src/preferences.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/preferences.c	Sun May 11 10:25:04 2008 +0000
+++ b/src/preferences.c	Sun May 11 11:30:41 2008 +0000
@@ -830,6 +830,10 @@
 	gtk_widget_show(gd->dialog);
 }
 
+static void image_overlay_help_cb(GtkWidget *widget, gpointer data)
+{
+	help_window_show("overlay");
+}
 
 /* general options tab */
 static void config_tab_general(GtkWidget *notebook)
@@ -1324,6 +1328,10 @@
 			      options->fullscreen.clean_flip, &c_options->fullscreen.clean_flip);
 	pref_checkbox_new_int(group, _("Disable screen saver"),
 			      options->fullscreen.disable_saver, &c_options->fullscreen.disable_saver);
+
+
+	group = pref_group_new(vbox, FALSE, _("Overlay Screen Display"), GTK_ORIENTATION_VERTICAL);
+
 	pref_checkbox_new_int(group, _("Always show image overlay at startup"),
 			      options->image_overlay.common.show_at_startup, &c_options->image_overlay.common.show_at_startup);
 	pref_label_new(group, _("Image overlay template"));
@@ -1362,6 +1370,11 @@
 	gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 	gtk_widget_show(button);
 
+	button = pref_button_new(NULL, GTK_STOCK_HELP, NULL, FALSE,
+				 G_CALLBACK(image_overlay_help_cb), NULL);
+	gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+	gtk_widget_show(button);
+
 	buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(image_overlay_template_view));
 	if (options->image_overlay.common.template_string) gtk_text_buffer_set_text(buffer, options->image_overlay.common.template_string, -1);
 	g_signal_connect(G_OBJECT(buffer), "changed",