ui/gtk/toolkit.c

changeset 86
8e7c57c23133
parent 70
94144a948aff
equal deleted inserted replaced
85:44ebbb4c8a13 86:8e7c57c23133
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)

mercurial