diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 20:53:25 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 20:53:25 +0000 |
commit | b68a50f9372875566f5bfc9644d0abf8fd41dbc9 (patch) | |
tree | a767c52038dcda6c142e1aec352317a915f2278e /gtk | |
parent | 713599b01007aaa60a12a22ecb8e8a70ad68ccdc (diff) |
Corrected position of filter autocompletion window when using GTK3.
svn path=/trunk/; revision=38721
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/filter_autocomplete.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/filter_autocomplete.c b/gtk/filter_autocomplete.c index 0200f3f9a7..7ebe2e4bac 100644 --- a/gtk/filter_autocomplete.c +++ b/gtk/filter_autocomplete.c @@ -777,7 +777,12 @@ filter_autocomplete_new(GtkWidget *filter_te, const gchar *protocol_name, (requisition.height<200? requisition.height+8:200)); gdk_window_get_origin(gtk_widget_get_window(filter_te), &x_pos, &y_pos); - y_pos = y_pos + filter_te_alloc.height; +#if GTK_CHECK_VERSION(3,0,0) + x_pos += filter_te_alloc.x; + y_pos += (filter_te_alloc.y + filter_te_alloc.height); +#else + y_pos += filter_te_alloc.height; +#endif gtk_window_move(GTK_WINDOW(popup_win), x_pos, y_pos); gtk_widget_show_all (popup_win); |