| 1138 return splitpane_create(obj, UI_VERTICAL, args); |
1138 return splitpane_create(obj, UI_VERTICAL, args); |
| 1139 } |
1139 } |
| 1140 |
1140 |
| 1141 UiSplitPane* ui_create_splitpane_data(GtkWidget *pane, UiOrientation orientation, int max, int init) { |
1141 UiSplitPane* ui_create_splitpane_data(GtkWidget *pane, UiOrientation orientation, int max, int init) { |
| 1142 UiSplitPane *ct = malloc(sizeof(UiSplitPane)); |
1142 UiSplitPane *ct = malloc(sizeof(UiSplitPane)); |
| |
1143 memset(ct, 0, sizeof(UiSplitPane)); |
| 1143 ct->current_pane = pane; |
1144 ct->current_pane = pane; |
| 1144 ct->orientation = orientation; |
1145 ct->orientation = orientation; |
| 1145 ct->max = max; |
1146 ct->max = max; |
| 1146 ct->initial_position = init; |
1147 ct->initial_position = init; |
| 1147 ct->children = cxArrayListCreateSimple(CX_STORE_POINTERS, 4); |
1148 ct->children = cxArrayListCreateSimple(CX_STORE_POINTERS, 4); |