From: Christian Dywan Date: Fri, 16 Dec 2011 01:06:35 +0000 (+0100) Subject: Add help_button class to help in preferences X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecac5fdce2c08cf521616f4eda3a5099b002e55e;p=midori Add help_button class to help in preferences Fixes: https://bugs.launchpad.net/midori/+bug/889238 --- diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c index 6c05f638..e4fd18aa 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