Panel: Broken size-changed signal?

Jannis Pohlmann info at sten-net.de
Mon Feb 13 23:55:50 CET 2006


On Mon, 13 Feb 2006 20:24:06 +0100
Jasper Huijsmans <jasper at xfce.org> wrote:

> Jannis Pohlmann schreef:
> > Hey Jasper,
> > 
> > I noticed that today, I couldn't resize Verve anymore. It's width
> > seems to be fixed at 5 chars. Re-adding, deleteing the rc files for
> > the plugin etc. didn't change anything. Is it possible that your
> > latest updates broke the size-changed signal or
> > something else (for external plugins only?)?
> > 
> 
> If I look at what you have in SVN, I see that you use the update_size 
> function both for the user-configured size and as callback for the 
> size-changed signal. I don't think that is what you want, is it?

It is. Whenever the panel sends this signal, the plugin should update
the width of the GtkEntry to the user-defined char width, so we can
keep the size the user requests, whenever it's possible.
Nasty, I know. But I didn't want to use expand/non-expand like the
spacer plugin does.

> 
> Secondly you have to return TRUE from the callback to  tell the panel 
> not to use the default size function.

I'll try this, thanks.

Regards,
Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060213/b10709ee/attachment.pgp>


More information about the Xfce4-dev mailing list