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

Jannis Pohlmann noreply at xfce.org
Thu Jun 16 00:30:01 CEST 2011


Updating branch refs/heads/jannis/new-shortcuts-pane
         to 4cab079f37a42a12ca44532c59f6bfd97009f08d (commit)
       from e9e9e0adb12b0bdce9fb5dc391c3312cbdc9cdc5 (commit)

commit 4cab079f37a42a12ca44532c59f6bfd97009f08d
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