Same change as to gtkfilesystemunix.c.

2006-10-01  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
This commit is contained in:
Tor Lillqvist 2006-10-01 20:10:26 +00:00 committed by Tor Lillqvist
parent 1077a08e5d
commit 3fc307a069
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2006-10-01 Tor Lillqvist <tml@novell.com>
* gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
2006-09-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (update_combo_box): Protect

View File

@ -240,6 +240,7 @@ static GtkFileInfo *create_file_info (GtkFileFolderWin32 *folder_wi
const char *mime_type);
static gboolean execute_callbacks_idle (gpointer data);
static void execute_callbacks (gpointer data);
static gboolean fill_in_names (GtkFileFolderWin32 *folder_win32,
GError **error);
@ -460,7 +461,7 @@ gtk_file_system_win32_dispose (GObject *object)
system_win32->execute_callbacks_idle_id = 0;
/* call pending callbacks */
execute_callbacks_idle (system_win32);
execute_callbacks (system_win32);
}
G_OBJECT_CLASS (gtk_file_system_win32_parent_class)->dispose (object);
@ -808,15 +809,13 @@ struct callback_info
static gboolean
execute_callbacks_idle (gpointer data)
static void
execute_callbacks (gpointer data)
{
GSList *l;
gboolean unref_file_system = TRUE;
GtkFileSystemWin32 *system_win32 = GTK_FILE_SYSTEM_WIN32 (data);
GDK_THREADS_ENTER ();
if (!system_win32->execute_callbacks_idle_id)
unref_file_system = FALSE;
else
@ -855,6 +854,14 @@ execute_callbacks_idle (gpointer data)
g_object_unref (system_win32);
system_win32->execute_callbacks_idle_id = 0;
}
static gboolean
execute_callbacks_idle (gpointer data)
{
GDK_THREADS_ENTER ();
execute_callbacks(data);
GDK_THREADS_LEAVE ();