{
return base->set_value(base, section, name, value);
}
-
static void *
_config_section_get_value(struct _config_section *base, const char *section, const char *name)
{
if (!(ef = eet_open(path, mode)))
{
- printf("Error opening eet file '%s' for %s\n", path, mode == EET_FILE_MODE_READ ? "read" : "write");
+ fprintf(stderr,"Error opening eet file '%s' for %s\n", path, mode == EET_FILE_MODE_READ ? "read" : "write");
wkb_ibus_config_eet_free(eet);
return NULL;
}
wkb_ibus_config_eet_set_defaults(eet);
if (!eet_data_write(ef, eet->ibus_edd, "ibus", eet->ibus_config, EINA_TRUE))
{
- printf("Error creating eet file '%s'\n", path);
+ fprintf(stderr,"Error creating eet file '%s'\n", path);
wkb_ibus_config_eet_free(eet);
eet = NULL;
}
if (_wkb_ignore_key(wkb, key))
{
- printf("Ignoring key '%s'\n", key);
+ fprintf(stderr,"Ignoring key '%s'\n", key);
goto end;
}
else if (strcmp(key, "backspace") == 0)
key = " ";
}
- printf("KEY = '%s'\n", key);
+ fprintf(stderr,"KEY = '%s'\n", key);
_wkb_update_preedit_str(wkb, key);
{
struct weekeyboard *wkb = data;
- printf("%s()\n", __FUNCTION__);
+ fprintf(stderr,"%s()\n", __FUNCTION__);
free(wkb->surrounding_text);
wkb->surrounding_text = strdup(text);
wkb->surrounding_cursor = cursor;
{
struct weekeyboard *wkb = data;
- printf("%s()\n", __FUNCTION__);
+ fprintf(stderr,"%s()\n", __FUNCTION__);
if (strlen(wkb->preedit_str))
{
{
struct weekeyboard *wkb = data;
- printf("%s(): im_context = %p hint = %d purpose = %d\n", __FUNCTION__, im_ctx, hint, purpose);
+ fprintf(stderr,"%s(): im_context = %p hint = %d purpose = %d\n", __FUNCTION__, im_ctx, hint, purpose);
if (!wkb->context_changed)
return;
{
struct weekeyboard *wkb = data;
- printf("%s()\n", __FUNCTION__);
+ fprintf(stderr,"%s()\n", __FUNCTION__);
if (button != BTN_LEFT)
return;
{
struct weekeyboard *wkb = data;
- printf("%s()\n", __FUNCTION__);
+ fprintf(stderr,"%s()\n", __FUNCTION__);
if (wkb->surrounding_text)
fprintf(stderr, "Surrounding text updated: %s\n", wkb->surrounding_text);
if (language)
{
wkb->language = strdup(language);
- printf("Language changed, new: '%s\n", language);
+ fprintf(stderr,"Language changed, new: '%s\n", language);
}
}
w = 600;
sprintf(path, PKGDATADIR"/default_%d.edj", w);
- printf("Loading edje file: '%s'\n", path);
+ fprintf(stderr,"Loading edje file: '%s'\n", path);
if (!edje_object_file_set(wkb->edje_obj, path, "main"))
{
ignore_keys = edje_file_data_get(path, "ignore-keys");
if (!ignore_keys)
{
- printf("Special keys file not found in '%s'\n", path);
+ fprintf(stderr,"Special keys file not found in '%s'\n", path);
goto end;
}
- printf("Got ignore keys = %s\n", ignore_keys);
+ fprintf(stderr,"Got ignore keys = %s\n", ignore_keys);
wkb->ignore_keys = eina_str_split(ignore_keys, "\n", 0);
free(ignore_keys);
env = "wayland_egl";
else
{
- printf("ERROR: Ecore_Evas does must be compiled with support for Wayland engines\n");
+ fprintf(stderr,"ERROR: Ecore_Evas does must be compiled with support for Wayland engines\n");
goto err;
}
}
else if (strcmp(env, "wayland_shm") != 0 && strcmp(env, "wayland_egl") != 0)
{
- printf("ERROR: ECORE_EVAS_ENGINE must be set to either 'wayland_shm' or 'wayland_egl'\n");
+ fprintf(stderr,"ERROR: ECORE_EVAS_ENGINE must be set to either 'wayland_shm' or 'wayland_egl'\n");
goto err;
}
if (!_wkb_check_evas_engine(&wkb))
goto edj_err;
- printf("SELECTED ENGINE = %s\n", wkb.ee_engine);
+ fprintf(stderr,"SELECTED ENGINE = %s\n", wkb.ee_engine);
wkb.ee = ecore_evas_new(wkb.ee_engine, 0, 0, 1, 1, "frame=0");
if (!wkb.ee)
{
- printf("ERROR: Unable to create Ecore_Evas object\n");
+ fprintf(stderr,"ERROR: Unable to create Ecore_Evas object\n");
goto edj_err;
}