Gtk peer set for Java and iconify/deiconify
- From: Nicholas Allen - Sun Ireland - Software Engineer <nicholas allen ireland sun com>
- To: gtk-app-devel-list gnome org
- Subject: Gtk peer set for Java and iconify/deiconify
- Date: Mon, 10 Jun 2002 18:20:09 +0100
Hi,
We are working on a peer set for Gtk (1.2) for Java and are having
problems with iconification/deiconification. We sent an email earlier
regarding this and received some very helpful feedback (thanks!) but
there are still a few issues we haven't been able to resolve.
We have manged to iconify the window by using X call to XIconifyWindow
and this obviously works. We can work out when the window has been
deiconified or iconified by the user by listening in to the "map-event"
and "unmap-event" signals. When we get these we check if the map was
because we made the window visible or if the user deiconified it and
post events to the event queue accordingly.
The problem is that Java treats iconify and visible states as two
separate enteties (so there are 4 possible states for a window - visible
and deiconified, visible and iconified, invisible and iconified and
visible and iconified). This means that if we hide a window and then
iconify it and then make it visible it should be displayed as a visible
icon . Unfortuantely, calling gtk_widget_show() on a top level window
that has been hidden and iconified deiconifies it (but we want it to
appear as an icon).
Does anyone know how to achieve this?
Any help would be much appreciated.
Thanks in advance,
--
Nick Allen
Software Engineer
Sun Microsystems Ireland Ltd
Hamilton House
East Point Business Park
Dublin 3
email: nicholas allen ireland sun com
The views expressed in this email are not necessarily the views of Sun Microsystems or its staff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]