Don't use gtk_icon_theme_get_default(); use the screen-specific theme

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2011-10-04 17:09:33 -05:00
parent 76ec7fb005
commit 06a9d19f9a

View File

@ -257,7 +257,7 @@ get_eject_icon (GtkPlacesSidebar *sidebar,
GtkIconTheme *icon_theme; GtkIconTheme *icon_theme;
GtkStyleContext *style; GtkStyleContext *style;
icon_theme = gtk_icon_theme_get_default (); icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (sidebar)));
icon_size = get_icon_size (sidebar); icon_size = get_icon_size (sidebar);
icon = g_themed_icon_new_with_default_fallbacks ("media-eject-symbolic"); icon = g_themed_icon_new_with_default_fallbacks ("media-eject-symbolic");
icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, icon_size, 0); icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, icon_size, 0);
@ -368,7 +368,7 @@ get_pixbuf_from_gicon (GtkPlacesSidebar *sidebar, GIcon *icon)
GtkIconInfo *icon_info; GtkIconInfo *icon_info;
GdkPixbuf *pixbuf; GdkPixbuf *pixbuf;
icon_theme = gtk_icon_theme_get_default (); icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (sidebar)));
icon_size = get_icon_size (sidebar); icon_size = get_icon_size (sidebar);
icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, icon_size, 0); icon_info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, icon_size, 0);