Panel autohide

Olivier Fourdan fourdan at xfce.org
Sun Apr 13 16:08:47 CEST 2003


Try adding this instead

while (gtk_events_pending ()) gtk_main_iteration ();

right after gtk_widget_set_size_request()

Cheers,
Olivier.

On Sun, 2003-04-13 at 15:14, Jasper Huijsmans wrote:
> Right, if I hide and show the window before moving it works as expected.
> That feels like a hack, though. Any idea how to do this in a cleaner
> way? (although the gtk_window_present() is nice anyway, since it puts
> the hidden panel on top of other windows, making it easier to unhide)
> 
> ===
> >     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);
> 
>     if (hide)
>     {
> 	gtk_widget_hide(p->toplevel);
> 	gtk_window_present(GTK_WINDOW(p->toplevel));
>     }
> 
> >     gtk_window_move (GTK_WINDOW (p->toplevel), x, y);
> ===
> 
> _______________________________________________
> 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