Fix Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed
authorLaurent Monin <geeqie@norz.org>
Mon, 5 May 2008 07:46:32 +0000 (07:46 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 5 May 2008 07:46:32 +0000 (07:46 +0000)
when swapping to/from file icon view.

src/view_file_icon.c

index 9ac7608..ab81552 100644 (file)
@@ -627,7 +627,7 @@ static void tip_update(ViewFile *vf, IconData *id)
                                }
 
                        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