/*
- * Copyright © 2012 Openismus GmbH
+ * Copyright © 2012 Intel Corporation
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
}
static void
+text_model_delete_surrounding_text(void *data,
+ struct text_model *text_model,
+ int32_t index,
+ uint32_t length)
+{
+}
+
+static void
text_model_preedit_styling(void *data,
struct text_model *text_model)
{
static void
text_model_key(void *data,
- struct text_model *text_model)
+ struct text_model *text_model,
+ uint32_t key,
+ uint32_t state)
{
}
-
+
static void
text_model_selection_replacement(void *data,
struct text_model *text_model)
static const struct text_model_listener text_model_listener = {
text_model_commit_string,
text_model_preedit_string,
+ text_model_delete_surrounding_text,
text_model_preedit_styling,
text_model_key,
text_model_selection_replacement,
char buf[64];
int len;
- display->text_model = text_model_factory_create_text_model(display->factory, display->surface);
+ display->text_model = text_model_factory_create_text_model(display->factory);
text_model_add_listener(display->text_model, &text_model_listener, display);
wl_display_flush(display->display);