]> Pileus Git - ~andy/gtk/commit
filechooserbutton: Update the button's state only on programmatic changes to the...
authorFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 16:05:22 +0000 (10:05 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 20:31:47 +0000 (14:31 -0600)
commit2cfc56ced81d801669deb3a429a00e25769e5a70
tree437668ce5e7dad9929ecc4f5e2901d825d020605
parentfa4878979e0a72890ca577a210ccd7cf6291dbf0
filechooserbutton: Update the button's state only on programmatic changes to the filechooser's state

The idea is that the button will only update its state of the selection and current folder
when changes to those are done either by the calling program (with the filechooser's API)
or when the user actually confirms and dismisses the underlying GtkFileChooserDialog.

If the user makes changes to the dialog but has not dismissed it yet, those changes
will not be reflected in the button (as one would expect).

This commit also makes sure the current-folder-changed and selection-changed signals
are emitted at the right times.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserbutton.c