]> spindle.queued.net Git - midori/commitdiff
Add bottom-toolbar style class to MidoriFindbar
authorChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 20:47:14 +0000 (21:47 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 9 Nov 2011 21:06:10 +0000 (22:06 +0100)
toolbars/midori-findbar.c

index c3296809423d0b3bb57201be995550ddc38a7eeb..3aa9191cdc895379f5b0ac6cff97b7be3822e30d 100644 (file)
@@ -248,6 +248,10 @@ midori_findbar_init (MidoriFindbar* findbar)
     GtkToolItem* toolitem;
 
     gtk_widget_set_name (GTK_WIDGET (findbar), "MidoriFindbar");
+    #if GTK_CHECK_VERSION (3, 0, 0)
+    gtk_style_context_add_class (
+        gtk_widget_get_style_context (GTK_WIDGET (findbar)), "bottom-toolbar");
+    #endif
     gtk_toolbar_set_icon_size (GTK_TOOLBAR (findbar), GTK_ICON_SIZE_MENU);
     gtk_toolbar_set_style (GTK_TOOLBAR (findbar), GTK_TOOLBAR_BOTH_HORIZ);
     g_signal_connect (findbar, "key-press-event",