[Xfce4-commits] [xfce/xfce4-panel] 01/01: Set labels in menuitems to be left-aligned (Bug #13539)

noreply at xfce.org noreply at xfce.org
Sun Apr 30 00:22:26 CEST 2017


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit d6744ac6480f0a540b217b4dd72e502dae0b244c
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Apr 30 00:21:39 2017 +0200

    Set labels in menuitems to be left-aligned (Bug #13539)
    
    Gtk+3 unfortunately defaults to centered.
---
 plugins/launcher/launcher.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c
index 3998224..c75880b 100644
--- a/plugins/launcher/launcher.c
+++ b/plugins/launcher/launcher.c
@@ -1567,6 +1567,7 @@ launcher_plugin_menu_construct (LauncherPlugin *plugin)
       name = garcon_menu_item_get_name (item);
       mi = gtk_menu_item_new ();
       label = gtk_label_new (panel_str_is_empty (name) ? _("Unnamed Item") : name);
+      gtk_label_set_xalign (GTK_LABEL (label), 0.0);
       box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_box_pack_end (GTK_BOX (box), label, TRUE, TRUE, 0);
       gtk_container_add (GTK_CONTAINER (mi), box);

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


More information about the Xfce4-commits mailing list