summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-26 18:41:15 -0400
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-26 20:02:27 -0400
commitaef9dca9d5e17985faa2b3659e031a5d5064149e (patch)
treec38c1d398f22911733ab98978f7e71b023be6ef5 /gtk/gtkprintunixdialog.c
parent88177d8bd19f0c900d8c5f448fec4df1cfee636d (diff)
downloadgtk+-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/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index c642777df0..9f0065f067 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -2146,7 +2146,6 @@ draw_collate_cb (GtkWidget *widget,
cairo_t *cr,
GtkPrintUnixDialog *dialog)
{
- GtkSettings *settings;
gint size;
gfloat scale;
gboolean collate, reverse, rtl;
@@ -2159,11 +2158,7 @@ draw_collate_cb (GtkWidget *widget,
rtl = (gtk_widget_get_direction (GTK_WIDGET (widget)) == GTK_TEXT_DIR_RTL);
- settings = gtk_widget_get_settings (widget);
- gtk_icon_size_lookup_for_settings (settings,
- GTK_ICON_SIZE_DIALOG,
- &size,
- NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &size, NULL);
scale = size / 48.0;
text_x = rtl ? 4 : 11;
@@ -2193,15 +2188,10 @@ gtk_print_unix_dialog_style_updated (GtkWidget *widget)
{
GtkPrintUnixDialog *dialog = (GtkPrintUnixDialog *)widget;
GtkPrintUnixDialogPrivate *priv = dialog->priv;
- GtkSettings *settings;
gint size;
gfloat scale;
- settings = gtk_widget_get_settings (widget);
- gtk_icon_size_lookup_for_settings (settings,
- GTK_ICON_SIZE_DIALOG,
- &size,
- NULL);
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &size, NULL);
scale = size / 48.0;
gtk_widget_set_size_request (priv->collate_image,