ui/gtk/toolkit.c

branch
newapi
changeset 384
8be7fd628fbc
parent 367
1c3af8e31d8e
equal deleted inserted replaced
383:03599608d555 384:8be7fd628fbc
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