From c638c40a09ac0a3a343db27b218049fb859bdfea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 16 Jul 2019 09:45:41 +0200 Subject: [PATCH] ServerContextService: Drop everything depending on self->was_visible This was never used so everything depending on it was dead code. --- src/server-context-service.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/server-context-service.c b/src/server-context-service.c index cdf959c0..aa067682 100644 --- a/src/server-context-service.c +++ b/src/server-context-service.c @@ -42,8 +42,6 @@ typedef struct _ServerContextServiceClass ServerContextServiceClass; struct _ServerContextService { EekboardContextService parent; - gboolean was_visible; - GtkWidget *window; GtkWidget *widget; @@ -296,26 +294,6 @@ server_context_service_real_hide_keyboard (EekboardContextService *_context) hide_keyboard (_context); } -static void -server_context_service_real_enabled (EekboardContextService *_context) -{ - ServerContextService *context = SERVER_CONTEXT_SERVICE(_context); - - if (context->was_visible && context->window) - gtk_widget_show_all (context->window); -} - -static void -server_context_service_real_disabled (EekboardContextService *_context) -{ - ServerContextService *context = SERVER_CONTEXT_SERVICE(_context); - - if (context->window) { - context->was_visible = gtk_widget_get_visible (context->window); - gtk_widget_hide (context->window); - } -} - static void server_context_service_real_destroyed (EekboardContextService *_context) { @@ -370,8 +348,6 @@ server_context_service_class_init (ServerContextServiceClass *klass) context_class->show_keyboard = server_context_service_real_show_keyboard; context_class->hide_keyboard = server_context_service_real_hide_keyboard; - context_class->enabled = server_context_service_real_enabled; - context_class->disabled = server_context_service_real_disabled; context_class->destroyed = server_context_service_real_destroyed; gobject_class->set_property = server_context_service_set_property;