]> err.no Git - mapper/commitdiff
Check that we have a gtk version with gtk_button_set_image_position before using it
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 3 Mar 2008 10:12:43 +0000 (12:12 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 3 Mar 2008 10:12:43 +0000 (12:12 +0200)
src/poi-gui.c

index 3538295faa7428ffd118aabbb29386e3d8e2719b..691efacf4c3cbf6bdcce3bb7c2c3466f4f92df4a 100644 (file)
@@ -1030,7 +1030,9 @@ if (iname)
        icon=poi_get_icon(iname, TRUE);
 if (icon) {
        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
 }
 }