[Xfce4-commits] <midori:master> Add help_button class to help in preferences

Christian Dywan noreply at xfce.org
Fri Dec 16 02:16:01 CET 2011


Updating branch refs/heads/master
         to ecac5fdce2c08cf521616f4eda3a5099b002e55e (commit)
       from 330a782c1c487eec0eefa5728415ef98750a66ca (commit)

commit ecac5fdce2c08cf521616f4eda3a5099b002e55e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Dec 16 02:06:35 2011 +0100

    Add help_button class to help in preferences
    
    Fixes: https://bugs.launchpad.net/midori/+bug/889238

 katze/katze-preferences.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c
index 6c05f63..e4fd18a 100644
--- a/katze/katze-preferences.c
+++ b/katze/katze-preferences.c
@@ -102,6 +102,14 @@ katze_preferences_init (KatzePreferences* preferences)
     #if !HAVE_OSX
     gtk_dialog_add_buttons (GTK_DIALOG (preferences),
         GTK_STOCK_HELP, GTK_RESPONSE_HELP,
+        NULL);
+    #if GTK_CHECK_VERSION (3, 0, 0)
+    gtk_style_context_add_class (gtk_widget_get_style_context (
+        gtk_dialog_get_widget_for_response (GTK_DIALOG (preferences),
+            GTK_RESPONSE_HELP)), "help_button");
+    #endif
+
+    gtk_dialog_add_buttons (GTK_DIALOG (preferences),
         #if HAVE_HILDON
         GTK_STOCK_SAVE, GTK_RESPONSE_APPLY,
         #else


More information about the Xfce4-commits mailing list