[Pkg-xfce-commits] r3302 - in desktop/trunk/xfce4-terminal/debian: . patches

Yves-Alexis Perez corsac at alioth.debian.org
Wed Jun 10 06:09:18 UTC 2009


Author: corsac
Date: 2009-06-10 06:09:18 +0000 (Wed, 10 Jun 2009)
New Revision: 3302

Added:
   desktop/trunk/xfce4-terminal/debian/patches/04_fix_activity_on_size_change.patch
Modified:
   desktop/trunk/xfce4-terminal/debian/changelog
Log:
* debian/patches:
  - 04_fix_activity_on_size_change added, fix activity notice on inactive
    tabs when resizing the window.

Modified: desktop/trunk/xfce4-terminal/debian/changelog
===================================================================
--- desktop/trunk/xfce4-terminal/debian/changelog	2009-06-09 21:30:12 UTC (rev 3301)
+++ desktop/trunk/xfce4-terminal/debian/changelog	2009-06-10 06:09:18 UTC (rev 3302)
@@ -2,8 +2,11 @@
 
   * debian/menu:
     - switch menu name to Xfce Terminal.
+  * debian/patches:
+    - 04_fix_activity_on_size_change added, fix activity notice on inactive
+      tabs when resizing the window.
 
- -- Yves-Alexis Perez <corsac at debian.org>  Sun, 07 Jun 2009 19:08:10 +0200
+ -- Yves-Alexis Perez <corsac at debian.org>  Wed, 10 Jun 2009 08:04:49 +0200
 
 xfce4-terminal (0.2.12-2) unstable; urgency=low
 

Added: desktop/trunk/xfce4-terminal/debian/patches/04_fix_activity_on_size_change.patch
===================================================================
--- desktop/trunk/xfce4-terminal/debian/patches/04_fix_activity_on_size_change.patch	                        (rev 0)
+++ desktop/trunk/xfce4-terminal/debian/patches/04_fix_activity_on_size_change.patch	2009-06-10 06:09:18 UTC (rev 3302)
@@ -0,0 +1,29 @@
+Index: terminal/terminal-screen.c
+===================================================================
+--- terminal/terminal-screen.c	(revision 27079)
++++ terminal/terminal-screen.c	(working copy)
+@@ -145,6 +145,7 @@
+   
+   gboolean             activity;
+   guint                reset_activity_cb;
++  time_t               last_size_change;
+ };
+ 
+ 
+@@ -873,6 +874,8 @@
+ 
+   if (terminal_window_is_screen_active (screen))
+     return;
++  if (time(NULL) - screen->last_size_change <= 1)
++    return;
+ 
+   g_object_get (G_OBJECT (screen->preferences), "tab-activity-timeout", &timeout_seconds, NULL);
+   if (timeout_seconds < 1.0)
+@@ -952,6 +955,7 @@
+         }
+ #endif
+     }
++    screen->last_size_change = time(NULL);
+ 
+   GDK_THREADS_LEAVE ();
+ 




More information about the Pkg-xfce-commits mailing list