GTG

Comment 3 for bug 341871

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote : Re: [Bug 341871] Re: Open task with simple clic

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.
>

--
Bertrand Rousseau
Place communale 1, 1450 Chastre, Belgium
e-mail : <email address hidden>
tel : +32 485 96 69 86