[Xfce4-commits] <xfce4-systemload-plugin:master> revert 71045d561e33a1484502ec3e552cc6ed22a34566 now that set_orientation() takes care of calling set_size()
Landry Breuil
noreply at xfce.org
Wed Apr 18 21:26:04 CEST 2012
Updating branch refs/heads/master
to f5ce2b7f47da64ba2f18a2ef070dab71277c8acd (commit)
from 71d7831d69279a4445b261c5b51693f06f584629 (commit)
commit f5ce2b7f47da64ba2f18a2ef070dab71277c8acd
Author: Landry Breuil <landry at xfce.org>
Date: Wed Apr 18 21:24:19 2012 +0200
revert 71045d561e33a1484502ec3e552cc6ed22a34566 now that set_orientation() takes care of calling set_size()
panel-plugin/systemload.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index da19892..50c2aa5 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -236,8 +236,7 @@ monitor_update_orientation (XfcePanelPlugin *plugin,
GtkOrientation orientation,
t_global_monitor *global)
{
- gint count, size;
- size = xfce_panel_plugin_get_size(plugin);
+ gint count;
gtk_widget_hide(GTK_WIDGET(global->ebox));
@@ -268,13 +267,11 @@ monitor_update_orientation (XfcePanelPlugin *plugin,
{
global->monitor[count]->box = GTK_WIDGET(gtk_hbox_new(FALSE, 0));
gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor[count]->status), GTK_PROGRESS_BOTTOM_TO_TOP);
- gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status), BORDER, size - BORDER);
}
else
{
global->monitor[count]->box = GTK_WIDGET(gtk_vbox_new(FALSE, 0));
gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(global->monitor[count]->status), GTK_PROGRESS_LEFT_TO_RIGHT);
- gtk_widget_set_size_request(GTK_WIDGET(global->monitor[count]->status), size - BORDER, BORDER);
}
gtk_box_pack_start(GTK_BOX(global->monitor[count]->box),
More information about the Xfce4-commits
mailing list