Merge lp:~er-abhinav-upadhyay/ubuntu/natty/tomboy/patch-757635 into lp:ubuntu/natty/tomboy

Proposed by Abhinav Upadhyay
Status: Approved
Approved by: Martin Pitt
Approved revision: 77
Proposed branch: lp:~er-abhinav-upadhyay/ubuntu/natty/tomboy/patch-757635
Merge into: lp:ubuntu/natty/tomboy
Diff against target: 83 lines (+57/-0) (has conflicts)
3 files modified
debian/changelog (+13/-0)
debian/patches/31_prevent_inadvertent_deletion_of_notes.patch (+43/-0)
debian/patches/series (+1/-0)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~er-abhinav-upadhyay/ubuntu/natty/tomboy/patch-757635
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Stefan Bader (community) Approve
Review via email: mp+58303@code.launchpad.net

Description of the change

I have also send this patch upstream but it may take sometime for them to review and merge it. Meanwhile I propose to include this patch as part of debian/patches (Given it fixes the problem without causing any other problems).

I tested it on my system, the problem seemed to have been resolved.

To post a comment you must log in.
75. By Abhinav Upadhyay

Renamed debian/patches/21_prevent_inadvertent_deletion_of_notes.patch to 31_prevent_inadvertent_deletion_of_notes.patch and made some formatting changes in the patch

76. By Abhinav Upadhyay

Updated debian/changelog to reflect the renamed patch fiel

Revision history for this message
Stefan Bader (smb) wrote :

Changes look good to me now.

review: Approve
77. By Abhinav Upadhyay

Fixed a small problem of re-enabling the delete option when focus moves out of the search box by adding a FocusOut event handler.

Revision history for this message
Martin Pitt (pitti) wrote :

I can't directly merge this as it is using the wrong branch. I got the patch and applied it to the right branch (http://bazaar.launchpad.net/~ubuntu-desktop/tomboy/ubuntu). Thanks!

Closing manually.

review: Approve

Unmerged revisions

77. By Abhinav Upadhyay

Fixed a small problem of re-enabling the delete option when focus moves out of the search box by adding a FocusOut event handler.

76. By Abhinav Upadhyay

Updated debian/changelog to reflect the renamed patch fiel

75. By Abhinav Upadhyay

Renamed debian/patches/21_prevent_inadvertent_deletion_of_notes.patch to 31_prevent_inadvertent_deletion_of_notes.patch and made some formatting changes in the patch

74. By Abhinav Upadhyay

Updated dch

73. By Abhinav Upadhyay

Added meta information to the patch 21_prevent_inadvertent_deletion_of_notes.patch

72. By Abhinav Upadhyay

* debian/patches/21_prevent_inadvertent_deletion_of_notes.patch:
  - Tomboy/RecentChanges.cs: Added code for handling FocusInEvent of the search
    combo box, it disables the "Delete" option in the menu bar when the focus is
    is in the search box, which prevents deletion of notes on hitting the delete
    key. (LP: #757635)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-04-10 09:53:30 +0000
3+++ debian/changelog 2011-04-20 09:38:24 +0000
4@@ -1,9 +1,22 @@
5+<<<<<<< TREE
6 tomboy (1.6.0-0ubuntu2) natty; urgency=low
7
8 * Don't show templates in the indicator (LP: #664963)
9
10 -- Greg Auger <gregory.auger@googlemail.com> Sun, 10 Apr 2011 09:53:30 +0100
11
12+=======
13+tomboy (1.6.0-0ubuntu2) natty; urgency=low
14+
15+ * debian/patches/31_prevent_inadvertent_deletion_of_notes.patch:
16+ - Tomboy/RecentChanges.cs: Added code for handling FocusInEvent of the search
17+ combo box, it disables the "Delete" option in the menu bar when the focus is
18+ is in the search box, which prevents deletion of notes on hitting the delete
19+ key. (LP: #757635)
20+
21+ -- Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com> Tue, 19 Apr 2011 19:56:59 +0530
22+
23+>>>>>>> MERGE-SOURCE
24 tomboy (1.6.0-0ubuntu1) natty; urgency=low
25
26 [ Rodrigo Moya ]
27
28=== added file 'debian/patches/31_prevent_inadvertent_deletion_of_notes.patch'
29--- debian/patches/31_prevent_inadvertent_deletion_of_notes.patch 1970-01-01 00:00:00 +0000
30+++ debian/patches/31_prevent_inadvertent_deletion_of_notes.patch 2011-04-20 09:38:24 +0000
31@@ -0,0 +1,43 @@
32+Description: Prevents accidental deletion of notes in case user hits the
33+ delete key when the focus is in the search box.
34+Author: Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
35+Bug-Ubuntu: https://launchpad.net/bugs/757635
36+Bug: https://bugzilla.gnome.org/647462
37+Forwarded: yes
38+Index: new-bugfix-757635/Tomboy/RecentChanges.cs
39+===================================================================
40+--- new-bugfix-757635.orig/Tomboy/RecentChanges.cs 2011-04-20 14:56:23.273566997 +0530
41++++ new-bugfix-757635/Tomboy/RecentChanges.cs 2011-04-20 14:59:30.585566999 +0530
42+@@ -103,6 +103,8 @@
43+ find_combo.Changed += OnEntryChanged;
44+ find_combo.Entry.ActivatesDefault = false;
45+ find_combo.Entry.Activated += OnEntryActivated;
46++ find_combo.Entry.FocusInEvent += OnSearchBoxFocused;
47++ find_combo.Entry.FocusOutEvent += OnSearchBoxFocusedOut;
48+ if (previous_searches != null) {
49+ foreach (string prev in previous_searches) {
50+ find_combo.AppendText (prev);
51+@@ -1174,7 +1176,22 @@
52+ PerformSearch ();
53+ AddToPreviousSearches (SearchText);
54+ }
55+-
56++
57++ // called when the user moves the focus in the search combo box
58++ void OnSearchBoxFocused (object sender, EventArgs args)
59++ {
60++ // disable the Delete Note option in the menu bar (bug #647462)
61++ Tomboy.ActionManager ["DeleteNoteAction"].Sensitive = false;
62++ }
63++
64++ // called when the focus moves out of the search combo box.
65++ void OnSearchBoxFocusedOut (object sender, EventArgs args)
66++ {
67++ // Enable the Delete Note option in the menu bar, which might have been
68++ // disabled in case the focus was in the search combo box perviously.
69++ Tomboy.ActionManager ["DeleteNoteAction"].Sensitive = true;
70++ }
71++
72+ void AddToPreviousSearches (string text)
73+ {
74+ // Update previous searches, by adding a new term to the
75
76=== modified file 'debian/patches/series'
77--- debian/patches/series 2010-10-29 01:50:04 +0000
78+++ debian/patches/series 2011-04-20 09:38:24 +0000
79@@ -7,3 +7,4 @@
80 11_lpi.patch
81 20_remove_pcfile_requires
82 30_fix_manpage_syntax
83+31_prevent_inadvertent_deletion_of_notes.patch

Subscribers

People subscribed via source and target branches