ui/gtk/container.c

changeset 116
480354705c2f
parent 111
40dbf1a7526a
child 120
49bc645df8b7
equal deleted inserted replaced
115:102fc0b8fe3e 116:480354705c2f
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);

mercurial