[Xfce4-commits] <xfce4-indicator-plugin:master> Check for empty labels to optimize layout

Andrzej noreply at xfce.org
Wed Dec 11 02:20:01 CET 2013


Updating branch refs/heads/master
         to d046d4b341f2194d52dbd8408740789ca7be0063 (commit)
       from bb667977d8fa17a8620e437d3a755832d0b91390 (commit)

commit d046d4b341f2194d52dbd8408740789ca7be0063
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Wed Dec 11 01:18:16 2013 +0000

    Check for empty labels to optimize layout

 panel-plugin/indicator-button-box.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/indicator-button-box.c b/panel-plugin/indicator-button-box.c
index 1174260..e99df98 100644
--- a/panel-plugin/indicator-button-box.c
+++ b/panel-plugin/indicator-button-box.c
@@ -362,7 +362,8 @@ indicator_button_box_is_small (IndicatorButtonBox *box)
 
   box->orientation = indicator_config_get_panel_orientation (box->config);
 
-  if (box->label != NULL)
+  if (box->label != NULL &&
+      g_strcmp0 (gtk_label_get_label (GTK_LABEL (box->label)), "") != 0)
     {
       box->is_small = FALSE;
       if (box->orientation == GTK_ORIENTATION_VERTICAL &&


More information about the Xfce4-commits mailing list