Remove references to the removed theme classes

This commit is contained in:
David Boddie
2019-07-31 15:47:49 +00:00
parent c7d5e8d152
commit 87dd9b4374
3 changed files with 0 additions and 12 deletions

View File

@ -30,7 +30,6 @@
#include "eek-keysym.h"
#include "eek-text.h"
#include "eek-serializable.h"
#include "eek-theme.h"
void eek_init (void);

View File

@ -30,9 +30,6 @@ sources = [
'../eek/eek-symbol.c',
'../eek/eek-symbol-matrix.c',
'../eek/eek-text.c',
'../eek/eek-theme.c',
'../eek/eek-theme-context.c',
'../eek/eek-theme-node.c',
'../eek/eek-types.c',
'../eek/eek-xml-layout.c',
'../eek/layersurface.c',

View File

@ -229,24 +229,16 @@ static void
make_widget (ServerContextService *context)
{
EekKeyboard *keyboard;
EekTheme *theme;
if (context->widget) {
gtk_widget_destroy(context->widget);
context->widget = NULL;
}
theme = eek_theme_new ("resource:///sm/puri/squeekboard/style.css",
NULL,
NULL);
keyboard = eekboard_context_service_get_keyboard (EEKBOARD_CONTEXT_SERVICE(context));
context->widget = eek_gtk_keyboard_new (keyboard);
eek_gtk_keyboard_set_theme (EEK_GTK_KEYBOARD(context->widget), theme);
g_clear_object (&theme);
gtk_widget_set_has_tooltip (context->widget, TRUE);
gtk_container_add (GTK_CONTAINER(context->window), context->widget);
gtk_widget_show (context->widget);