mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-10 18:31:11 +00:00
Use gtk_window_deiconify for Sys_Restore
This commit is contained in:
parent
ef888dede5
commit
8df88a23d1
1 changed files with 1 additions and 20 deletions
|
@ -3095,26 +3095,7 @@ static void Sys_Restore( GtkWidget *w ){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
gtk_window_deiconify( GTK_WINDOW( w ) );
|
||||||
Sys_FPrintf( SYS_WRN, "FIXME: Sys_Restore\n" );
|
|
||||||
#if 0
|
|
||||||
XWindowAttributes xattr;
|
|
||||||
GdkWindowPrivate *Private;
|
|
||||||
|
|
||||||
Private = (GdkWindowPrivate*)gtk_widget_get_window( w );
|
|
||||||
|
|
||||||
xattr.map_state = IsUnmapped;
|
|
||||||
XGetWindowAttributes( Private->xdisplay, Private->xwindow, &xattr );
|
|
||||||
|
|
||||||
if ( xattr.map_state == IsUnmapped ) {
|
|
||||||
XMapRaised( Private->xdisplay, Private->xwindow );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
ShowWindow( (HWND)GDK_WINDOW_HWND( gtk_widget_get_window( w ) ), SW_RESTORE );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|
Loading…
Reference in a new issue