ui/gtk/container.c

changeset 941
e7459e9fbed2
parent 865
9cf0c29dde27
child 987
77c5e7cadf96
equal deleted inserted replaced
940:105bccb3dc66 941:e7459e9fbed2
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);

mercurial