gtk+ r19813 - trunk/gtk



Author: federico
Date: Thu Mar 13 00:32:32 2008
New Revision: 19813
URL: http://svn.gnome.org/viewvc/gtk+?rev=19813&view=rev

Log:
Remove files_added handler

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/gtk/gtkfilechooserentry.c

Modified: trunk/gtk/gtkfilechooserentry.c
==============================================================================
--- trunk/gtk/gtkfilechooserentry.c	(original)
+++ trunk/gtk/gtkfilechooserentry.c	Thu Mar 13 00:32:32 2008
@@ -119,9 +119,6 @@
 					   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 @@
   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;
     }
@@ -660,14 +657,6 @@
 }
 
 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,
 				       gint         new_text_length,
@@ -832,9 +821,6 @@
 
   /* 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 @@
 	   */
 	  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");



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