[Xfce4-commits] [xfce/thunar] 01/46: Remove usage of GdkDrawable

noreply at xfce.org noreply at xfce.org
Tue Aug 15 02:35:09 CEST 2017


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit 5ab953f6830594024a13ac7f79c26129da44b0af
Author: Jonas Kümmerlin <rgcjonas at gmail.com>
Date:   Wed Aug 5 16:28:08 2015 +0200

    Remove usage of GdkDrawable
---
 thunar/thunar-icon-renderer.c           | 2 +-
 thunar/thunar-shortcuts-icon-renderer.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-icon-renderer.c b/thunar/thunar-icon-renderer.c
index 556ac92..3b1f2da 100644
--- a/thunar/thunar-icon-renderer.c
+++ b/thunar/thunar-icon-renderer.c
@@ -392,7 +392,7 @@ thunar_icon_renderer_render (GtkCellRenderer     *renderer,
              : THUNAR_FILE_ICON_STATE_DROP;
 
   /* load the main icon */
-  icon_theme = gtk_icon_theme_get_for_screen (gdk_drawable_get_screen (window));
+  icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget));
   icon_factory = thunar_icon_factory_get_for_icon_theme (icon_theme);
   icon = thunar_icon_factory_load_file_icon (icon_factory, icon_renderer->file, icon_state, icon_renderer->size);
   if (G_UNLIKELY (icon == NULL))
diff --git a/thunar/thunar-shortcuts-icon-renderer.c b/thunar/thunar-shortcuts-icon-renderer.c
index c9258fd..89742ff 100644
--- a/thunar/thunar-shortcuts-icon-renderer.c
+++ b/thunar/thunar-shortcuts-icon-renderer.c
@@ -229,7 +229,7 @@ thunar_shortcuts_icon_renderer_render (GtkCellRenderer     *renderer,
       ||  shortcuts_icon_renderer->device != NULL))
     {
       /* load the volume icon */
-      icon_theme = gtk_icon_theme_get_for_screen (gdk_drawable_get_screen (window));
+      icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget));
 
       /* look up the icon info */
       if (shortcuts_icon_renderer->gicon != NULL)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list