Hmm, we should try it first. I think if we do it we should be 100%
compatible with nautilus behaviour, to provide a consistent feeling
across the applications.
Besides that, the single click view has some issues (even in
nautilus): it is hard to select several resources without activating
them. That could be a problem when coupling this behaviour with the
Mark as done/Dismiss/Delete actions.
On Thu, Mar 12, 2009 at 8:42 PM, Pititjo <email address hidden> wrote:
> This is very ugly but this modification of the
> GTG/taskbrowser/browser.py on_on_task_treeview_button_press_event method
> allow to open a task with simple click :
>
> def on_task_treeview_button_press_event(self,treeview,event) :
> if event.button == 3:
> x = int(event.x)
> y = int(event.y)
> time = event.time
> pthinfo = treeview.get_path_at_pos(x, y)
> print pthinfo
> if pthinfo is not None:
> path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612
> treeview.grab_focus()
> treeview.set_cursor( path, col, 0)
> self.taskpopup.popup( None, None, None, event.button, time)
> elif event.button == 1:
> x = int(event.x)
> y = int(event.y)
> time = event.time
> pthinfo = treeview.get_path_at_pos(x, y)
> print pthinfo
> if pthinfo is not None:
> path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612
> treeview.grab_focus()
> treeview.set_cursor( path, col, 0)
> tid = self.get_selected_task(self.task_tview)
> if tid :
> self.open_task(tid)
> return 1
>
> As I said, it's ugly.
>
> --
> Open task with simple clic
> https://bugs.launchpad.net/bugs/341871
> You received this bug notification because you are a member of Gtg
> developers, which is the registrant for gtg.
>
> Status in Getting Things Gnome!: New
>
> Bug description:
> It will be great to be able to open a task by simple clicking on it in the main view. This could be an option, perhaps using the nautilus comportment.
>
Hmm, we should try it first. I think if we do it we should be 100%
compatible with nautilus behaviour, to provide a consistent feeling
across the applications.
Besides that, the single click view has some issues (even in
nautilus): it is hard to select several resources without activating
them. That could be a problem when coupling this behaviour with the
Mark as done/Dismiss/Delete actions.
On Thu, Mar 12, 2009 at 8:42 PM, Pititjo <email address hidden> wrote: /browser. py on_on_task_ treeview_ button_ press_event method treeview_ button_ press_event( self,treeview, event) : get_path_ at_pos( x, y) grab_focus( ) set_cursor( path, col, 0) popup( None, None, None, event.button, time) get_path_ at_pos( x, y) grab_focus( ) set_cursor( path, col, 0) selected_ task(self. task_tview) /bugs.launchpad .net/bugs/ 341871
> This is very ugly but this modification of the
> GTG/taskbrowser
> allow to open a task with simple click :
>
> def on_task_
> if event.button == 3:
> x = int(event.x)
> y = int(event.y)
> time = event.time
> pthinfo = treeview.
> print pthinfo
> if pthinfo is not None:
> path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612
> treeview.
> treeview.
> self.taskpopup.
> elif event.button == 1:
> x = int(event.x)
> y = int(event.y)
> time = event.time
> pthinfo = treeview.
> print pthinfo
> if pthinfo is not None:
> path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612
> treeview.
> treeview.
> tid = self.get_
> if tid :
> self.open_task(tid)
> return 1
>
> As I said, it's ugly.
>
> --
> Open task with simple clic
> https:/
> You received this bug notification because you are a member of Gtg
> developers, which is the registrant for gtg.
>
> Status in Getting Things Gnome!: New
>
> Bug description:
> It will be great to be able to open a task by simple clicking on it in the main view. This could be an option, perhaps using the nautilus comportment.
>
--
Bertrand Rousseau
Place communale 1, 1450 Chastre, Belgium
e-mail : <email address hidden>
tel : +32 485 96 69 86