Revision 3318 src/addr_compl.c

View differences:

addr_compl.c
873 873
static void address_completion_create_completion_window(GtkEntry *entry_,
874 874
							gboolean select_next)
875 875
{
876
	gint x, y, height, width, depth;
876
	gint x, y, width;
877 877
	GtkWidget *scroll, *clist;
878 878
	GtkRequisition r;
879 879
	guint count = 0;
......
916 916
		g_free(text[0]);
917 917
	}
918 918

  
919
	gdk_window_get_geometry(entry->window, &x, &y, &width, &height, &depth);
920
	gdk_window_get_deskrelative_origin (entry->window, &x, &y);
921
	y += height;
919
	gdk_window_get_origin(entry->window, &x, &y);
920
	gtk_widget_size_request(entry, &r);
921
	width = entry->allocation.width;
922
	y += r.height;
922 923
	gtk_window_move(GTK_WINDOW(completion_window), x, y);
923 924

  
924 925
	gtk_widget_size_request(clist, &r);

Also available in: Unified diff