Resize the list in the autocompletion popup when narrowing down the elements

to remove a possible horizontal scrollbar when not needed.

svn path=/trunk/; revision=28681
This commit is contained in:
Stig Bjørlykke 2009-06-09 23:23:07 +00:00
parent 701cedf791
commit 97f33bab62
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ autocompletion_list_lookup(GtkWidget *filter_te, GtkWidget *popup_win, GtkWidget
g_free (first);
gtk_tree_view_columns_autosize(GTK_TREE_VIEW(list));
gtk_widget_size_request(list, &requisition);
gtk_widget_set_size_request(popup_win, popup_win->allocation.width, (requisition.height<200? requisition.height+8:200));