Commit 4e1068f1 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

input-sources: connect only once to engine-set signal

parent 671dfc47
......@@ -505,9 +505,6 @@ activate_cb (GfInputSource *source,
else
engine = "xkb:us::eng";
g_signal_connect (manager->ibus_manager, "engine-set",
G_CALLBACK (engine_set_cb), manager);
gf_ibus_manager_set_engine (manager->ibus_manager, engine);
current_input_source_changed (manager, source);
}
......@@ -894,6 +891,9 @@ gf_input_source_manager_constructed (GObject *object)
G_CALLBACK (property_updated_cb), manager);
g_signal_connect (manager->ibus_manager, "set-content-type",
G_CALLBACK (set_content_type_cb), manager);
g_signal_connect (manager->ibus_manager, "engine-set",
G_CALLBACK (engine_set_cb), manager);
}
static void
......
Supports Markdown
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