Exemplo n.º 1
0
PyObject *
Evas_Textblock_Cursor_PyObject__line_set(Evas_Textblock_Cursor_PyObject *self, PyObject * args)
{
    int line, ret;
    if (!PyArg_ParseTuple(args, "i", &line))
        return NULL;

    BENCH_START
    ret = evas_textblock_cursor_line_set(self->cursor, line);
    BENCH_END
    return PyBool_FromLong(ret);
}
static void
_goto_do(Evas_Object *entry, const char *text)
{
   int line;
   Evas_Object *tb = elm_entry_textblock_get(entry);
   Evas_Textblock_Cursor *mcur = evas_object_textblock_cursor_get(tb);

   line = atoi(text);

   if (line > 0)
     {
        evas_object_hide(goto_win);
	evas_textblock_cursor_line_set(mcur, line-1);
	elm_entry_calc_force(entry);

	elm_object_focus_set(entry, EINA_TRUE);
     }
}