[Python-apps-commits] r7439 - in packages/gtg/trunk/debian (3 files)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Thu Aug 11 18:51:28 UTC 2011


    Date: Thursday, August 11, 2011 @ 18:51:26
  Author: dktrkranz
Revision: 7439

Change selection when right-clicking on a different task (Closes: #624225)

Added:
  packages/gtg/trunk/debian/patches/select_right_clicked_tasks.patch
Modified:
  packages/gtg/trunk/debian/changelog
  packages/gtg/trunk/debian/patches/series

Modified: packages/gtg/trunk/debian/changelog
===================================================================
--- packages/gtg/trunk/debian/changelog	2011-08-11 17:36:19 UTC (rev 7438)
+++ packages/gtg/trunk/debian/changelog	2011-08-11 18:51:26 UTC (rev 7439)
@@ -2,10 +2,13 @@
 
   * debian/patches/*.patch:
     - Use DEP3 headers in patches.
+  * debian/patches/select_right_clicked_tasks.patch:
+    - Change selection when right-clicking on a different task,
+      patch cherry-picked by Jérôme Guelfucci (Closes: #624225).
   * debian/control:
     - Bump Standards-Version to 3.9.2.
 
- -- Luca Falavigna <dktrkranz at debian.org>  Thu, 11 Aug 2011 19:34:41 +0200
+ -- Luca Falavigna <dktrkranz at debian.org>  Thu, 11 Aug 2011 20:44:33 +0200
 
 gtg (0.2.4-5) unstable; urgency=low
 

Added: packages/gtg/trunk/debian/patches/select_right_clicked_tasks.patch
===================================================================
--- packages/gtg/trunk/debian/patches/select_right_clicked_tasks.patch	                        (rev 0)
+++ packages/gtg/trunk/debian/patches/select_right_clicked_tasks.patch	2011-08-11 18:51:26 UTC (rev 7439)
@@ -0,0 +1,22 @@
+Description: Change selection when right-clicking on a different task
+Origin: http://bazaar.launchpad.net/~gtg/gtg/trunk/revision/928
+
+Index: gtg-0.2.4/GTG/taskbrowser/browser.py
+===================================================================
+--- gtg-0.2.4.orig/GTG/taskbrowser/browser.py	2011-04-26 18:47:12.000000000 +0200
++++ gtg-0.2.4/GTG/taskbrowser/browser.py	2011-04-26 18:54:50.000000000 +0200
+@@ -1448,8 +1448,12 @@
+             time = event.time
+             pthinfo = treeview.get_path_at_pos(x, y)
+             if pthinfo is not None:
+-                if treeview.get_selection().count_selected_rows() <= 0:
+-                    path, col, cellx, celly = pthinfo
++                path, col, cellx, celly = pthinfo
++                selection = treeview.get_selection()
++                if selection.count_selected_rows() > 0 :
++                    if not selection.path_is_selected(path) :
++                        treeview.set_cursor(path, col, 0)
++                else :
+                     treeview.set_cursor(path, col, 0)
+                 treeview.grab_focus()
+                 self.taskpopup.popup(None, None, None, event.button, time)

Modified: packages/gtg/trunk/debian/patches/series
===================================================================
--- packages/gtg/trunk/debian/patches/series	2011-08-11 17:36:19 UTC (rev 7438)
+++ packages/gtg/trunk/debian/patches/series	2011-08-11 18:51:26 UTC (rev 7439)
@@ -4,3 +4,4 @@
 x_is_running.patch
 locale.patch
 gnome2.patch
+select_right_clicked_tasks.patch




More information about the Python-apps-commits mailing list