mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #497 from Pan7/deiconify
Use gtk_window_deiconify for Sys_Restore
This commit is contained in:
commit
c521b127b7
1 changed files with 1 additions and 23 deletions
|
@ -27,9 +27,6 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#ifdef _WIN32
|
||||
extern "C" {
|
||||
#include <gdk/gdkwin32.h>
|
||||
}
|
||||
#endif
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
@ -3095,26 +3092,7 @@ static void Sys_Restore( GtkWidget *w ){
|
|||
return;
|
||||
}
|
||||
|
||||
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
||||
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
|
||||
gtk_window_deiconify( GTK_WINDOW( w ) );
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
|
Loading…
Reference in a new issue