]> err.no Git - mapper/commitdiff
Add debug output for quick poi button icon setter.
authorKaj-Michael Lang <milang@tal.org>
Tue, 4 Mar 2008 14:58:58 +0000 (16:58 +0200)
committerKaj-Michael Lang <milang@tal.org>
Tue, 4 Mar 2008 14:58:58 +0000 (16:58 +0200)
src/poi-gui.c

index 691efacf4c3cbf6bdcce3bb7c2c3466f4f92df4a..82f114860ae87dcecee45d252a2dbf5c1d886c7a 100644 (file)
@@ -1029,10 +1029,13 @@ iname=poi_get_icon_from_type(t);
 if (iname)
        icon=poi_get_icon(iname, TRUE);
 if (icon) {
+       g_debug("Got button icon %s", iname);
        gtk_button_set_image(GTK_BUTTON(button), gtk_image_new_from_pixbuf(icon));
 #if GTK_CHECK_VERSION(2,10,0)
        gtk_button_set_image_position(GTK_BUTTON(button), GTK_POS_TOP);
 #endif
+} else {
+       g_debug("No button icon for %s", iname);
 }
 }