Add missing GTK_CHECK_VERSION(2,6,0) checks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69697
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define g_object_ref_sink wx_g_object_ref_sink
// ----------------------------------------------------------------------------
#define g_object_ref_sink wx_g_object_ref_sink
// ----------------------------------------------------------------------------
-// the following were introduced in GTK+ 2.12
+// the following were introduced in GTK+ 2.12 and GtkAboutDialog itself is not
+// in 2.4 so skip this if we don't have it.
+#if GTK_CHECK_VERSION(2,6,0)
static inline void wx_gtk_about_dialog_set_program_name(GtkAboutDialog* about, const gchar* name)
{
gtk_about_dialog_set_name(about, name);
}
#define gtk_about_dialog_set_program_name wx_gtk_about_dialog_set_program_name
static inline void wx_gtk_about_dialog_set_program_name(GtkAboutDialog* about, const gchar* name)
{
gtk_about_dialog_set_name(about, name);
}
#define gtk_about_dialog_set_program_name wx_gtk_about_dialog_set_program_name
// ----------------------------------------------------------------------------
// the following were introduced in GTK+ 2.14
// ----------------------------------------------------------------------------
// the following were introduced in GTK+ 2.14
/* add a stock icon inside it */
GtkWidget *image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON);
/* add a stock icon inside it */
GtkWidget *image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON);
+#if GTK_CHECK_VERSION(2,6,0)
gtk_button_set_image (GTK_BUTTON (button), image);
gtk_button_set_image (GTK_BUTTON (button), image);
/* add to the given (container) widget */
if (box)
/* add to the given (container) widget */
if (box)