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 775057 - GtkFileChooserButton: gtk_file_chooser_button_set_width_chars doesn't work.
GtkFileChooserButton: gtk_file_chooser_button_set_width_chars doesn't work.
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-24 22:26 UTC by gnome.vrb
Modified: 2018-05-02 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gnome.vrb 2016-11-24 22:26:05 UTC
From what I have tried, setting any value to n_chars in:

void
gtk_file_chooser_button_set_width_chars
                               (GtkFileChooserButton *button,
                                gint n_chars);

doesn't seem to update anything in the UI. 

I think there are 2 widths here:

1. labels's width-chars / max-width-chars  ( priv->label )
2. GtkCellRendererText's width-chars / max-width-chars ( priv->name_cell )

Updating GtkCellRendererText's max-width-chars is the one which produces the desired update in width.
Comment 1 Daniel Boles 2017-09-03 14:00:39 UTC
Is this with all modes, or just select folder?
Comment 2 Daniel Boles 2017-09-03 14:01:50 UTC
A user on IRC just reported no luck with this either, until they hacked into the label and used its :max-width-chars too.
Comment 3 GNOME Infrastructure Team 2018-05-02 17:47:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/710.