From 123f506198c535dcb073c1998fed37c25ad131f9 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 12 Feb 2000 01:07:16 +0000 Subject: Fixed the location the first time you see the drop down menus for changing 2000-02-11 Christopher James Lahey * addressbook/contact-editor/e-contact-editor.c: Fixed the location the first time you see the drop down menus for changing which phone, email, or snail mail address you see. svn path=/trunk/; revision=1741 --- ChangeLog | 6 ++++++ addressbook/contact-editor/e-contact-editor.c | 7 +++++-- addressbook/gui/contact-editor/e-contact-editor.c | 7 +++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 102a88517a..3ce171816f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-02-11 Christopher James Lahey + + * addressbook/contact-editor/e-contact-editor.c: Fixed the + location the first time you see the drop down menus for changing + which phone, email, or snail mail address you see. + 2000-02-11 Christopher James Lahey * widgets/e-text/e-text.c (e_text_event): Made a click on a text diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c index 6a6c6d982e..01091b4bc3 100644 --- a/addressbook/contact-editor/e-contact-editor.c +++ b/addressbook/contact-editor/e-contact-editor.c @@ -296,13 +296,16 @@ _popup_position(GtkMenu *menu, gpointer data) { GtkWidget *button = GTK_WIDGET(data); + GtkRequisition request; int mh, mw; gdk_window_get_origin (button->window, x, y); *x += button->allocation.width; *y += button->allocation.height; - mh = GTK_WIDGET(menu)->allocation.height; - mw = GTK_WIDGET(menu)->allocation.width; + gtk_widget_size_request(GTK_WIDGET(menu), &request); + + mh = request.height; + mw = request.width; *x -= mw; if (*x < 0) diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 6a6c6d982e..01091b4bc3 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -296,13 +296,16 @@ _popup_position(GtkMenu *menu, gpointer data) { GtkWidget *button = GTK_WIDGET(data); + GtkRequisition request; int mh, mw; gdk_window_get_origin (button->window, x, y); *x += button->allocation.width; *y += button->allocation.height; - mh = GTK_WIDGET(menu)->allocation.height; - mw = GTK_WIDGET(menu)->allocation.width; + gtk_widget_size_request(GTK_WIDGET(menu), &request); + + mh = request.height; + mw = request.width; *x -= mw; if (*x < 0) -- cgit v1.2.3