1066 } |
1066 } |
1067 |
1067 |
1068 cxListAdd(s->children, widget); |
1068 cxListAdd(s->children, widget); |
1069 |
1069 |
1070 if(s->pos == 0) { |
1070 if(s->pos == 0) { |
1071 gtk_paned_set_start_child(GTK_PANED(s->current_pane), widget); |
1071 PANED_SET_CHILD1(s->current_pane, widget); |
1072 s->pos++; |
1072 s->pos++; |
1073 s->nchildren++; |
1073 s->nchildren++; |
1074 } else { |
1074 } else { |
1075 if(s->nchildren+1 == s->max) { |
1075 if(s->nchildren+1 == s->max) { |
1076 gtk_paned_set_end_child(GTK_PANED(s->current_pane), widget); |
1076 PANED_SET_CHILD2(s->current_pane, widget); |
1077 } else { |
1077 } else { |
1078 GtkWidget *pane = create_paned(s->orientation); |
1078 GtkWidget *pane = create_paned(s->orientation); |
1079 gtk_paned_set_start_child(GTK_PANED(pane), widget); |
1079 PANED_SET_CHILD1(pane, widget); |
1080 gtk_paned_set_end_child(GTK_PANED(s->current_pane), pane); |
1080 PANED_SET_CHILD2(s->current_pane, pane); |
1081 s->current_pane = pane; |
1081 s->current_pane = pane; |
1082 } |
1082 } |
1083 |
1083 |
1084 s->pos = 0; |
1084 s->pos = 0; |
1085 s->nchildren++; |
1085 s->nchildren++; |