[Xfce4-commits] <xfce4-systemload-plugin:master> Restore 2px border width on uptime ebox in case any of the other monitors are enabled

Landry Breuil noreply at xfce.org
Wed Apr 18 17:14:01 CEST 2012


Updating branch refs/heads/master
         to df73f2f3626ff9dc656a3fb65e36113d6d1aee33 (commit)
       from 41a698accf7cdc726eb3707c9a06d7fd4652481c (commit)

commit df73f2f3626ff9dc656a3fb65e36113d6d1aee33
Author: Landry Breuil <landry at xfce.org>
Date:   Wed Apr 18 17:12:45 2012 +0200

    Restore 2px border width on uptime ebox in case any of the other monitors are enabled

 panel-plugin/systemload.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index 6556d4c..aa1dbee 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -462,7 +462,15 @@ setup_monitor(t_global_monitor *global)
         }
     }
     if(global->uptime->enabled)
+    {
+        if (global->monitor[0]->options.enabled ||
+            global->monitor[1]->options.enabled ||
+            global->monitor[2]->options.enabled)
+        {
+            gtk_container_set_border_width(GTK_CONTAINER(global->uptime->ebox), 2);
+        }
         gtk_widget_show(GTK_WIDGET(global->uptime->ebox));
+    }
 
     setup_timer(global);
 }


More information about the Xfce4-commits mailing list