diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-10 00:06:48 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-10 00:06:48 +0100 |
commit | 50f68b11a4983341bd94f0946e2f05f1d89ca1c8 (patch) | |
tree | c11c14450f4c0160ee9d3c4e0599894318495134 /gtk/compat.c | |
parent | 23ae8ccf110f94019c745ebc4959c06b842a626d (diff) | |
download | netsurf-50f68b11a4983341bd94f0946e2f05f1d89ca1c8.tar.gz netsurf-50f68b11a4983341bd94f0946e2f05f1d89ca1c8.tar.bz2 |
fixup default toolbar button creation for depricated GTK 3 operations
Diffstat (limited to 'gtk/compat.c')
-rw-r--r-- | gtk/compat.c | 10 |
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 +} |