From 8786acaa3a027ae82ba4410c91c1a29ed68d12f3 Mon Sep 17 00:00:00 2001 From: "Sergey V. Udaltsov" Date: Sat, 7 Feb 2009 13:10:46 +0000 Subject: [PATCH] restored Help button in options, b.g.o#556952 svn path=/trunk/; revision=9246 --- capplets/keyboard/ChangeLog | 6 +++++ .../gnome-keyboard-properties-xkbot.c | 26 ++++++++++++------- .../keyboard/gnome-keyboard-properties.glade | 1 + 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/capplets/keyboard/ChangeLog b/capplets/keyboard/ChangeLog index 70e8b5977..5d532450f 100644 --- a/capplets/keyboard/ChangeLog +++ b/capplets/keyboard/ChangeLog @@ -1,3 +1,9 @@ +2009-02-07 Sergey Udaltsov + + * gnome-keyboard-properties-xkbot.c, gnome-keyboard-properties.glade: + restored (now functioning) help button in Options, + http://bugzilla.gnome.org/show_bug.cgi?id=556952 + ==================== 2.25.90 ==================== 2009-01-30 Jens Granseuer diff --git a/capplets/keyboard/gnome-keyboard-properties-xkbot.c b/capplets/keyboard/gnome-keyboard-properties-xkbot.c index e9e15c62a..781ae83ee 100644 --- a/capplets/keyboard/gnome-keyboard-properties-xkbot.c +++ b/capplets/keyboard/gnome-keyboard-properties-xkbot.c @@ -416,16 +416,24 @@ xkb_options_load_options (GladeXML * dialog) static void chooser_response_cb (GtkDialog * dialog, gint response, gpointer data) { - if (response == GTK_RESPONSE_CLOSE) { - /* just cleanup */ - GSList *expanders_list = - g_object_get_data (G_OBJECT (dialog), EXPANDERS_PROP); - g_object_set_data (G_OBJECT (dialog), EXPANDERS_PROP, - NULL); - g_slist_free (expanders_list); + switch (response) { + case GTK_RESPONSE_HELP: + capplet_help (GTK_WINDOW (dialog), + "prefs-keyboard-layoutoptions"); + break; + case GTK_RESPONSE_CLOSE:{ + /* just cleanup */ + GSList *expanders_list = + g_object_get_data (G_OBJECT (dialog), + EXPANDERS_PROP); + g_object_set_data (G_OBJECT (dialog), + EXPANDERS_PROP, NULL); + g_slist_free (expanders_list); - gtk_widget_destroy (GTK_WIDGET (dialog)); - chooser_dialog = NULL; + gtk_widget_destroy (GTK_WIDGET (dialog)); + chooser_dialog = NULL; + } + break; } } diff --git a/capplets/keyboard/gnome-keyboard-properties.glade b/capplets/keyboard/gnome-keyboard-properties.glade index 9bf373cab..4e71774c1 100644 --- a/capplets/keyboard/gnome-keyboard-properties.glade +++ b/capplets/keyboard/gnome-keyboard-properties.glade @@ -2037,6 +2037,7 @@ GTK_BUTTONBOX_END + True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK