Re: geometry specification in Apps.

"Daniel M. German" <> writes:

> gtk_widget_set_uposition (GTK_WIDGET (retval->main_window), xpos, ypos);
> does not take into account the size of the window if the parameters
> are negative. For instance, try 
> gnome-terminal --geometry 40x30-0+0
> You will see that instead of locating the window in the upper right
> corner, you will see it (or not :) out of the screen.

I wouldn't expect gtk_widget_set_uposition() to do the funky X
geometry stuff. In fact, since it takes integers, it _couldn't_
distinguish -0. 

However, that if you set a position of -1 for
gtk_widget_set_uposition(), it will unset the position entirely is a
misfeature of the API.

That there isn't a way of setting the gravity hint on a GTK window is
a missing feature. You need this to properly do the X style -0 stuff.


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