[gcr] gcr-display-view: gtk_icon_size_lookup_for_settings() deprecated
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gcr-display-view: gtk_icon_size_lookup_for_settings() deprecated
- Date: Sun, 5 Jan 2014 20:46:27 +0000 (UTC)
commit 115bcf44714583d2bd83251b672adec8a7de6cda
Author: Stef Walter <stefw gnome org>
Date: Sun Jan 5 20:12:48 2014 +0100
gcr-display-view: gtk_icon_size_lookup_for_settings() deprecated
Use alternative
ui/gcr-display-view.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/ui/gcr-display-view.c b/ui/gcr-display-view.c
index e058b45..39b1a93 100644
--- a/ui/gcr-display-view.c
+++ b/ui/gcr-display-view.c
@@ -1189,7 +1189,6 @@ _gcr_display_view_set_icon (GcrDisplayView *self, GcrRenderer *renderer, GIcon *
GcrDisplayItem *item;
GdkScreen *screen;
GtkIconTheme *icon_theme;
- GtkSettings *settings;
gint width, height;
GtkIconInfo *info;
@@ -1206,9 +1205,8 @@ _gcr_display_view_set_icon (GcrDisplayView *self, GcrRenderer *renderer, GIcon *
screen = gtk_widget_get_screen (GTK_WIDGET (self));
icon_theme = gtk_icon_theme_get_for_screen (screen);
- settings = gtk_settings_get_for_screen (screen);
- if (!gtk_icon_size_lookup_for_settings (settings, GTK_ICON_SIZE_DIALOG, &width, &height))
+ if (!gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &width, &height))
g_return_if_reached ();
info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, MIN (width, height),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]