[rhythmbox] import-dialog: connect the right signal to get currently selected folder



commit 1d5d9c98f8001077c9f75b4c4d545af8dce50707
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Wed May 29 14:21:59 2013 +0100

    import-dialog: connect the right signal to get currently selected folder
    
    Instead of using the current-directory-changed signal on
    GtkFileChooserButton, use the selection-changed signal which is
    emitted both when a preselected directory is clicked by the user and
    also when the file selection dialog is opened by the user.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701194

 widgets/rb-import-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets/rb-import-dialog.c b/widgets/rb-import-dialog.c
index fcee1a8..ff7bada 100644
--- a/widgets/rb-import-dialog.c
+++ b/widgets/rb-import-dialog.c
@@ -552,7 +552,7 @@ impl_constructed (GObject *object)
        g_strfreev (locations);
        g_object_unref (settings);
 
-       g_signal_connect_object (dialog->priv->file_chooser, "current-folder-changed", G_CALLBACK 
(current_folder_changed_cb), dialog, 0);
+       g_signal_connect_object (dialog->priv->file_chooser, "selection-changed", G_CALLBACK 
(current_folder_changed_cb), dialog, 0);
 
        /* not sure why we have to set this, it should be the default */
        gtk_widget_set_vexpand (gtk_widget_get_parent (dialog->priv->file_chooser), FALSE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]