#405 2.0.5 Gtk-Critical GTK_IS_LABEL assertion failed

closed-fixed
nobody
None
5
2003-11-29
2003-09-24
Anonymous
No

Doesn't seem critical at all.
When using x-chat and opening channels etc. in windows
(not tabs) I get:

(xchat:14088): Gtk-CRITICAL **: file gtklabel.c: line
988 (gtk_label_get_attributes): assertion `GTK_IS_LABEL
(label)' failed

for every window opened, including status. This is not
new to 2.0.5, happened under 2.0.4 too. Tried debugging
some, warning seems to come from void tab_rename( .. )
in tabs.c:

PangoAttrList *attr = gtk_label_get_attributes
(GTK_LABEL (GTK_BIN (tab)->child));

I changed this to:

PangoAttrList *attr;
if (GTK_IS_LABEL (GTK_BIN (tab)->child) )
attr = gtk_label_get_attributes (GTK_LABEL (GTK_BIN
(tab)->child));
else
attr=NULL;

which supresses the Gtk-CRITICAL warning message. Is
this a side effect of some greater evil? Should
tab_rename be getting called for non-tab windows?

Best regards,
Tom.

Discussion

  • Peter Zelezny.
    Peter Zelezny.
    2003-11-12

    • status: open --> open-fixed
     
  • Peter Zelezny.
    Peter Zelezny.
    2003-11-12

    Logged In: YES
    user_id=5012

    Fixed in cvs.

     
  • Peter Zelezny.
    Peter Zelezny.
    2003-11-29

    • status: open-fixed --> closed-fixed