[Xfce4-commits] <xfce4-systemload-plugin:master> Better compliance with panel plugin HIG
Landry Breuil
noreply at xfce.org
Sat Jun 23 11:46:02 CEST 2012
Updating branch refs/heads/master
to ddb74ac8d6328cf5ef1c2dcf95b4aabc9956459e (commit)
from f93bdeec293b76fc3178768bf06836948695f102 (commit)
commit ddb74ac8d6328cf5ef1c2dcf95b4aabc9956459e
Author: Landry Breuil <landry at xfce.org>
Date: Sat Jun 23 10:38:27 2012 +0200
Better compliance with panel plugin HIG
- set border width depending on size in set_size callback
- set pbars size to 8px/-1
panel-plugin/systemload.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index 337a36c..8d11346 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -365,7 +365,6 @@ monitor_control_new(XfcePanelPlugin *plugin)
global->use_timeout_seconds = TRUE;
global->timeout_id = 0;
global->ebox = gtk_event_box_new();
- gtk_container_set_border_width (GTK_CONTAINER (global->ebox), BORDER/2);
gtk_widget_show(global->ebox);
global->box = NULL;
@@ -622,18 +621,19 @@ 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),
- BORDER, size - BORDER);
+ 8, -1);
}
else
{
gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status),
- size - BORDER, BORDER);
+ -1, 8);
}
}
More information about the Xfce4-commits
mailing list