48 if(ct->close) { |
48 if(ct->close) { |
49 ui_end(obj); |
49 ui_end(obj); |
50 return 0; |
50 return 0; |
51 } |
51 } |
52 return 1; |
52 return 1; |
|
53 } |
|
54 |
|
55 UIEXPORT UIWIDGET ui_customwidget_create(UiObject *obj, ui_createwidget_func create_widget, void *userdata, UiWidgetArgs args) { |
|
56 UiObject* current = uic_current_obj(obj); |
|
57 |
|
58 UIWIDGET widget = create_widget(obj, args, userdata); |
|
59 |
|
60 UI_APPLY_LAYOUT1(current, args); |
|
61 current->container->add(current->container, widget, FALSE); |
|
62 |
|
63 return widget; |
53 } |
64 } |
54 |
65 |
55 GtkWidget* ui_gtk_vbox_new(int spacing) { |
66 GtkWidget* ui_gtk_vbox_new(int spacing) { |
56 #if GTK_MAJOR_VERSION >= 3 |
67 #if GTK_MAJOR_VERSION >= 3 |
57 return gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing); |
68 return gtk_box_new(GTK_ORIENTATION_VERTICAL, spacing); |