| 137 GtkListBoxRow *first_row; |
142 GtkListBoxRow *first_row; |
| 138 UiBool header_is_item; |
143 UiBool header_is_item; |
| 139 UiSubListEventData current_eventdata; |
144 UiSubListEventData current_eventdata; |
| 140 }; |
145 }; |
| 141 |
146 |
| |
147 void* ui_null_getvalue(UiList *list, void *elm, int row, int col, void *userdata, UiBool *freeResult); |
| 142 |
148 |
| 143 #if GTK_CHECK_VERSION(4, 10, 0) |
149 #if GTK_CHECK_VERSION(4, 10, 0) |
| 144 |
150 |
| 145 void ui_update_liststore(GListStore *liststore, UiList *list); |
151 void ui_update_liststore(GListStore *liststore, UiList *list); |
| 146 void ui_update_liststore_static(GListStore *liststore, char **elm, size_t nelm); |
152 void ui_update_liststore_static(GListStore *liststore, char **elm, size_t nelm); |
| 158 |
164 |
| 159 #endif |
165 #endif |
| 160 |
166 |
| 161 void* ui_strmodel_getvalue(void *elm, int column); |
167 void* ui_strmodel_getvalue(void *elm, int column); |
| 162 |
168 |
| 163 UIWIDGET ui_listview_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata); |
|
| 164 UIWIDGET ui_table_var(UiObject *obj, UiVar *var, UiModel *model, UiListCallbacks cb); |
|
| 165 |
|
| 166 GtkWidget* ui_get_tree_widget(UIWIDGET widget); |
|
| 167 |
169 |
| 168 void ui_listview_update_model(UiModel *model, void *userdata, int insert_index, int delete_index); |
170 void ui_listview_update_model(UiModel *model, void *userdata, int insert_index, int delete_index); |
| 169 void ui_listview_update(UiList *list, int i); |
171 void ui_listview_update(UiList *list, int i); |
| 170 UiListSelection ui_listview_getselection(UiList *list); |
172 UiListSelection ui_listview_getselection(UiList *list); |
| 171 void ui_listview_setselection(UiList *list, UiListSelection selection); |
173 void ui_listview_setselection(UiList *list, UiListSelection selection); |
| 209 void ui_listbox_list_update(UiList *list, int i); |
211 void ui_listbox_list_update(UiList *list, int i); |
| 210 void ui_listbox_list_setselection(UiList *list, UiListSelection sel); |
212 void ui_listbox_list_setselection(UiList *list, UiListSelection sel); |
| 211 UiListSelection ui_listbox_list_getselection(UiList *list); |
213 UiListSelection ui_listbox_list_getselection(UiList *list); |
| 212 |
214 |
| 213 void ui_listbox_row_activate(GtkListBox *self, GtkListBoxRow *row, gpointer user_data); |
215 void ui_listbox_row_activate(GtkListBox *self, GtkListBoxRow *row, gpointer user_data); |
| |
216 |
| |
217 #if GTK_CHECK_VERSION(4, 10, 0) |
| |
218 |
| |
219 typedef struct _ObjWrapper { |
| |
220 GObject parent_instance; |
| |
221 void *data; |
| |
222 int i; |
| |
223 } ObjWrapper; |
| |
224 |
| |
225 ObjWrapper* ui_gobj_wrapper_new(void* data, int i); |
| |
226 |
| |
227 #endif |
| 214 |
228 |
| 215 #ifdef __cplusplus |
229 #ifdef __cplusplus |
| 216 } |
230 } |
| 217 #endif |
231 #endif |
| 218 |
232 |