Mercurial > geeqie
comparison src/view_file_icon.c @ 581:9b43b8256afe
Fix Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed
when swapping to/from file icon view.
author | zas_ |
---|---|
date | Mon, 05 May 2008 07:46:32 +0000 |
parents | e27c374460d3 |
children | 8f696e43873d |
comparison
equal
deleted
inserted
replaced
580:e27c374460d3 | 581:9b43b8256afe |
---|---|
625 tip_schedule(vf); | 625 tip_schedule(vf); |
626 return; | 626 return; |
627 } | 627 } |
628 | 628 |
629 label = g_object_get_data(G_OBJECT(VFICON_INFO(vf, tip_window)), "tip_label"); | 629 label = g_object_get_data(G_OBJECT(VFICON_INFO(vf, tip_window)), "tip_label"); |
630 gtk_label_set_text(GTK_LABEL(label), VFICON_INFO(vf, tip_id)->fd->name); | 630 if (label) gtk_label_set_text(GTK_LABEL(label), VFICON_INFO(vf, tip_id)->fd->name); |
631 } | 631 } |
632 } | 632 } |
633 else | 633 else |
634 { | 634 { |
635 tip_schedule(vf); | 635 tip_schedule(vf); |