diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-11-05 13:21:03 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-11-05 13:21:03 +0000 |
commit | 363f3c901f88be84fd001d4d506acdbf283b8c18 (patch) | |
tree | bffbb6cc5b09bbaac390d9b5f6240b250b305f21 /gtk/filter_autocomplete.c | |
parent | ca82cbd29a23c8460ff57492ce7a53d1244d3d0c (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30834 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/filter_autocomplete.c')
-rw-r--r-- | gtk/filter_autocomplete.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/filter_autocomplete.c b/gtk/filter_autocomplete.c index 6274ee5355..f169f27de1 100644 --- a/gtk/filter_autocomplete.c +++ b/gtk/filter_autocomplete.c @@ -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); |