From ecac5fdce2c08cf521616f4eda3a5099b002e55e Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 16 Dec 2011 02:06:35 +0100 Subject: [PATCH] Add help_button class to help in preferences Fixes: https://bugs.launchpad.net/midori/+bug/889238 --- katze/katze-preferences.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5