diff options
author | Federico Mena Quintero <federico@gnome.org> | 2013-06-22 08:28:44 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2013-06-22 08:28:44 +0800 |
commit | d8dbe5c067401094bc2dddd0f95d7881cfb71cd7 (patch) | |
tree | a03dfc08659dd3b49067870f1e08763f54367a97 /src | |
parent | e7132d317edd5acd610ba4f12a98bffd404dd5d3 (diff) | |
download | gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar.gz gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar.bz2 gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar.lz gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar.xz gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.tar.zst gsoc2013-epiphany-d8dbe5c067401094bc2dddd0f95d7881cfb71cd7.zip |
prefs: Use the correct signal to monitor GtkFileChooserButton's selection changes
The correct signal is 'selection-changed', as in all file choosers.
The signal that was being used, 'current-folder-changed', only means that the current
directory being shown in the file chooser dialog has changed - not that the selection
has changed.
See https://bugzilla.gnome.org/show_bug.cgi?id=696498#c8 - although that comment
suggests the use of the 'file-set' signal, which I don't think is very useful. It's
just a historical remnant.
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 7a6b77d1a..932da6336 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -878,7 +878,7 @@ create_download_path_button (EphyDialog *dialog) gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button), dir); gtk_file_chooser_button_set_width_chars (GTK_FILE_CHOOSER_BUTTON (button), DOWNLOAD_BUTTON_WIDTH); - g_signal_connect (button, "current-folder-changed", + g_signal_connect (button, "selection-changed", G_CALLBACK (download_path_changed_cb), dialog); gtk_label_set_mnemonic_widget (GTK_LABEL (label), button); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); |