ui/gtk/text.h

branch
newapi
changeset 310
4918f9132552
parent 282
3a77b9048664
equal deleted inserted replaced
309:02c95df91de1 310:4918f9132552
73 } UiTextField; 73 } UiTextField;
74 74
75 typedef struct UiPathTextField { 75 typedef struct UiPathTextField {
76 UiObject *obj; 76 UiObject *obj;
77 77
78 GtkWidget *stack;
78 GtkWidget *hbox; 79 GtkWidget *hbox;
80 GtkWidget *entry_box;
79 GtkWidget *entry; 81 GtkWidget *entry;
82 #if GTK_MAJOR_VERSION == 3
80 GtkWidget *buttonbox; 83 GtkWidget *buttonbox;
84 #endif
81 85
82 char *current_path; 86 char *current_path;
83 UiPathElm *current_pathelms; 87 UiPathElm *current_pathelms;
84 size_t current_nelm; 88 size_t current_nelm;
85 89
134 138
135 char* ui_textfield_get(UiString *str); 139 char* ui_textfield_get(UiString *str);
136 void ui_textfield_set(UiString *str, const char *value); 140 void ui_textfield_set(UiString *str, const char *value);
137 141
138 int ui_pathtextfield_update(UiPathTextField* pathtf, const char *full_path); 142 int ui_pathtextfield_update(UiPathTextField* pathtf, const char *full_path);
143 int ui_pathtextfield_update_widget(UiPathTextField* pathtf);
139 char* ui_path_textfield_get(UiString *str); 144 char* ui_path_textfield_get(UiString *str);
140 void ui_path_textfield_set(UiString *str, const char *value); 145 void ui_path_textfield_set(UiString *str, const char *value);
141 146
142 #ifdef __cplusplus 147 #ifdef __cplusplus
143 } 148 }

mercurial