From 7801711afd43b526a820d52d9ca6b1493e519855 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 3 Mar 2008 12:12:43 +0200 Subject: [PATCH] Check that we have a gtk version with gtk_button_set_image_position before using it --- src/poi-gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/poi-gui.c b/src/poi-gui.c index 3538295..691efac 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -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 } } -- 2.39.5