[Xfce4-commits] [xfce/xfdesktop] 03/19: Unselect the desktop icon after activating it. (Bug #8640)

noreply at xfce.org noreply at xfce.org
Sun Nov 9 15:36:45 CET 2014


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

eric pushed a commit to branch xfce-4.10
in repository xfce/xfdesktop.

commit 956d8b509d19dba80a7303105e48ef24f6802927
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Fri Apr 6 18:24:29 2012 +0300

    Unselect the desktop icon after activating it. (Bug #8640)
---
 src/xfdesktop-icon-view.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index d6bc63c..e786e34 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -872,6 +872,7 @@ xfdesktop_icon_view_button_press(GtkWidget *widget,
                 g_signal_emit(G_OBJECT(icon_view), __signals[SIG_ICON_ACTIVATED],
                               0, NULL);
                 xfdesktop_icon_activated(icon);
+                xfdesktop_icon_view_unselect_item(icon_view, icon);
             }
         }
         
@@ -913,6 +914,7 @@ xfdesktop_icon_view_button_release(GtkWidget *widget,
             g_signal_emit(G_OBJECT(icon_view), __signals[SIG_ICON_ACTIVATED],
                           0, NULL);
             xfdesktop_icon_activated(icon);
+            xfdesktop_icon_view_unselect_item(icon_view, icon);
         }
     }
 
@@ -2151,6 +2153,8 @@ xfdesktop_icon_view_real_activate_cursor_item(XfdesktopIconView *icon_view)
 
     g_signal_emit(G_OBJECT(icon_view), __signals[SIG_ICON_ACTIVATED], 0, NULL);
     xfdesktop_icon_activated(icon_view->priv->cursor);
+    xfdesktop_icon_view_unselect_item(icon_view, icon_view->priv->cursor);
+    icon_view->priv->cursor = NULL;
 
     return TRUE;
 }

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


More information about the Xfce4-commits mailing list