aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-12 09:07:16 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-12 09:07:16 +0800
commit123f506198c535dcb073c1998fed37c25ad131f9 (patch)
treef375647ecb6a6daf7e87fe6a42bff801be3d90ca
parent88dec7a2580f336ae11d805839ce3204c67ac07a (diff)
downloadgsoc2013-evolution-123f506198c535dcb073c1998fed37c25ad131f9.tar.gz
gsoc2013-evolution-123f506198c535dcb073c1998fed37c25ad131f9.tar.zst
gsoc2013-evolution-123f506198c535dcb073c1998fed37c25ad131f9.zip
Fixed the location the first time you see the drop down menus for changing
2000-02-11 Christopher James Lahey <clahey@helixcode.com> * 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
-rw-r--r--ChangeLog6
-rw-r--r--addressbook/contact-editor/e-contact-editor.c7
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c7
3 files changed, 16 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 102a88517a..3ce171816f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
+ * 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 <clahey@helixcode.com>
+
* widgets/e-text/e-text.c (e_text_event): Made a click on a text
widget set the cursor properly.
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)
een removedeadler2018-05-271-15/+0 * Update audio/logitechmediaserver to latest versionrodrigo2018-05-071-0/+1 * Update to 4.0.olivier2018-03-251-1/+0 * Remove expired ports:rene2018-01-281-1/+0 * - fix line meddled by vimdinoex2018-01-151-1/+1 * - Add license informationdinoex2018-01-151-1/+2 * Mark net/frr as RESTRICTED, it contains a possible GPL violation of somerene2018-01-121-0/+1 * . Add entries for the java/linux-oracle-{jdk,jre}9 ports.glewis2017-10-151-0/+2 * Remove ventrilo-serverbapt2017-10-041-1/+0 * graphics/gpu-firmware-kmod: explicitly specify licensing terms for AMD and In...jmd2017-08-301-1/+0 * Remove expired ports:rene2017-08-231-2/+0 * Remove devel/p4 from LEGALasomers2017-05-231-1/+0 * graphics/gpu-firmware-kmod: update to reflect that distribution in binary for...jmd2017-05-021-0/+1 * Remove expired ports:rene2017-03-091-3/+0 * Remove expired ports:rene2017-03-021-1/+0 * Remove expired ports:rene2017-02-281-2/+0 * Remove expired ports:rene2017-01-281-1/+0 * Remove expired port:rene2017-01-011-1/+0