[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Add a macro for the number of times a category flashes.

Jannis Pohlmann noreply at xfce.org
Fri Jul 15 21:10:43 CEST 2011


Updating branch refs/heads/jannis/new-shortcuts-pane
         to 7afd1afa8dc0763d2b7fb2dd998a4a6144ff35ac (commit)
       from 9d1e72839de4b9c7c23892045fcba39f1426e9cd (commit)

commit 7afd1afa8dc0763d2b7fb2dd998a4a6144ff35ac
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Thu Jun 16 00:27:35 2011 +0200

    Add a macro for the number of times a category flashes.

 thunar/thunar-shortcuts-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-shortcuts-view.c b/thunar/thunar-shortcuts-view.c
index 4a6aa9d..b6b7ceb 100644
--- a/thunar/thunar-shortcuts-view.c
+++ b/thunar/thunar-shortcuts-view.c
@@ -49,6 +49,7 @@
 
 
 #define THUNAR_SHORTCUTS_VIEW_FLASH_TIMEOUT 150
+#define THUNAR_SHORTCUTS_VIEW_FLASH_TIMES     4
 
 
 
@@ -686,8 +687,8 @@ thunar_shortcuts_view_flash_expander (gpointer user_data)
   /* increment the flash counter */
   flash_count += 1;
 
-  /* abort if we have flashed 4 times */
-  if (flash_count >= 8)
+  /* abort if we have flashed several times */
+  if (flash_count >= (THUNAR_SHORTCUTS_VIEW_FLASH_TIMES * 2))
     {
       /* reset the event box color */
       gtk_widget_set_state (GTK_WIDGET (event_box), GTK_STATE_NORMAL);



More information about the Xfce4-commits mailing list