From 83c94ff23ab077a86c686e234c1ccaf1d9969cf2 Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Sat, 30 Dec 2006 16:31:11 +0000 Subject: [PATCH] Avoid the plugin to enlarge the panel (Old svn revision: 2285) --- ChangeLog | 5 +++++ panel-plugin/netload.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dff3217..0caa09c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-30 Mike Massonnet + + * panel-plugin/netload.c(monitor_set_size): avoid the plugin to enlarge + the panel. + 2006-12-18 Bernhard Walle * added code for DragonFly BSD, thanks to Bob Bagwill diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index 97cdea9..a12960c 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -605,12 +605,12 @@ static gboolean monitor_set_size(XfcePanelPlugin *plugin, int size, t_global_mon if (xfce_panel_plugin_get_orientation (plugin) == GTK_ORIENTATION_HORIZONTAL) { gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), - BORDER, size - 4); + BORDER, size - BORDER); } else { gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), - size - 4, BORDER); + size - BORDER, BORDER); } } PRINT_DBG("monitor_set_size");