From 756497d1421ace092b9c833b62e17a53a3236b84 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 13 Mar 2008 00:32:32 +0000 Subject: [PATCH] Remove files_added handler Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=19813 --- gtk/gtkfilechooserentry.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index d4b6d3982b..1b05942f13 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -119,9 +119,6 @@ static gboolean completion_match_func (GtkEntryCompletion *comp, const char *key, GtkTreeIter *iter, gpointer data); -static void files_added_cb (GtkFileSystem *file_system, - GSList *added_uris, - GtkFileChooserEntry *chooser_entry); static char *maybe_append_separator_to_path (GtkFileChooserEntry *chooser_entry, GtkFilePath *path, gchar *display_name); @@ -237,7 +234,7 @@ gtk_file_chooser_entry_dispose (GObject *object) if (chooser_entry->current_folder) { g_signal_handlers_disconnect_by_func (chooser_entry->current_folder, - G_CALLBACK (files_added_cb), chooser_entry); + G_CALLBACK (finished_loading_cb), chooser_entry); g_object_unref (chooser_entry->current_folder); chooser_entry->current_folder = NULL; } @@ -659,14 +656,6 @@ update_current_folder_files (GtkFileChooserEntry *chooser_entry, add_completion_idle (chooser_entry); } -static void -files_added_cb (GtkFileSystem *file_system, - GSList *added_uris, - GtkFileChooserEntry *chooser_entry) -{ - update_current_folder_files (chooser_entry, added_uris); -} - static void gtk_file_chooser_entry_do_insert_text (GtkEditable *editable, const gchar *new_text, @@ -832,9 +821,6 @@ load_directory_get_folder_callback (GtkFileSystemHandle *handle, /* FIXME: connect to the following two signals? Create the completion store here, or wait until the folder is loaded? */ - g_signal_connect (chooser_entry->current_folder, "files-added", - G_CALLBACK (files_added_cb), chooser_entry); - chooser_entry->completion_store = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, GTK_TYPE_FILE_PATH); @@ -887,9 +873,6 @@ reload_current_folder (GtkFileChooserEntry *chooser_entry, */ if (chooser_entry->current_folder) { - g_signal_handlers_disconnect_by_func (chooser_entry->current_folder, - G_CALLBACK (files_added_cb), chooser_entry); - if (chooser_entry->load_folder_handle) { printf ("Cancelling folder load\n");