summaryrefslogtreecommitdiff
path: root/gtk/compat.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-10 00:06:48 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-10 00:06:48 +0100
commit50f68b11a4983341bd94f0946e2f05f1d89ca1c8 (patch)
treec11c14450f4c0160ee9d3c4e0599894318495134 /gtk/compat.h
parent23ae8ccf110f94019c745ebc4959c06b842a626d (diff)
downloadnetsurf-50f68b11a4983341bd94f0946e2f05f1d89ca1c8.tar.gz
netsurf-50f68b11a4983341bd94f0946e2f05f1d89ca1c8.tar.bz2
fixup default toolbar button creation for depricated GTK 3 operations
Diffstat (limited to 'gtk/compat.h')
-rw-r--r--gtk/compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/compat.h b/gtk/compat.h
index 42deab2ac..0b5e02e66 100644
--- a/gtk/compat.h
+++ b/gtk/compat.h
@@ -148,6 +148,17 @@ GtkWidget *nsgtk_image_new_from_stock(const gchar *stock_id, GtkIconSize size);
*/
GtkWidget *nsgtk_button_new_from_stock(const gchar *stock_id);
+/**
+
+ * Fills item with the registered values for stock_id.
+ *
+ * Compatability interface for original deprecated in GTK 3.10
+ *
+ * \param stock_id the name of the stock item
+ * \return TRUE if stock_id was known.
+ */
+gboolean nsgtk_stock_lookup(const gchar *stock_id, GtkStockItem *item);
+
GtkWidget *nsgtk_entry_new(void);
void nsgtk_entry_set_icon_from_pixbuf(GtkWidget *entry, GtkEntryIconPosition icon_pos, GdkPixbuf *pixbuf);