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:
Stig Bjørlykke 2009-11-05 13:21:03 +00:00
parent 146ce8f258
commit a5a7905084
1 changed files with 2 additions and 4 deletions

View File

@ -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_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);
x_pos = x_pos + filter_te->allocation.x;
y_pos = y_pos + filter_te->allocation.y + filter_te->allocation.height + 22;
gdk_window_get_origin(filter_te->window, &x_pos, &y_pos);
y_pos = y_pos + filter_te->allocation.height;
gtk_window_move(GTK_WINDOW(popup_win), x_pos, y_pos);
gtk_widget_show_all (popup_win);