Re: gtk: hide window when minimized

2007-05-16 Thread Hans Petter Jansson
On Tue, 2007-05-15 at 12:55 +0100, Emmanuele Bassi wrote:
 On Tue, 2007-05-15 at 13:51 +0200, bronson wrote:

  could anyone tell me how can I hide window, when user minimizes it?
  I tried to handle signal 'window-state-event', but when in that method i 
  hide window,
  strange things happen - window hides, and then shows up again and it 
  never ends.

 why would you want to hide a minimised window, which should already be
 hidden by your window manager?
 
 and, most of all, you should really ask on gtk-app-devel-list - this
 list is for developing gtk+, non *with* gtk+.

Sounds like he wants a minimize-to-tray behaviour, which is common on
Windows.

-- 
Hans Petter

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


Re: gtk: hide window when minimized

2007-05-16 Thread Hans Petter Jansson
On Tue, 2007-05-15 at 12:55 +0100, Emmanuele Bassi wrote:
 On Tue, 2007-05-15 at 13:51 +0200, bronson wrote:

  could anyone tell me how can I hide window, when user minimizes it?
  I tried to handle signal 'window-state-event', but when in that method i 
  hide window,
  strange things happen - window hides, and then shows up again and it 
  never ends.

 why would you want to hide a minimised window, which should already be
 hidden by your window manager?
 
 and, most of all, you should really ask on gtk-app-devel-list - this
 list is for developing gtk+, non *with* gtk+.

Sounds like he wants a minimize-to-tray behaviour, which is common on
Windows.

-- 
Hans Petter

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


GTK+ - hide window when minimized

2007-05-15 Thread Przemek
Hello,

i'd like to hide my top level window, when user minimizes it. I mean, i 
don't want the window to be in the task bar - i want to hide it (not 
minimize it). Can someone help me with this?
I've already managed to do that when user closes the window - but with 
this, i just can't do it. I tried to hide the window in a signal 
'window-state-event' handler, but when i did
that, window minimized, went from taskbar, then showed up again and it 
went on and on and on... i had to make hard restart (couldn't figured 
out how to switch to the console from xfce...),
which i never did with linux (i am a good programmer ;-)).

Any help would be apretiated.
Thanks in advance,

Przemu
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


gtk: hide window when minimized

2007-05-15 Thread bronson
Hello,

could anyone tell me how can I hide window, when user minimizes it?
I tried to handle signal 'window-state-event', but when in that method i 
hide window,
strange things happen - window hides, and then shows up again and it 
never ends.

Any help would be appretiated.
Thanks in advance,

Przemu
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list