Mercurial > dwindows
comparison gtk/dw.c @ 1388:8fe15c1648c9
Fix windows on GTK that aren't supposed to have a close button..
having one. Function added in 2.10 can try to remove it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 26 Nov 2011 20:20:41 +0000 |
parents | fd1de4e9e542 |
children | 0512fbb08abf |
comparison
equal
deleted
inserted
replaced
1387:db27c6e139a3 | 1388:8fe15c1648c9 |
---|---|
3436 flags &= ~DW_FCF_MINIMIZE; | 3436 flags &= ~DW_FCF_MINIMIZE; |
3437 #if GTK_MAJOR_VERSION > 1 | 3437 #if GTK_MAJOR_VERSION > 1 |
3438 gtk_window_iconify(GTK_WINDOW(tmp)); | 3438 gtk_window_iconify(GTK_WINDOW(tmp)); |
3439 #endif | 3439 #endif |
3440 } | 3440 } |
3441 #if GTK_CHECK_VERSION(2,10,0) | |
3442 /* Either the CLOSEBUTTON or SYSMENU flags should make it deletable */ | |
3443 if(!(flStyle & (DW_FCF_CLOSEBUTTON | DW_FCF_SYSMENU))) | |
3444 gtk_window_set_deletable(GTK_WINDOW(tmp), FALSE); | |
3445 #endif | |
3441 | 3446 |
3442 gdk_window_set_decorations(tmp->window, flags); | 3447 gdk_window_set_decorations(tmp->window, flags); |
3443 | 3448 |
3444 if(hwndOwner) | 3449 if(hwndOwner) |
3445 gdk_window_reparent(GTK_WIDGET(tmp)->window, GTK_WIDGET(hwndOwner)->window, 0, 0); | 3450 gdk_window_reparent(GTK_WIDGET(tmp)->window, GTK_WIDGET(hwndOwner)->window, 0, 0); |