summaryrefslogtreecommitdiff
path: root/gtk/gtkmenutoolbutton.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-05-29 18:27:42 +0100
committerBastien Nocera <hadess@hadess.net>2012-05-30 17:49:25 +0100
commitcbc541d779b64aa1358766ad60ba19f9027b6831 (patch)
tree560e3a2e3f20f7b7581d4442f63d0df381a7eee2 /gtk/gtkmenutoolbutton.c
parent65166c36b91bf990d476e63060065486b73940e2 (diff)
downloadgtk+-cbc541d779b64aa1358766ad60ba19f9027b6831.tar.gz
gtkmenutoolbutton: Remove unused variable
Set but unused. https://bugzilla.gnome.org/show_bug.cgi?id=677055
Diffstat (limited to 'gtk/gtkmenutoolbutton.c')
-rw-r--r--gtk/gtkmenutoolbutton.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 3256d7dfd8..703ebe7e97 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -305,7 +305,6 @@ menu_position_func (GtkMenu *menu,
GtkMenuToolButtonPrivate *priv = button->priv;
GtkAllocation arrow_allocation;
GtkWidget *widget = GTK_WIDGET (button);
- GtkRequisition req;
GtkRequisition menu_req;
GtkOrientation orientation;
GtkTextDirection direction;
@@ -355,8 +354,6 @@ menu_position_func (GtkMenu *menu,
else
{
gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (priv->arrow_button)), x, y);
- gtk_widget_get_preferred_size (priv->arrow_button,
- &req, NULL);
gtk_widget_get_allocation (priv->arrow_button, &arrow_allocation);