234 } |
234 } |
235 |
235 |
236 UIWIDGET ui_vbox_sp(UiObject *obj, int margin, int spacing) { |
236 UIWIDGET ui_vbox_sp(UiObject *obj, int margin, int spacing) { |
237 UiContainer *ct = uic_get_current_container(obj); |
237 UiContainer *ct = uic_get_current_container(obj); |
238 |
238 |
239 GtkWidget *vbox = ui_gtk_vbox_new(spacing); |
239 GtkWidget *vbox = ui_gtk_vbox_new(spacing); |
240 GtkWidget *widget = margin > 0 ? box_set_margin(vbox, margin) : vbox; |
240 GtkWidget *widget = margin > 0 ? box_set_margin(vbox, margin) : vbox; |
241 ct->add(ct, widget, TRUE); |
241 ct->add(ct, widget, TRUE); |
242 |
242 |
243 UiObject *newobj = uic_object_new(obj, vbox); |
243 UiObject *newobj = uic_object_new(obj, vbox); |
244 newobj->container = ui_box_container(obj, vbox); |
244 newobj->container = ui_box_container(obj, vbox); |