Revision 3318

View differences:

src/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);
ChangeLog
1
2013-12-20
2

  
3
	* src/addr_compl.c: address_completion_create_completion_window():
4
	  use gdk_window_get_origin() instead of deprecated
5
	  gdk_window_get_deskrelative_origin() (fixes wrong completion list
6
	  on OS X).
7

  
1 8
2013-12-19
2 9

  
3 10
	* src/main.c

Also available in: Unified diff