161 #if GTK_MAJOR_VERSION >= 4 |
161 #if GTK_MAJOR_VERSION >= 4 |
162 gtk_window_present(GTK_WINDOW(obj->widget)); |
162 gtk_window_present(GTK_WINDOW(obj->widget)); |
163 #elif GTK_MAJOR_VERSION <= 3 |
163 #elif GTK_MAJOR_VERSION <= 3 |
164 gtk_widget_show_all(obj->widget); |
164 gtk_widget_show_all(obj->widget); |
165 #endif |
165 #endif |
|
166 obj->ref++; |
166 } |
167 } |
167 |
168 |
168 void ui_close(UiObject *obj) { |
169 void ui_close(UiObject *obj) { |
169 uic_context_prepare_close(obj->ctx); |
170 uic_context_prepare_close(obj->ctx); |
170 #if GTK_CHECK_VERSION(4, 0, 0) |
171 #if GTK_CHECK_VERSION(4, 0, 0) |