show/hide button
joy zhao
yanhwizhao at gmail.com
Wed May 14 03:49:47 CEST 2008
hi,
In the current panel, the panel window inherited form XfcePanelWindowClass,
and in its
xfce_panel_window_size_allocate routine, priv->resize_func (
panel_resize_function ) would be called, which would determine panel
window's position on screen and this routine would be called from time to
time and prevent a plugin's information of panel moving to another position.
So if not do certain changed in the panel itself, I don't think a plugin can
have enough power to implement task to show/hide panel to corner.
I don't intend to push you to use my patch, and further improvement on it
is necessary.
My concern is that if panel already has implement the trunk of the
functionality, why do we have to add a dummy plugin to take the superficial
responsibility? plugins should do what the panel do not know, like
displaying a clock, eyes..., but not what the panel knows and already have
done! Just we only need a option in panel's customization dialog to toggle
autohide behavior, instead of a unnecessary plugin to have users the choice
of deciding panel can autohide or not. If we have to put the main function
in the panel, why not just provide an option in the customization dialog and
toggle the existence of the show/hide button?
On Wed, May 14, 2008 at 2:45 AM, Nick Schermer <nickschermer at gmail.com>
wrote:
> 2008/5/13, Brian J. Tarricone <bjt23 at cornell.edu>:
> > Why is it necessary? What's wrong with the panel's autohide behavior?
> > I feel like this is a niche feature that isn't really a great idea to
> > put in the panel proper... Tho adding a way to allow plugins to change
> > autohide behavior might not be a bad idea.
>
> It's not up to you to decide whether people should or shouldn't like
> this feature ;-). My experimental panel already supports hiding
> sideways (and guest what, it is kinda handy), so it only needs a
> clever way to control this 'remote'.
>
> Nick
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20080514/2dacec2e/attachment.html>
More information about the Xfce4-dev
mailing list