panel oddities
Jasper Huijsmans
jasper at moongroup.com
Wed Jul 23 10:05:30 CEST 2003
Hey,
On 23 Jul 2003 00:35:45 +0200
Olivier Fourdan <fourdan at xfce.org> wrote:
>
> Jasper,
>
> The use of :
>
> static void
> xfce_menubutton_size_allocate_cb (GtkWidget * widget,
> GtkAllocation * allocation,
> XfceMenubutton * menubutton)
>
> plugged into "size-allocate" event is causing the trouble because:
>
> 1) the icon is set to its original size, so the size is bigger
> 2) a size-allocate event is sent
> 3) the icon is scaled
> 4) the window shrinks as the icon shrinks
> 5) it looks ugly :(
>
> Couldn't fix it yet... Jasper, if you have time tomorrow..., right
> now, I'm just too tired.
>
> I tried using
>
> widget_class->size_allocate = xfce_menubutton_size_allocate;
>
> implementing the xfce_menubutton_size_allocate() fn like I did in
> xfce_clock widget but that doesn't seem to work right with the
> menubutton widget...
>
> Cheers,
> Olivier.
>
Yeah, it's quite complex to get this right. I don't know if I can fix
it. I don't have much time this week, but I'll see what I can do.
Jasper
More information about the Xfce4-dev
mailing list