summaryrefslogtreecommitdiff
path: root/gtk/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/compat.c')
-rw-r--r--gtk/compat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/compat.c b/gtk/compat.c
index 3248254fd..f403e367f 100644
--- a/gtk/compat.c
+++ b/gtk/compat.c
@@ -483,3 +483,13 @@ GtkWidget *nsgtk_button_new_from_stock(const gchar *stock_id)
return nsgtk_button_new_from_stock(stock_id);
#endif
}
+
+/* exported interface documented in gtk/compat.h */
+gboolean nsgtk_stock_lookup(const gchar *stock_id, GtkStockItem *item)
+{
+#if GTK_CHECK_VERSION(3,10,0)
+ return false;
+#else
+ return gtk_stock_lookup(stock_id, item);
+#endif
+}