Commit 8c4062f2 authored by Nathan Summers's avatar Nathan Summers Committed by Nate Summers
Browse files

clamp the popup menu's Y position to the visible area of the GtkTreeView.

2004-09-15  Nathan Summers  <rock@gimp.org>

        * app/widgets/gimpcontainertreeview.c
        (gimp_container_tree_view_menu_position): clamp the popup menu's Y
        position to the visible area of the GtkTreeView.  Fixes #152662.
parent e8dd3c3b
2004-09-15 Nathan Summers <rock@gimp.org>
* app/widgets/gimpcontainertreeview.c
(gimp_container_tree_view_menu_position): clamp the popup menu's Y
position to the visible area of the GtkTreeView. Fixes #152662.
2004-09-14 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpquerybox.c: set the "activates-default"
......
......@@ -359,6 +359,9 @@ gimp_container_tree_view_menu_position (GtkMenu *menu,
tree_view->main_column, &cell_rect);
gtk_tree_path_free (path);
cell_rect.y = CLAMP (cell_rect.y, 0, widget->allocation.height);
*x += widget->allocation.width / 2;
*y += cell_rect.y + cell_rect.height / 2;
}
......
Supports Markdown
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