text: Start input method from configuration

Start the input method specified in the weston.ini configuration file.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
diff --git a/src/compositor.c b/src/compositor.c
index 265bd58..a965fc2 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2471,7 +2471,7 @@
 		      &seat->new_drag_icon_listener);
 
 	clipboard_create(seat);
-	input_method_create(ec, seat);
+	wl_signal_emit(&ec->seat_created_signal, seat);
 }
 
 WL_EXPORT void
@@ -2864,6 +2864,7 @@
 	wl_signal_init(&ec->unlock_signal);
 	wl_signal_init(&ec->show_input_panel_signal);
 	wl_signal_init(&ec->hide_input_panel_signal);
+	wl_signal_init(&ec->seat_created_signal);
 	ec->launcher_sock = weston_environment_get_fd("WESTON_LAUNCHER_SOCK");
 
 	ec->output_id_pool = 0;
@@ -2890,7 +2891,7 @@
 
 	screenshooter_create(ec);
 	text_cursor_position_notifier_create(ec);
-	text_model_factory_create(ec);
+	text_backend_init(ec);
 
 	wl_data_device_manager_init(ec->wl_display);