From 621fe3fe880bb5b532831e44848b35598cd68993 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer <benny@xfce.org> Date: Fri, 2 Sep 2005 00:38:31 +0000 Subject: [PATCH] 2005-09-02 Benedikt Meurer <benny@xfce.org> * thunar/thunar-icon-renderer.c(thunar_icon_renderer_render): Prelight drop destination icons. (Old svn revision: 17268) --- ChangeLog | 5 +++++ thunar/thunar-icon-renderer.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 243e6a00b..31ddf4910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-02 Benedikt Meurer <benny@xfce.org> + + * thunar/thunar-icon-renderer.c(thunar_icon_renderer_render): Prelight + drop destination icons. + 2005-09-01 Benedikt Meurer <benny@xfce.org> * thunar/thunar-computer-folder.c, thunar/thunar-desktop-view.c, diff --git a/thunar/thunar-icon-renderer.c b/thunar/thunar-icon-renderer.c index 42590c4a3..ebce4c85f 100644 --- a/thunar/thunar-icon-renderer.c +++ b/thunar/thunar-icon-renderer.c @@ -343,6 +343,11 @@ thunar_icon_renderer_render (GtkCellRenderer *renderer, if (G_UNLIKELY (icon == NULL)) return; + /* pre-light the item if we're dragging about it */ + if (G_UNLIKELY (icon_state == THUNAR_FILE_ICON_STATE_DROP)) + flags |= GTK_CELL_RENDERER_PRELIT; + + /* determine the real icon size */ icon_area.width = gdk_pixbuf_get_width (icon); icon_area.height = gdk_pixbuf_get_height (icon); -- GitLab