Panel autohide

Olivier Fourdan fourdan at xfce.org
Sun Apr 13 15:24:49 CEST 2003


Well,

I think that the resize takes longer because it has to propagate the GTK
signal to all widgets, while the move is just a wrapper to XMoveWindow.

What about this: Resize the panel, purge all GTK events (while
(gtk_event_pending()... etc.) and then move the window

Cheers,
Olivier. 

On Sun, 2003-04-13 at 14:02, Jasper Huijsmans wrote:
> On 13 Apr 2003 13:57:32 +0200
> Olivier Fourdan <fourdan at xfce.org> wrote:
> 
> > Hi Jasper,
> > 
> > Resize *before* moving
> > 
> 
> err, I do ...
> 
> code:
> ===
>     if (hide)
>         gtk_widget_hide (p->main_frame);
>     else
>         gtk_widget_show (p->main_frame);
> 
>     p->hidden = hide;
> 
>     gtk_widget_set_size_request (p->toplevel, req.width, req.height);
>     gtk_window_move (GTK_WINDOW (p->toplevel), x, y);
> ===
> 
> Is set_size_request not enough?  I tried adding a queue_resize and a
> gdk_flush() without success.
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
-- 
Olivier Fourdan <fourdan at xfce.org>
http://www.xfce.org




More information about the Xfce4-dev mailing list