diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2019-06-24 11:09:35 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2019-07-03 11:42:28 +0200 |
commit | f66e7648551765054a300ba4edb94be03593864a (patch) | |
tree | 384e681272677b800e46f0e031257c9317533087 /gtk/gtkmenu.c | |
parent | a8c23d06ac6074835042d0ab33b2fef9c363b31f (diff) | |
download | gtk+-f66e7648551765054a300ba4edb94be03593864a.tar.gz |
menu: Remove unused variable
Diffstat (limited to 'gtk/gtkmenu.c')
-rw-r--r-- | gtk/gtkmenu.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index fef9f53050..261632b9de 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -2414,7 +2414,6 @@ gtk_menu_position (GtkMenu *menu) GdkAnchorHints anchor_hints; gint rect_anchor_dx, rect_anchor_dy; GdkSurface *toplevel; - gboolean emulated_move_to_rect = FALSE; rect_anchor = priv->rect_anchor; menu_anchor = priv->menu_anchor; @@ -2461,10 +2460,8 @@ gtk_menu_position (GtkMenu *menu) g_signal_handlers_disconnect_by_func (toplevel, moved_to_rect_cb, menu); - if (!emulated_move_to_rect) - g_signal_connect (toplevel, "moved-to-rect", G_CALLBACK (moved_to_rect_cb), - menu); - + g_signal_connect (toplevel, "moved-to-rect", G_CALLBACK (moved_to_rect_cb), + menu); gdk_surface_move_to_rect (toplevel, &rect, |