[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to move and resize a gtk window in the same main loop iteration?
- From: "Zhe Su" <james su gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to move and resize a gtk window in the same main loop iteration?
- Date: Tue, 20 May 2008 00:36:24 +0800
Hmm, there is a gdk_window_move_resize() and a private
gtk_window_move_resize(). I'm wondering why gtk_window_move_resize() is
private.
Regards
James Su
On Tue, May 20, 2008 at 12:28 AM, Zhe Su <james su gmail com> wrote:
> I just found function gtk_container_set_resize_mode() which can set a
> container to resize immediately. But GTK_RESIZE_IMMEDIATELY is marked as
> deprecated. Is it the right function to achieve my goal? Why to deprecate
> the immediately option?
>
> Regards
> James Su
>
>
> On Mon, May 19, 2008 at 11:39 PM, Zhe Su <james su gmail com> wrote:
>
>> Hi,
>> I'm writing an application which needs to implement window resize drag
>> feature. Because of some reason, gtk_window_begin_resize_drag doesn't fit
>> this purpose. So I decide to emulate it by using
>> gtk_widget_set_size_request() and gtk_window_move(). Dragging right and
>> bottom border is just ok, because no need to move the window. But when
>> dragging top and left border, the window will be flicking. Because the
>> window needs moving and resizing and seems that they are done in different
>> main loop cycles. Is there any way to avoid such kind of flick?
>>
>> Regards
>> James Su
>>
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]