ui/gtk/text.h

changeset 100
d2bd73d28ff1
parent 78
ad7ced6cf00b
equal deleted inserted replaced
99:b9767cb5b06b 100:d2bd73d28ff1
72 typedef struct UiTextField { 72 typedef struct UiTextField {
73 UiObject *obj; 73 UiObject *obj;
74 UiVar *var; 74 UiVar *var;
75 ui_callback onchange; 75 ui_callback onchange;
76 void *onchangedata; 76 void *onchangedata;
77 ui_callback onactivate;
78 void *onactivatedata;
77 } UiTextField; 79 } UiTextField;
78 80
79 typedef struct UiPathTextField { 81 typedef struct UiPathTextField {
80 UiObject *obj; 82 UiObject *obj;
81 83
138 void ui_free_textbuf_op(UiTextBufOp *op); 140 void ui_free_textbuf_op(UiTextBufOp *op);
139 int ui_check_insertstr(char *oldstr, int oldlen, char *newstr, int newlen); 141 int ui_check_insertstr(char *oldstr, int oldlen, char *newstr, int newlen);
140 142
141 void ui_textfield_destroy(GtkWidget *object, UiTextField *textfield); 143 void ui_textfield_destroy(GtkWidget *object, UiTextField *textfield);
142 void ui_textfield_changed(GtkEditable *editable, UiTextField *textfield); 144 void ui_textfield_changed(GtkEditable *editable, UiTextField *textfield);
145 void ui_textfield_activate(GtkEntry* self, UiTextField *textfield);
143 146
144 char* ui_textfield_get(UiString *str); 147 char* ui_textfield_get(UiString *str);
145 void ui_textfield_set(UiString *str, const char *value); 148 void ui_textfield_set(UiString *str, const char *value);
146 149
147 int ui_pathtextfield_update(UiPathTextField* pathtf, const char *full_path); 150 int ui_pathtextfield_update(UiPathTextField* pathtf, const char *full_path);

mercurial