After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659047 - incorrect display of file filter combo
incorrect display of file filter combo
Status: RESOLVED DUPLICATE of bug 657949
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2011-09-14 13:14 UTC by Allin Cottrell
Modified: 2011-09-14 13:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
minimal test case (1.57 KB, text/x-c)
2011-09-14 13:14 UTC, Allin Cottrell
Details

Description Allin Cottrell 2011-09-14 13:14:28 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>
Comment 1 Federico Mena Quintero 2011-09-14 13:31:11 UTC
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 ***