| 38 extern "C" { |
38 extern "C" { |
| 39 #endif |
39 #endif |
| 40 |
40 |
| 41 typedef struct UiColData UiColData; |
41 typedef struct UiColData UiColData; |
| 42 |
42 |
| |
43 #if GTK_CHECK_VERSION(4, 10, 0) |
| |
44 typedef struct UiRowItems { |
| |
45 int bound; |
| |
46 GtkListItem *items[]; |
| |
47 } UiRowItems; |
| |
48 #endif |
| |
49 |
| 43 typedef struct UiListView { |
50 typedef struct UiListView { |
| 44 UiObject *obj; |
51 UiObject *obj; |
| 45 GtkWidget *widget; |
52 GtkWidget *widget; |
| 46 UiVar *var; |
53 UiVar *var; |
| 47 UiModel *model; |
54 UiModel *model; |
| 48 ui_getvaluefunc2 getvalue; |
55 ui_getvaluefunc2 getvalue; |
| 49 void *getvaluedata; |
56 void *getvaluedata; |
| |
57 ui_getstylefunc getstyle; |
| |
58 void *getstyledata; |
| 50 char **elements; |
59 char **elements; |
| 51 size_t nelm; |
60 size_t nelm; |
| 52 #if GTK_CHECK_VERSION(4, 10, 0) |
61 int current_row; |
| |
62 UiTextStyle row_style; |
| |
63 UiBool apply_row_style; |
| |
64 #if GTK_CHECK_VERSION(4, 10, 0) |
| |
65 CxMap *bound_rows; |
| 53 GListStore *liststore; |
66 GListStore *liststore; |
| 54 GtkSelectionModel *selectionmodel; |
67 GtkSelectionModel *selectionmodel; |
| 55 UiColData *columns; |
68 UiColData *columns; |
| |
69 int numcolumns; |
| |
70 PangoAttrList *current_row_attributes; |
| |
71 #else |
| |
72 int style_offset; |
| 56 #endif |
73 #endif |
| 57 ui_callback onactivate; |
74 ui_callback onactivate; |
| 58 void *onactivatedata; |
75 void *onactivatedata; |
| 59 ui_callback onselection; |
76 ui_callback onselection; |
| 60 void *onselectiondata; |
77 void *onselectiondata; |