[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 01/01: Revert "drop now useless gtk_widget_set_size_request() calls"

noreply at xfce.org noreply at xfce.org
Sat Dec 24 23:42:07 CET 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-systemload-plugin.

commit 87d0c6a642512afe7a80486402e3bbd431602ad4
Author: Landry Breuil <landry at xfce.org>
Date:   Sat Dec 24 23:40:46 2016 +0100

    Revert "drop now useless gtk_widget_set_size_request() calls"
    
    This reverts commit 5d2b49ad38c7cd193c34cdadb49d9f347769796c.
    
    In the end this is still needed to ensure a minimal space is kept when not
    showing labels
---
 panel-plugin/systemload.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index 9b4f91e..a640f4c 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -627,8 +627,24 @@ monitor_write_config(XfcePanelPlugin *plugin, t_global_monitor *global)
 static gboolean
 monitor_set_size(XfcePanelPlugin *plugin, int size, t_global_monitor *global)
 {
+    gint count;
 
     gtk_container_set_border_width (GTK_CONTAINER (global->ebox), (size > 26 ? 2 : 1));
+    for(count = 0; count < 3; count++)
+    {
+        if (xfce_panel_plugin_get_orientation (plugin) == 
+                GTK_ORIENTATION_HORIZONTAL)
+        {
+            gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status),
+                                        8, -1);
+        }
+        else
+        {
+            gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status),
+                                        -1, 8);
+        }
+    }
+    
     setup_monitor(global);
 
     return TRUE;

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


More information about the Xfce4-commits mailing list