mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Remove files_added handler
Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19813
This commit is contained in:
parent
d254972b7a
commit
756497d142
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user