diff options
Diffstat (limited to 'panels')
-rw-r--r-- | panels/common/cc-common-language.c | 2 | ||||
-rw-r--r-- | panels/common/cc-language-chooser.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/panels/common/cc-common-language.c b/panels/common/cc-common-language.c index 31e54d799..ae0b4fe6d 100644 --- a/panels/common/cc-common-language.c +++ b/panels/common/cc-common-language.c @@ -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 * diff --git a/panels/common/cc-language-chooser.c b/panels/common/cc-language-chooser.c index 78d0a7a85..e33f1184a 100644 --- a/panels/common/cc-language-chooser.c +++ b/panels/common/cc-language-chooser.c @@ -47,12 +47,10 @@ cc_language_chooser_get_language (GtkWidget *chooser) tv = (GtkTreeView *) g_object_get_data (G_OBJECT (chooser), "list"); selection = gtk_tree_view_get_selection (tv); - gdk_threads_enter (); if (gtk_tree_selection_get_selected (selection, &model, &iter)) gtk_tree_model_get (model, &iter, LOCALE_COL, &lang, -1); else lang = NULL; - gdk_threads_leave (); return lang; } @@ -248,9 +246,7 @@ filter_languages (GtkTreeModel *model, return TRUE; } - gdk_threads_enter (); gtk_tree_model_get (model, iter, DISPLAY_LOCALE_COL, &locale, -1); - gdk_threads_leave (); l = g_utf8_casefold (locale, -1); |