Merge lp:~gtg-user/gtg/bugfix-830971 into lp:~gtg/gtg/old-trunk
Proposed by
Alan Gomes Alvino
Status: | Rejected |
---|---|
Rejected by: | Izidor Matušov |
Proposed branch: | lp:~gtg-user/gtg/bugfix-830971 |
Merge into: | lp:~gtg/gtg/old-trunk |
Diff against target: |
32 lines (+21/-1) 1 file modified
GTG/gtk/editor/taskview.py (+21/-1) |
To merge this branch: | bzr merge lp:~gtg-user/gtg/bugfix-830971 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Izidor Matušov | Disapprove | ||
Bertrand Rousseau (community) | code, running | Needs Fixing | |
Review via email: mp+113497@code.launchpad.net |
Description of the change
What i do was before the paste on paste_clipboard method i see if the lines of the external paste has one dash at beginning(even if the beginning of line has spaces). If he was a dash at beginning of line i create a subtask.
To post a comment you must log in.
Unmerged revisions
- 1200. By Alan Gomes <email address hidden>
-
Solved bug
Is it necessary? We are already reworking the task editor, right? says.blogspot. com
Nimit Shah,
B Tech 4th year,
Computer Engineering Department,
SVNIT Surat
www.dude-
On Thu, Jul 5, 2012 at 12:39 PM, Alan Gomes Alvino <email address hidden>wrote:
> Alan Gomes Alvino has proposed merging lp:~gtg-user/gtg/bugfix-830971 into /bugs.launchpad .net/gtg/ +bug/830971 /code.launchpad .net/~gtg- user/gtg/ bugfix- 830971/ +merge/ 113497 /code.launchpad .net/~gtg- user/gtg/ bugfix- 830971/ +merge/ 113497 editor/ taskview. py' editor/ taskview. py 2012-05-20 19:05:20 +0000 editor/ taskview. py 2012-07-05 07:08:28 +0000 emission( "paste_ clipboard" ) for_text( ) text.split( '\n'): emission( "paste_ clipboard" ) subtask_ callback( line_without_ dash) get_insert( ) get_iter_ at_mark( mark).get_ line() insert_ at_cursor( "\n") subtask( self.buff, line_nbr, anchor) clear() _______ _______ _______ _______ _______ _____ /launchpad. net/~gtg- user /launchpad. net/~gtg- user /help.launchpad .net/ListHelp
> lp:gtg.
>
> Requested reviews:
> Gtg developers (gtg)
> Related bugs:
> Bug #830971 in Getting Things GNOME!: "Importing dashed lines should
> create subtasks immediately"
> https:/
>
> For more details, see:
> https:/
>
> What i do was before the paste on paste_clipboard method i see if the
> lines of the external paste has one dash at beginning(even if the beginning
> of line has spaces). If he was a dash at beginning of line i create a
> subtask.
> --
> https:/
> Your team Gtg users is subscribed to branch lp:~gtg-user/gtg/bugfix-830971.
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/
> +++ GTG/gtk/
> @@ -1089,7 +1089,27 @@
> self.stop_
>
> else:
> - #we keep the normal pasting by not interupting the signal
> + #Get the text of the external clipboard
> + clipboard_text = clip.wait_
> +
> + #Separate the text in lines
> + for line_strip in clipboard_
> + #Remove whitespaces at begining of line
> + line = line_strip.lstrip(' ')
> + #If line contain a task
> + if len(line) > 0 and line[0] == '-':
> + #we handle ourselves the pasting
> + self.stop_
> + #Removing dash
> + line_without_dash = line[1:]
> + anchor = self.new_
> + mark = self.buff.
> + line_nbr = self.buff.
> + #we must paste the \n before inserting the subtask
> + #else, we will start another subtask
> + self.buff.
> + self.write_
> +
> self.clipboard.
>
> #Function called each time the user inputs a letter
>
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
>