From 10b961620f3f6be2ef9b9c1bce50767185ad5a3b Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Mon, 21 May 2012 13:55:55 +0200 Subject: Make spacing consistent with other plugins. Other plugins with monitors have a default spacing/border of 8. Though that wastes a bit of space, for a more consistent and cleaner look & feel it might be better to adapt that setting. --- panel-plugin/systemload.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c index a35f1a8..47cabf6 100644 --- a/panel-plugin/systemload.c +++ b/panel-plugin/systemload.c @@ -57,6 +57,7 @@ static gchar *DEFAULT_COLOR[] = { "#0000c0", "#00c000", "#f0f000" }; #define UPDATE_TIMEOUT_SECONDS 1 #define BORDER 8 +#define SPACING 8 /* check for new Xfce 4.10 panel features */ #ifdef LIBXFCE4PANEL_CHECK_VERSION @@ -246,11 +247,11 @@ monitor_update_orientation (XfcePanelPlugin *plugin, if (panel_orientation == GTK_ORIENTATION_HORIZONTAL) { - global->box = gtk_hbox_new(FALSE, 0); + global->box = gtk_hbox_new(FALSE, SPACING); } else { - global->box = gtk_vbox_new(FALSE, 0); + global->box = gtk_vbox_new(FALSE, SPACING); } gtk_widget_show(global->box); -- 1.7.8.6