oops typo :)

SVN revision: 4362
This commit is contained in:
Carsten Haitzler 2001-03-09 19:20:11 +00:00
parent bc5be0a810
commit 94220456db
3 changed files with 5 additions and 3 deletions

View File

@ -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);
const char *e_entry_get_text(E_Entry *entry);
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_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);

View File

@ -701,7 +701,7 @@ e_entry_set_cursor(E_Entry *entry, int cursor_pos)
}
int
e_entry_get_curosr(E_Entry *entry)
e_entry_get_cursor(E_Entry *entry)
{
return entry->cursor_pos;
}

View File

@ -5,7 +5,9 @@ E_Pack_Object_Class classes[PACK_MAX];
void
e_pack_object_init(void)
{
/* all nulls */
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)
{
e_entry_new,
@ -35,6 +37,6 @@ e_pack_object_new(int type)
ZERO(po, E_Pack_Object, 1);
po->type = type;
po->class = classes[type];
po->data.object = po->class.new();
if (po->class.new) po->data.object = po->class.new();
return po;
}