]> spindle.queued.net Git - midori/commitdiff
Add 2px space between tool buttons
authorNick Schermer <nick@xfce.org>
Mon, 12 Jan 2009 20:52:33 +0000 (21:52 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 12 Jan 2009 20:52:33 +0000 (21:52 +0100)
AUTHORS
midori/midori-browser.c

diff --git a/AUTHORS b/AUTHORS
index 68f24229e1a5ee9cd80e003a33911ef46d3c6f08..6535fe07802721cb760606af19a1df54f7319ce9 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -12,6 +12,7 @@ Contributors:
     Anders F Björklund <afb@macports.org>
     Alexander Hesse <alex@phicode.de>
     Brian Vuyk <brian@brianvuyk.com>
+    Nick Schermer <nick@xfce.org>
 
 Graphics:
     extension: Nancy Runge <nancy@twotoasts.de>
index 88f2545d1809e850966f7a7194a0a5f4ee55f22a..8d9bbf15c2662aee1f46c1ec1f34533995f49631 100644 (file)
@@ -1261,6 +1261,15 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "The list of history items",
                                      KATZE_TYPE_ARRAY,
                                      flags));
+
+    /* Add 2px space between tool buttons */
+    gtk_rc_parse_string (
+        "style \"tool-button-style\"\n {\n"
+        "GtkToolButton::icon-spacing = 2\n }\n"
+        "widget \"MidoriBrowser.*.MidoriBookmarkbar.Gtk*ToolButton\" "
+        "style \"tool-button-style\"\n"
+        "widget \"MidoriBrowser.*.MidoriFindbar.Gtk*ToolButton\" "
+        "style \"tool-button-style\"\n");
 }
 
 static void
@@ -3883,6 +3892,7 @@ midori_browser_init (MidoriBrowser* browser)
 
     /* Bookmarkbar */
     browser->bookmarkbar = gtk_toolbar_new ();
+    gtk_widget_set_name (browser->bookmarkbar, "MidoriBookmarkbar");
     gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->bookmarkbar),
                                GTK_ICON_SIZE_MENU);
     gtk_toolbar_set_style (GTK_TOOLBAR (browser->bookmarkbar),
@@ -4030,6 +4040,7 @@ midori_browser_init (MidoriBrowser* browser)
 
     /* Incremental findbar */
     browser->find = gtk_toolbar_new ();
+    gtk_widget_set_name (browser->find, "MidoriFindbar");
     gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->find), GTK_ICON_SIZE_MENU);
     gtk_toolbar_set_style (GTK_TOOLBAR (browser->find), GTK_TOOLBAR_BOTH_HORIZ);
     toolitem = gtk_tool_item_new ();