Commit 36bcb3bf authored by Carlos Garnacho's avatar Carlos Garnacho

menu: small code cleanup

Don't check twice for the widget being realized to move
both windows
parent 10fa0913
......@@ -4998,10 +4998,10 @@ gtk_menu_scroll_to (GtkMenu *menu,
/* Scroll the menu: */
if (gtk_widget_get_realized (widget))
gdk_window_move (priv->bin_window, 0, -offset);
if (gtk_widget_get_realized (widget))
gdk_window_move_resize (priv->view_window, x, y, view_width, view_height);
{
gdk_window_move (priv->bin_window, 0, -offset);
gdk_window_move_resize (priv->view_window, x, y, view_width, view_height);
}
priv->scroll_offset = offset;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment