Commit 44404f2d authored by Søren Sandmann's avatar Søren Sandmann Committed by Søren Sandmann Pedersen
Browse files

Translate x, y into widget coordinates instead of root coordinates. Patch



Mon Apr  4 12:14:35 2005  Søren Sandmann  <sandmann@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
	widget coordinates instead of root coordinates. Patch from Jorn
	Baayen. (#172236)
parent d4b80808
Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
* gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
widget coordinates instead of root coordinates. Patch from Jorn
Baayen. (#172236)
2005-04-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c: Add a tooltips property.
......
Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
* gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
widget coordinates instead of root coordinates. Patch from Jorn
Baayen. (#172236)
2005-04-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c: Add a tooltips property.
......
Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
* gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
widget coordinates instead of root coordinates. Patch from Jorn
Baayen. (#172236)
2005-04-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c: Add a tooltips property.
......
......@@ -2954,9 +2954,10 @@ gtk_menu_handle_scrolling (GtkMenu *menu,
GTK_WIDGET (menu)->style->ythickness + vertical_padding;
gdk_window_get_position (menu->toplevel->window, &top_x, &top_y);
x -= top_x;
y -= top_y;
gdk_window_get_position (GTK_WIDGET (menu)->window, &win_x, &win_y);
win_x += top_x;
win_y += top_y;
if (menu->upper_arrow_visible && !menu->tearoff_active)
{
......
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