common: remove the use of the GDK thread functions

Remove the use of gdk_threads_enter and gdk_threads_leave functions, as
they have been deprecated, and also replace gdk_threads_add_idle with
g_idle_add.

https://bugzilla.gnome.org/show_bug.cgi?id=688231
This commit is contained in:
Thomas Wood 2012-11-13 13:49:08 +00:00
parent 288c3f8309
commit 7dab589e9e
2 changed files with 1 additions and 5 deletions

View file

@ -308,7 +308,7 @@ cc_common_language_add_available_languages (GtkListStore *store,
data->regions = regions;
data->position = 0;
return gdk_threads_add_idle (add_one_language, data);
return g_idle_add (add_one_language, data);
}
gchar *