Re: Re: gtk_window_move can't move GtkWindow to negative position.
- From: 박보람 <boram1288 park samsung com>
- To: Christian Dywan <christian lanedo com>, "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: Re: gtk_window_move can't move GtkWindow to negative position.
- Date: Fri, 21 Jan 2011 11:02:27 +0000 (GMT)
> the window manager usually ignores attempts to move it before it is visible
I see~ Now I understand.
> Or you use GTK_WINDOW_POPUP instead
Yes, GTK_WINDOW_POPUP will be helpful for me.
Thank you a lot.
Cheers
------- Original Message -------
Sender : Christian Dywan<christian lanedo com>
Date : 2011-01-21 19:48 (GMT+09:00)
Title : Re: gtk_window_move can't move GtkWindow to negative position.
Am Fri, 21 Jan 2011 07:23:49 +0000 (GMT)
schrieb 박보람 :
> Using gtk_window_move, I give negative value to GtkWindow.
> (e.g. gtk_window_move (GTK_WINDOW (window), -100, -100))
> But it's not moving to the negative position I given.
Hey Boram,
I looked at your test case. I don't think it's a bug, but expected behaviour.
If you create a window of type GTK_WINDOW_TOPLEVEL, ie. 0, the window manager usually ignores attempts to move it before it is visible. So nothing happens.
You can either show the window first, and then move.
Or you use GTK_WINDOW_POPUP instead, which gives you full control over the window and the window manager will not interfere with you. That's how popup menus work for example.
--
ciao,
Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]