[Xfce4-commits] <xfdesktop:eric/icon-changes> Unselect the desktop icon after activating it. (Bug #8640)

Eric Koegel noreply at xfce.org
Sun Aug 25 16:24:01 CEST 2013


Updating branch refs/heads/eric/icon-changes
         to 104d482576b8538c9d2443d15817934876f16c8a (commit)
       from f606524d5d8b91c983c2412af291e6d4d6c66678 (commit)

commit 104d482576b8538c9d2443d15817934876f16c8a
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 da22d0d..2fd446c 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -878,6 +878,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);
             }
         }
         
@@ -919,6 +920,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);
         }
     }
 
@@ -2153,6 +2155,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;
 }


More information about the Xfce4-commits mailing list