[Xfce4-commits] <xfce4-places-plugin:master> Removing dead code.
Andrzej
noreply at xfce.org
Mon Sep 3 18:46:01 CEST 2012
Updating branch refs/heads/master
to 4ca5e93ab98b35a005d603077309ee6c4814e2b8 (commit)
from e2dc769ea98497ac1b26f42eab5ef1db980e61f4 (commit)
commit 4ca5e93ab98b35a005d603077309ee6c4814e2b8
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Sep 4 01:44:52 2012 +0900
Removing dead code.
panel-plugin/button.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/panel-plugin/button.c b/panel-plugin/button.c
index 342f544..dd7cc0b 100644
--- a/panel-plugin/button.c
+++ b/panel-plugin/button.c
@@ -414,9 +414,6 @@ places_button_resize(PlacesButton *self)
{
gboolean show_image, show_label;
gint new_size, image_size;
- GtkOrientation panel_orientation, orientation;
-
- gint total_width, total_height;
gint image_width, image_height;
gint label_width, label_height;
gint nrows;
@@ -437,9 +434,6 @@ places_button_resize(PlacesButton *self)
show_image = self->pixbuf_factory != NULL;
show_label = self->label_text != NULL;
- total_width = 0;
- total_height = 0;
-
/* image */
#ifdef HAS_PANEL_49
mode = xfce_panel_plugin_get_mode(self->plugin);
@@ -458,13 +452,6 @@ places_button_resize(PlacesButton *self)
gtk_alignment_set (GTK_ALIGNMENT (self->alignment), 0.5, 0.0, 1.0, 0.0);
else
gtk_alignment_set (GTK_ALIGNMENT (self->alignment), 0.0, 0.5, 0.0, 1.0);
-
- orientation =
- (mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL) ?
- GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL;
- panel_orientation = xfce_panel_plugin_get_orientation(self->plugin);
-#else
- panel_orientation = orientation = xfce_panel_plugin_get_orientation(self->plugin);
#endif
/* TODO: could check if anything changed
* (though it's hard to know if the icon theme changed) */
More information about the Xfce4-commits
mailing list