diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-26 18:41:15 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-26 20:02:27 -0400 |
commit | aef9dca9d5e17985faa2b3659e031a5d5064149e (patch) | |
tree | c38c1d398f22911733ab98978f7e71b023be6ef5 /gtk/gtkcellrendererspinner.c | |
parent | 88177d8bd19f0c900d8c5f448fec4df1cfee636d (diff) | |
download | gtk+-aef9dca9d5e17985faa2b3659e031a5d5064149e.tar.gz |
Deprecate GtkIconFactory, GtkIconSet, GtkIconSource
We want to use GtkIconTheme instead. It is worth noting that
the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.
Diffstat (limited to 'gtk/gtkcellrendererspinner.c')
-rw-r--r-- | gtk/gtkcellrendererspinner.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c index 34bea0b49b..075b817603 100644 --- a/gtk/gtkcellrendererspinner.c +++ b/gtk/gtkcellrendererspinner.c @@ -196,16 +196,11 @@ gtk_cell_renderer_spinner_update_size (GtkCellRendererSpinner *cell, GtkWidget *widget) { GtkCellRendererSpinnerPrivate *priv = cell->priv; - GdkScreen *screen; - GtkSettings *settings; if (priv->old_icon_size == priv->icon_size) return; - screen = gtk_widget_get_screen (GTK_WIDGET (widget)); - settings = gtk_settings_get_for_screen (screen); - - if (!gtk_icon_size_lookup_for_settings (settings, priv->icon_size, &priv->size, NULL)) + if (!gtk_icon_size_lookup (priv->icon_size, &priv->size, NULL)) { g_warning ("Invalid icon size %u\n", priv->icon_size); priv->size = 24; |