44 static int window_default_width = 650; |
44 static int window_default_width = 650; |
45 static int window_default_height = 550; |
45 static int window_default_height = 550; |
46 |
46 |
47 void ui_exit_event(GtkWidget *widget, gpointer data) { |
47 void ui_exit_event(GtkWidget *widget, gpointer data) { |
48 if(wclose_fnc) { |
48 if(wclose_fnc) { |
|
49 // TODO: use UiEvent |
49 wclose_fnc(data, wclose_udata); |
50 wclose_fnc(data, wclose_udata); |
50 } |
51 } |
51 nwindows--; |
52 nwindows--; |
52 if(nwindows == 0) { |
53 if(nwindows == 0) { |
53 gtk_main_quit(); |
54 gtk_main_quit(); |