RE: how open a window close by the window manager



There are two events, on_map_event and on_unmap_event.  If you hook the
signals up for them based on the widget for the window, you should received
unmap when minimised and map when restored.

Regarding your other query, have you considered using
gtk_widget_hide_on_delete()?? And then showing the window when u need to?

Regards

Martyn

-----Original Message-----
From: WEBER Luc [mailto:Luc Weber obs unige ch] 
Sent: 29 January 2002 15:24
To: gtk-app-devel-list gnome org
Subject: how open a window close by the window manager

Hi,

the sequence:

                        gtk_widget_hide(widget);
                        ...
                        gtk_widget_show(widget);

open and close a window, but if the window is closed manually ("Open" button
or
"close" function menu) with the window manager, gtk_widget_show() do
nothing.

Also theses flags remain "on":

        GTK_WIDGET_REALIZED     1
        GTK_WIDGET_MAPPED       1
        GTK_WIDGET_DRAWABLE     1
        GTK_WIDGET_IS_SENSITIVE 1
        GTK_WIDGET_CAN_FOCUS    1
        GTK_WIDGET_VISIBLE      1

  How to detect the iconic state? 
And 
  how to open a window closed by a window manager?

My window manager is DTWM working under Sun-Solaris.

Many thanks

Luc Weber
Geneva Observatory
Switzerland


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]