]> spindle.queued.net Git - midori/commitdiff
Add missing noundo and help_button classes
authorChristian Dywan <christian@twotoasts.de>
Fri, 13 Jul 2012 22:27:16 +0000 (00:27 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 14 Jul 2012 22:13:43 +0000 (00:13 +0200)
extensions/adblock.c
midori/midori-browser.c
midori/midori-searchaction.c

index 852a4b1861d53724fb4baebb96e7c256b057b473..b35ae79310457d994991f4973e4b2f0e6d077cd6 100644 (file)
@@ -480,6 +480,11 @@ adblock_get_preferences_dialog (MidoriExtension* extension)
         GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
         #endif
         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 (dialog),
+            GTK_RESPONSE_HELP)), "help_button");
+    #endif
     content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
     g_signal_connect (dialog, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &dialog);
index 1ace19fa62e73fa514d14a55a9a4024c5473bf6c..fae649c9d68ef35b094665500136c9f2a73aef41 100644 (file)
@@ -4752,6 +4752,11 @@ _action_clear_private_data_activate (GtkAction*     action,
             GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
             GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
             _("_Clear private data"), GTK_RESPONSE_ACCEPT, 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 (dialog),
+                GTK_RESPONSE_ACCEPT)), "noundo");
+        #endif
         content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
         gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), FALSE);
         screen = gtk_widget_get_screen (GTK_WIDGET (browser));
index a4efe4543537585eb6c393f673d18561083d985c..a6d3dbf180278e0206a755c1de47e046614250a1 100644 (file)
@@ -1305,6 +1305,11 @@ midori_search_action_get_dialog (MidoriSearchAction* search_action)
         GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
         #endif
         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 (dialog),
+            GTK_RESPONSE_HELP)), "help_button");
+    #endif
     g_signal_connect (dialog, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &search_action->dialog);
     gtk_window_set_icon_name (GTK_WINDOW (dialog), GTK_STOCK_PROPERTIES);