libxfcegui4 bug report (100% CPU load + hang)
Olivier Fourdan
fourdan at xfce.org
Sun Sep 7 19:11:33 CEST 2003
Btw the panel crashes too now... I think you should revert your latest
changes, or fix it :)
It looks like if you changed the size of the widget during allocation so
that gtk loops trying to adjust and reemittinf the size request or
something like that...
Cheers,
Olivier.
On Sun, 2003-09-07 at 17:21, Jasper Huijsmans wrote:
> Op zo 07-09-2003, om 15:37 schreef Olivier Fourdan:
> > Jasper,
> >
> > This time I think it's a bug with the changes you made... Openning the
> > MCS manager window causes a hang and uses 100% CPU.
> >
> > These two calls make me think it's your change:
> >
> > #5 0x40050fc1 in xfce_menubutton_set_stock_icon ()
> > from /usr/lib/libxfcegui4.so.1
> > #6 0x40050c9c in xfce_menubutton_set_stock_icon ()
> > from /usr/lib/libxfcegui4.so.1
> >
>
> I wonder how that can happen:
>
> [xfce-mcs-manager]$ grep stock $(find -name *.[ch])
> [xfce-mcs-manager]$
>
> set_stock_icon is only used in *_new_with_stock_icon()
>
> [~/cvs/xfce]$ grep xfce_menubutton_set_stock_icon $(find xfce-devel
> xfce4-extras -name *.[ch])
> xfce-devel/libxfcegui4/examples/menubutton/menubutton.c:
> xfce_menubutton_set_stock_icon(XFCE_MENUBUTTON(button),
> GTK_STOCK_REMOVE);
> xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:
> xfce_menubutton_set_stock_icon (XFCE_MENUBUTTON (button), stock);
> xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:xfce_menubutton_set_stock_icon (XfceMenubutton * menubutton,
> xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.h: void
> xfce_menubutton_set_stock_icon (XfceMenubutton * menubutton,
> [~/cvs/xfce]$
>
>
> And xfce_menubutton_new_with_stock_icon is only called from the panel
> (for the 'Add launcher' menu item).
>
> [~/cvs/xfce]$ grep xfce_menubutton_new_with_stock $(find xfce-devel
> xfce4-extras -name *.[ch])
> xfce-devel/libxfcegui4/examples/menubutton/menubutton.c: menubutton =
> xfce_menubutton_new_with_stock_icon("Second item", GTK_STOCK_ADD);
> xfce-devel/libxfcegui4/examples/menubutton/menubutton.c: menubutton =
> xfce_menubutton_new_with_stock_icon("Fourth item", GTK_STOCK_REMOVE);
> xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.c:xfce_menubutton_new_with_stock_icon (const char *text, const char *stock)
> xfce-devel/libxfcegui4/libxfcegui4/xfce_menubutton.h: GtkWidget
> *xfce_menubutton_new_with_stock_icon (const char *text,
> xfce-devel/xfce4/panel/item.c: xfce_menubutton_new_with_stock_icon
> (_("Add launcher"),
> [~/cvs/xfce]$
>
>
> Secondly, gdk_pixbuf_scale cannot be called for a menubutton with stock
> icon ...
>
> Can there be a problem with library versions? Does anyone else see this
> with latest CVS?
>
> Obviously I don't see this behaviour and at the moment I really don't
> know where to start looking for the problem.
>
>
>
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
--
Olivier Fourdan - fourdan at xfce.org
Interoperability is the keyword, uniformity is a dead end.
http://www.xfce.org
More information about the Xfce4-dev
mailing list