Commit 31ceaf77 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

input-sources: avoid unneeded status icon re-creation

When we get sources-changed signal current source returned by
gf_input_source_manager_get_current_source will be NULL and status
icon will be destroyed. After that we will get current-source-changed
signal and status icon will be re-created causing flickering effect.

Fix this by not connecting to sources-changed signal.

parent 3dd159c7
Pipeline #81282 passed with stage
in 10 minutes and 5 seconds
......@@ -872,13 +872,6 @@ update_status_icon (GfInputSources *sources)
g_free (icon_name);
static void
sources_changed_cb (GfInputSourceManager *manager,
GfInputSources *sources)
update_status_icon (sources);
static void
current_source_changed_cb (GfInputSourceManager *manager,
GfInputSource *old_source,
......@@ -954,9 +947,6 @@ gf_input_sources_init (GfInputSources *sources)
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
g_signal_connect (sources->input_source_manager, "sources-changed",
G_CALLBACK (sources_changed_cb), sources);
g_signal_connect (sources->input_source_manager, "current-source-changed",
G_CALLBACK (current_source_changed_cb), sources);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment