From 95ef52fe4225ac407c61f7be932dea86f44d4575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 16 Jul 2019 09:49:44 +0200 Subject: [PATCH] ServerContextService: Remove more unused code The whole visible/enable logic was disfunctional all the time. What works is show_keyboard and hide_keyboard. --- src/server-context-service.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/server-context-service.c b/src/server-context-service.c index aa067682..dd986da6 100644 --- a/src/server-context-service.c +++ b/src/server-context-service.c @@ -99,24 +99,6 @@ on_notify_keyboard (GObject *object, // but simpler than adding a check in the window showing procedure eekboard_context_service_set_keymap(EEKBOARD_CONTEXT_SERVICE(context), keyboard); - - if (context->window) { - if (keyboard == NULL) { - gtk_widget_hide (context->window); - g_clear_pointer (&context->widget, gtk_widget_destroy); - } else { - gboolean was_visible = gtk_widget_get_visible (context->window); - /* avoid to send KeyboardVisibilityChanged */ - g_signal_handler_block (context->window, - context->notify_visible_handler); - update_widget (context); - if (was_visible) { - gtk_widget_show_all (context->window); - } - g_signal_handler_unblock (context->window, - context->notify_visible_handler); - } - } } static void