From Bahaa Naamneh via bug 4207:
Adjusts the positioning of the autocomplete popup window in a way it gets displayed exactly under the editable box. svn path=/trunk/; revision=30834
This commit is contained in:
parent
146ce8f258
commit
a5a7905084
|
@ -754,10 +754,8 @@ filter_autocomplete_new(GtkWidget *filter_te, const gchar *protocol_name, gboole
|
||||||
gtk_widget_set_size_request(popup_win, filter_te->allocation.width, (requisition.height<200? requisition.height+8:200));
|
gtk_widget_set_size_request(popup_win, filter_te->allocation.width, (requisition.height<200? requisition.height+8:200));
|
||||||
gtk_window_resize(GTK_WINDOW(popup_win), filter_te->allocation.width, (requisition.height<200? requisition.height+8:200));
|
gtk_window_resize(GTK_WINDOW(popup_win), filter_te->allocation.width, (requisition.height<200? requisition.height+8:200));
|
||||||
|
|
||||||
gtk_window_get_position(GTK_WINDOW(w_toplevel), &x_pos, &y_pos);
|
gdk_window_get_origin(filter_te->window, &x_pos, &y_pos);
|
||||||
x_pos = x_pos + filter_te->allocation.x;
|
y_pos = y_pos + filter_te->allocation.height;
|
||||||
y_pos = y_pos + filter_te->allocation.y + filter_te->allocation.height + 22;
|
|
||||||
|
|
||||||
gtk_window_move(GTK_WINDOW(popup_win), x_pos, y_pos);
|
gtk_window_move(GTK_WINDOW(popup_win), x_pos, y_pos);
|
||||||
|
|
||||||
gtk_widget_show_all (popup_win);
|
gtk_widget_show_all (popup_win);
|
||||||
|
|
Loading…
Reference in New Issue