From d8dbe5c067401094bc2dddd0f95d7881cfb71cd7 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 21 Jun 2013 19:28:44 -0500 Subject: 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. --- src/prefs-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3