Re: [gtk-list] RE: How to get a window position?



On Mon, 07 Feb 2000 12:58:13 +0000 (GMT), Trog wrote:
> See:
> 
> http://www.gtk.org/faq/gtkfaq-5.html#ss5.15

Even easier: dont gtk_widget_destroy() the window, but just
gtk_widget_hide() it, and it will appear on the same place if you
gtk_widget_show() it again.


Erik

> On 07-Feb-2000 jca wrote:
>> 
>>   I have a window that hides and then reappears.  I want it to
>> reappear
>> in the same place the user left it before it was hidden.
>> 
>>   I can put the window wherever I want with
>> gtk_window_set_position...
>> but how do I query the window's position in the first place before
>> it
>> hides?  There's no gtk_window_get_position.


-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/





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