]> spindle.queued.net Git - midori/commitdiff
Add help_button class to help in preferences
authorChristian Dywan <christian@twotoasts.de>
Fri, 16 Dec 2011 01:06:35 +0000 (02:06 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 16 Dec 2011 01:06:35 +0000 (02:06 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/889238
katze/katze-preferences.c

index 6c05f63821730db50586d39910d9c869698d4fdd..e4fd18aac44651fce48f6ac8f5899f9dc00c532c 100644 (file)
@@ -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