909 newobj->container = ui_box_container(obj, box, UI_CONTAINER_VBOX); |
909 newobj->container = ui_box_container(obj, box, UI_CONTAINER_VBOX); |
910 uic_obj_add(obj, newobj); |
910 uic_obj_add(obj, newobj); |
911 |
911 |
912 return box; |
912 return box; |
913 } |
913 } |
|
914 #else |
|
915 UIWIDGET ui_sidebar_create(UiObject *obj, UiSidebarArgs args) { |
|
916 GtkWidget *sidebar_vbox = g_object_get_data(G_OBJECT(obj->widget), "ui_sidebar"); |
|
917 |
|
918 GtkWidget *box = ui_gtk_vbox_new(args.spacing); |
|
919 ui_box_set_margin(box, args.margin); |
|
920 BOX_ADD_EXPAND(sidebar_vbox, box); |
|
921 |
|
922 UiObject *newobj = uic_object_new(obj, box); |
|
923 newobj->container = ui_box_container(obj, box, UI_CONTAINER_VBOX); |
|
924 uic_obj_add(obj, newobj); |
|
925 |
|
926 return box; |
|
927 } |
914 #endif |
928 #endif |
915 |
929 |
916 /* -------------------- Splitpane -------------------- */ |
930 /* -------------------- Splitpane -------------------- */ |
917 |
931 |
918 static GtkWidget* create_paned(UiOrientation orientation) { |
932 static GtkWidget* create_paned(UiOrientation orientation) { |