aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-gui.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-21 02:57:20 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-21 02:57:20 +0800
commitc2beffd03405e6db4295afd6c2982388b808cb2e (patch)
tree819e50881626c5109ccdba5abb158585a3ca148b /lib/ephy-gui.c
parent822ca51797e05edbe42b80f1a33a70a7327d732e (diff)
downloadgsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar.gz
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar.bz2
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar.lz
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar.xz
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.tar.zst
gsoc2013-epiphany-c2beffd03405e6db4295afd6c2982388b808cb2e.zip
Merge eog-menu-api branch
2003-01-20 Marco Pesenti Gritti <marco@it.gnome.org> * Merge eog-menu-api branch
Diffstat (limited to 'lib/ephy-gui.c')
-rw-r--r--lib/ephy-gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index fe4018d38..90d282b3d 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -39,13 +39,12 @@ ephy_gui_menu_position_under_widget (GtkMenu *menu,
gpointer user_data)
{
GtkWidget *w = GTK_WIDGET (user_data);
- gint width, height;
gint screen_width, screen_height;
GtkRequisition requisition;
- gdk_drawable_get_size (w->window, &width, &height);
gdk_window_get_origin (w->window, x, y);
- *y = *y + height;
+ *x += w->allocation.x;
+ *y += w->allocation.y + w->allocation.height;
gtk_widget_size_request (GTK_WIDGET (menu), &requisition);
@@ -54,6 +53,7 @@ ephy_gui_menu_position_under_widget (GtkMenu *menu,
*x = CLAMP (*x, 0, MAX (0, screen_width - requisition.width));
*y = CLAMP (*y, 0, MAX (0, screen_height - requisition.height));
+ g_print ("result %d\n", *y);
}
/**