Re: gtk_window_move can't move GtkWindow to negative position.

Am Fri, 21 Jan 2011 07:23:49 +0000 (GMT)
schrieb 박보람 <boram1288 park samsung com>:

> 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.


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