diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-12-20 09:16:49 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-12-20 09:16:49 +0000 |
commit | 91282f23c547f0ddd35382d3a4b58db36fc007d7 (patch) | |
tree | fd2a616d93ca2c7a018d524491e39ac07d92db85 /src | |
parent | d905904d5d862da3805447f7c1d8b8900e6e0525 (diff) |
fixes wrong completion list on OS X.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3318 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/addr_compl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/addr_compl.c b/src/addr_compl.c index 6bbe36d2..9cfb3ac7 100644 --- a/src/addr_compl.c +++ b/src/addr_compl.c @@ -873,7 +873,7 @@ static gboolean address_completion_complete_address_in_entry(GtkEntry *entry, static void address_completion_create_completion_window(GtkEntry *entry_, gboolean select_next) { - gint x, y, height, width, depth; + gint x, y, width; GtkWidget *scroll, *clist; GtkRequisition r; guint count = 0; @@ -916,9 +916,10 @@ static void address_completion_create_completion_window(GtkEntry *entry_, g_free(text[0]); } - gdk_window_get_geometry(entry->window, &x, &y, &width, &height, &depth); - gdk_window_get_deskrelative_origin (entry->window, &x, &y); - y += height; + gdk_window_get_origin(entry->window, &x, &y); + gtk_widget_size_request(entry, &r); + width = entry->allocation.width; + y += r.height; gtk_window_move(GTK_WINDOW(completion_window), x, y); gtk_widget_size_request(clist, &r); |