diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-08-15 16:04:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-08-15 16:04:09 -0400 |
commit | 568def7a869d204e4e0781dca0700a099f486d03 (patch) | |
tree | 88922646a3f19cd3e3039f6e82b84b8707af9b87 /gtk/gtksearchenginemodel.c | |
parent | 73f1d62b6898e86aa24047e541c4def0243dcd64 (diff) | |
download | gtk+-568def7a869d204e4e0781dca0700a099f486d03.tar.gz |
searc engine model: Set name on idle
Use gdk_threads_add_idle, and set a name on the source to aid
debugging, as we do everywhere else.
Diffstat (limited to 'gtk/gtksearchenginemodel.c')
-rw-r--r-- | gtk/gtksearchenginemodel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtksearchenginemodel.c b/gtk/gtksearchenginemodel.c index f245e1aa21..dae99f2ba3 100644 --- a/gtk/gtksearchenginemodel.c +++ b/gtk/gtksearchenginemodel.c @@ -128,7 +128,8 @@ gtk_search_engine_model_start (GtkSearchEngine *engine) if (model->query == NULL) return; - model->idle = g_idle_add (do_search, engine); + model->idle = gdk_threads_add_idle (do_search, engine); + g_source_set_name_by_id (model->idle, "[gtk+] gtk_search_engine_model_start"); } static void |