summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd-quartz.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-01 20:12:45 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-02 00:29:31 +0100
commit7f93858cccbd33f1bae98f107d9665a91e0ec58d (patch)
tree40daa0bdc0d732ffcd9708e037352124e564b5dd /gtk/gtkdnd-quartz.c
parent0c027937e8a994b66d32229470cc0eabd93c7a2c (diff)
downloadgtk+-7f93858cccbd33f1bae98f107d9665a91e0ec58d.tar.gz
Stop using gtk_icon_size_lookup_for_settings()
Use the equivalent gtk_icon_size_lookup() instead.
Diffstat (limited to 'gtk/gtkdnd-quartz.c')
-rw-r--r--gtk/gtkdnd-quartz.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 7505482a63..08240b0979 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1595,7 +1595,6 @@ gtk_drag_set_icon_name (GdkDragContext *context,
gint hot_y)
{
GdkScreen *screen;
- GtkSettings *settings;
GtkIconTheme *icon_theme;
GdkPixbuf *pixbuf;
gint width, height, icon_size;
@@ -1606,13 +1605,8 @@ gtk_drag_set_icon_name (GdkDragContext *context,
screen = gdk_window_get_screen (gdk_drag_context_get_source_window (context));
g_return_if_fail (screen != NULL);
- settings = gtk_settings_get_for_screen (screen);
- if (gtk_icon_size_lookup_for_settings (settings,
- GTK_ICON_SIZE_DND,
- &width, &height))
- icon_size = MAX (width, height);
- else
- icon_size = 32; /* default value for GTK_ICON_SIZE_DND */
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &width, &height);
+ icon_size = MAX (width, height);
icon_theme = gtk_icon_theme_get_for_screen (screen);