From 333fea0cd375a6ee4feb65e4741779c636a2578f Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Mon, 28 May 2012 10:17:27 +0200 Subject: Use #define for progress bar size. Use a separate, fixed value for the progress bar size. --- 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 2dfa49d..966b1c1 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 PROGRESSBAR_SIZE 8 /* check for new Xfce 4.10 panel features */ #ifdef LIBXFCE4PANEL_CHECK_VERSION @@ -618,12 +619,12 @@ monitor_set_size(XfcePanelPlugin *plugin, int size, t_global_monitor *global) GTK_ORIENTATION_HORIZONTAL) { gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status), - BORDER, size - BORDER); + PROGRESSBAR_SIZE, -1); } else { gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status), - size - BORDER, BORDER); + -1, PROGRESSBAR_SIZE); } } -- 1.7.8.6