[epiphany] prefs: Use the correct signal to monitor GtkFileChooserButton's selection changes
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] prefs: Use the correct signal to monitor GtkFileChooserButton's selection changes
- Date: Sat, 22 Jun 2013 00:39:06 +0000 (UTC)
commit d8dbe5c067401094bc2dddd0f95d7881cfb71cd7
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 21 19:28:44 2013 -0500
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 7a6b77d..932da63 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]