use gdk_threads_add_idle so that the handler acquires the lock since it

2008-09-08  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkfilechooserentry.c (install_start_autocompletion_idle):
	use gdk_threads_add_idle so that the handler acquires the lock
	since it calls gtk functions.


svn path=/trunk/; revision=21321
This commit is contained in:
Paolo Borelli 2008-09-08 14:29:26 +00:00 committed by Paolo Borelli
parent a306ab45c5
commit 5e667ea561
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-09-08 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkfilechooserentry.c (install_start_autocompletion_idle):
use gdk_threads_add_idle so that the handler acquires the lock
since it calls gtk functions.
2008-09-08 Tor Lillqvist <tml@novell.com>
* configure.in (debug_default): Correct help string for

View File

@ -1545,7 +1545,7 @@ install_start_autocompletion_idle (GtkFileChooserEntry *chooser_entry)
if (chooser_entry->start_autocompletion_idle_id != 0)
return;
chooser_entry->start_autocompletion_idle_id = g_idle_add (start_autocompletion_idle_handler, chooser_entry);
chooser_entry->start_autocompletion_idle_id = gdk_threads_add_idle (start_autocompletion_idle_handler, chooser_entry);
}
#ifdef G_OS_WIN32