parent
bc5be0a810
commit
94220456db
2
src/e.h
2
src/e.h
|
@ -647,7 +647,7 @@ void e_entry_set_focus(E_Entry *entry, int focused);
|
||||||
void e_entry_set_text(E_Entry *entry, const char *text);
|
void e_entry_set_text(E_Entry *entry, const char *text);
|
||||||
const char *e_entry_get_text(E_Entry *entry);
|
const char *e_entry_get_text(E_Entry *entry);
|
||||||
void e_entry_set_cursor(E_Entry *entry, int cursor_pos);
|
void e_entry_set_cursor(E_Entry *entry, int cursor_pos);
|
||||||
int e_entry_get_curosr(E_Entry *entry);
|
int e_entry_get_cursor(E_Entry *entry);
|
||||||
void e_entry_set_changed_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
void e_entry_set_changed_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
||||||
void e_entry_set_enter_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
void e_entry_set_enter_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
||||||
void e_entry_set_focus_in_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
void e_entry_set_focus_in_callback(E_Entry *entry, void (*func) (E_Entry *_entry, void *_data), void *data);
|
||||||
|
|
|
@ -701,7 +701,7 @@ e_entry_set_cursor(E_Entry *entry, int cursor_pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
e_entry_get_curosr(E_Entry *entry)
|
e_entry_get_cursor(E_Entry *entry)
|
||||||
{
|
{
|
||||||
return entry->cursor_pos;
|
return entry->cursor_pos;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,9 @@ E_Pack_Object_Class classes[PACK_MAX];
|
||||||
void
|
void
|
||||||
e_pack_object_init(void)
|
e_pack_object_init(void)
|
||||||
{
|
{
|
||||||
|
/* all nulls */
|
||||||
ZERO(classes, E_Pack_Object_Class, PACK_MAX);
|
ZERO(classes, E_Pack_Object_Class, PACK_MAX);
|
||||||
|
/* set up the entry widget class - we could pack them now */
|
||||||
classes[PACK_ENTRY] = (E_Pack_Object_Class)
|
classes[PACK_ENTRY] = (E_Pack_Object_Class)
|
||||||
{
|
{
|
||||||
e_entry_new,
|
e_entry_new,
|
||||||
|
@ -35,6 +37,6 @@ e_pack_object_new(int type)
|
||||||
ZERO(po, E_Pack_Object, 1);
|
ZERO(po, E_Pack_Object, 1);
|
||||||
po->type = type;
|
po->type = type;
|
||||||
po->class = classes[type];
|
po->class = classes[type];
|
||||||
po->data.object = po->class.new();
|
if (po->class.new) po->data.object = po->class.new();
|
||||||
return po;
|
return po;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue