Re: How does GTK implement Iconify and Deiconify itself?
- From: Anders Melchiorsen <and kampsax dtu dk>
- To: gtk-list gnome org
- Subject: Re: How does GTK implement Iconify and Deiconify itself?
- Date: 08 Sep 2000 14:56:49 +0200
Guy Harris <gharris flashcom net> wrote:
> Win32 allows you to iconify a window by calling ShowWindow with
> SW_MINIMIZE as the "nCmdShow" argument, and X11 allows you to do it by
> using the message referred to above.
This is what I use,
void GladeWindow::Iconify() const
{
#ifdef USEXWINDOW
XIconifyWindow(GDK_WINDOW_XDISPLAY(GTK_WIDGET(window)->window),
GDK_WINDOW_XWINDOW(GTK_WIDGET(window)->window),
DefaultScreen (GDK_DISPLAY ()));
#else
cerr << "Auto-iconify not implemented without X Windows" << endl;
#endif
}
void GladeWindow::Uniconify() const
{
// This maps the window, which also de-iconifies it according
// to ICCCM.
gdk_window_raise(GTK_WIDGET(window)->window);
gdk_flush();
gdk_window_show(GTK_WIDGET(window)->window);
gdk_flush();
}
--
Regards, Anders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]