GNOME Bugzilla – Bug 659047
incorrect display of file filter combo
Last modified: 2011-09-14 13:31:11 UTC
Created attachment 196493 [details] minimal test case When using a gtk file chooser dialog with more than one filter, a combo box is displayed enabling the user to select a filter. In GTK 2.24.6, I find that this combo is not displayed correctly: the list of filters appears, but the combo widget is much too narrow: for each of the filter names, only the first two characters are shown, followed by an ellipsis, making the names illegible. This is on Linux, using the plain vanilla default GTK theme. The problem is not present with GTK 2.24.5, nor is it present if the code is built against GTK 3.0.12. The installed pango version is 1.29.3. Everything is built with gcc 4.6.1. The change from GTK 2.24.5 to 2.24.6 that triggers this effect is the addition of new material in the function filter_create(), in gtkfilechooserdefault.c. Here is that new material: <code-snippet> /* Get the combo's text renderer and set ellipsize parameters */ cells = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (impl->filter_combo)); g_assert (cells); cell = cells->data; g_object_set (G_OBJECT (cell), "ellipsize", PANGO_ELLIPSIZE_END, NULL); g_list_free (cells); </code-snippet>
Thanks for the diagnosis! This was fixed a few days ago, so I'll mark the bug as duplicate. *** This bug has been marked as a duplicate of bug 657949 ***