Avoid the plugin to enlarge the panel

(Old svn revision: 2285)
master
Mike Massonnet 2006-12-30 16:31:11 +00:00
parent 31403e75d8
commit 83c94ff23a
2 changed files with 7 additions and 2 deletions

View File

@ -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 2006-12-18 Bernhard Walle
* added code for DragonFly BSD, thanks to Bob Bagwill <bob@bagwill.com> * added code for DragonFly BSD, thanks to Bob Bagwill <bob@bagwill.com>

View File

@ -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) if (xfce_panel_plugin_get_orientation (plugin) == GTK_ORIENTATION_HORIZONTAL)
{ {
gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]),
BORDER, size - 4); BORDER, size - BORDER);
} }
else else
{ {
gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]),
size - 4, BORDER); size - BORDER, BORDER);
} }
} }
PRINT_DBG("monitor_set_size"); PRINT_DBG("monitor_set_size");