# HG changeset patch # User zas_ # Date 1209973592 0 # Node ID 9b43b8256afe447011a359c50f0d7d4abd88ddab # Parent e27c374460d39ff25ad9e7b50dc6f3aa47119d4e Fix Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed when swapping to/from file icon view. diff -r e27c374460d3 -r 9b43b8256afe src/view_file_icon.c --- a/src/view_file_icon.c Sun May 04 23:57:20 2008 +0000 +++ b/src/view_file_icon.c Mon May 05 07:46:32 2008 +0000 @@ -627,7 +627,7 @@ } label = g_object_get_data(G_OBJECT(VFICON_INFO(vf, tip_window)), "tip_label"); - gtk_label_set_text(GTK_LABEL(label), VFICON_INFO(vf, tip_id)->fd->name); + if (label) gtk_label_set_text(GTK_LABEL(label), VFICON_INFO(vf, tip_id)->fd->name); } } else