[Xfce4-commits] <postler:master> Don't draw separators in the toolbar

Christian Dywan noreply at xfce.org
Sun Nov 28 23:26:01 CET 2010


Updating branch refs/heads/master
         to 6ee950a379857aa48d953581fcb7e04882fdd77c (commit)
       from f287f9bfbb2953a140e40edc9cce1a6823b48432 (commit)

commit 6ee950a379857aa48d953581fcb7e04882fdd77c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Nov 27 16:21:23 2010 +0100

    Don't draw separators in the toolbar

 postler/postler-bureau.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 128b246..6297d23 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -60,7 +60,6 @@ public class Postler.Bureau : Gtk.Window {
             </menubar>
             <toolbar>
                 <toolitem action="MailReceive"/>
-                <separator/>
                 <toolitem action="MessageNew"/>
                 <separator/>
                 <toolitem action="MessageReply"/>
@@ -477,6 +476,11 @@ public class Postler.Bureau : Gtk.Window {
         menubar.hide ();
         shelf.pack_start (menubar, false, false, 0);
         toolbar = ui.get_widget ("/toolbar") as Gtk.Toolbar;
+        /* Do not draw separators in the toolbar */
+        foreach (var toolchild in toolbar.get_children ()) {
+            if (toolchild is Gtk.SeparatorToolItem)
+                (toolchild as Gtk.SeparatorToolItem).draw = false;
+        }
         toolbar.show_arrow = false;
         actions.get_action ("MessageNew").is_important = true;
         var toolitem = new Gtk.ToolItem ();



More information about the Xfce4-commits mailing list