ui/gtk/text.h

changeset 44
473954dc6b74
parent 32
e5f4d8af567e
equal deleted inserted replaced
43:ef01d2c90128 44:473954dc6b74
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