From 4f13cbd31c984957d17081ac6d59a62b04d57765 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 10 Apr 2015 16:39:23 +0100 Subject: Fixup deprication of gtk_icon_size_lookup_for_settings in gtk 3.10 --- gtk/compat.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gtk/compat.c') diff --git a/gtk/compat.c b/gtk/compat.c index dc9864bb9..7f6d061d8 100644 --- a/gtk/compat.c +++ b/gtk/compat.c @@ -506,6 +506,7 @@ void nsgtk_scrolled_window_add_with_viewport(GtkScrolledWindow *window, #endif } +/* exported interface documented in gtk/compat.h */ GtkWidget *nsgtk_image_menu_item_new_with_mnemonic(const gchar *label) { #if GTK_CHECK_VERSION(3,10,0) @@ -515,9 +516,23 @@ GtkWidget *nsgtk_image_menu_item_new_with_mnemonic(const gchar *label) #endif } +/* exported interface documented in gtk/compat.h */ void nsgtk_image_menu_item_set_image(GtkWidget *image_menu_item, GtkWidget *image) { #if !GTK_CHECK_VERSION(3,10,0) gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(image_menu_item), image); #endif } + +/* exported interface documented in gtk/compat.h */ +gboolean nsgtk_icon_size_lookup_for_settings(GtkSettings *settings, + GtkIconSize size, + gint *width, + gint *height) +{ +#if GTK_CHECK_VERSION(3,10,0) + return gtk_icon_size_lookup(size, width, height); +#else + return gtk_icon_size_lookup_for_settings(settings, size, width, height); +#endif +} -- cgit v1.2.3