[Xfce4-commits] [apps/mousepad] 02/09: Make last toolbar separator expanding

noreply at xfce.org noreply at xfce.org
Sun Jul 13 05:10:20 CEST 2014


This is an automated email from the git hooks/post-receive script.

mbrush pushed a commit to branch master
in repository apps/mousepad.

commit cbe1b798412aac8949a39365404b2efd22e13365
Author: Matthew Brush <mbrush at codebrainz.ca>
Date:   Sat Jul 12 16:48:07 2014 -0700

    Make last toolbar separator expanding
---
 mousepad/mousepad-window-ui.xml |    2 +-
 mousepad/mousepad-window.c      |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/mousepad/mousepad-window-ui.xml b/mousepad/mousepad-window-ui.xml
index 922d0a5..91a7179 100644
--- a/mousepad/mousepad-window-ui.xml
+++ b/mousepad/mousepad-window-ui.xml
@@ -153,7 +153,7 @@
       <toolitem action="find" />
       <toolitem action="replace" />
       <toolitem action="go-to" />
-      <separator />
+      <separator name="spacer" />
       <toolitem action="fullscreen" />
   </toolbar>
 
diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
index 21cc878..ef3944e 100644
--- a/mousepad/mousepad-window.c
+++ b/mousepad/mousepad-window.c
@@ -762,6 +762,11 @@ mousepad_window_init (MousepadWindow *window)
   window->toolbar = gtk_ui_manager_get_widget (window->ui_manager, "/main-toolbar");
   gtk_box_pack_start (GTK_BOX (window->box), window->toolbar, FALSE, FALSE, 0);
 
+  /* make the last toolbar separator so it expands and is invisible */
+  item = gtk_ui_manager_get_widget (window->ui_manager, "/main-toolbar/spacer");
+  gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (item), FALSE);
+  gtk_tool_item_set_expand (GTK_TOOL_ITEM (item), TRUE);
+
   /* sync the toolbar visibility and action state to the setting */
   action = gtk_action_group_get_action (window->action_group, "toolbar");
   active = MOUSEPAD_SETTING_GET_BOOLEAN (TOOLBAR_VISIBLE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list