~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

« back to all changes in this revision

Viewing changes to Tomboy/PrefsKeybinder.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-28 14:11:49 UTC
  • mfrom: (1.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100128141149-snoxliun1ta8x8d2
Tags: 1.1.1-0ubuntu1
* New upstream version
* debian/control.in:
  - build-depends on cdbs to get strip-schema installed
  - updated cli build-depends for the new binary changes
* debian/rules:
  - set gettext domain in the desktop entry and run strip-schema on build

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
        public class TomboyPrefsKeybinder : PrefsKeybinder
127
127
        {
128
128
                NoteManager manager;
129
 
                ITomboyTray  tray;
 
129
                ITomboyTray tray;
130
130
 
131
131
                public TomboyPrefsKeybinder (NoteManager manager, ITomboyTray tray)
132
132
                                : base ()
187
187
 
188
188
                void KeyOpenStartHere (object sender, EventArgs args)
189
189
                {
190
 
                        Note note = manager.FindByUri (NoteManager.StartNoteUri);
191
 
                        if (note != null)
192
 
                                note.Window.Present ();
 
190
                        manager.GtkInvoke (() => {
 
191
                                Note note = manager.FindByUri (NoteManager.StartNoteUri);
 
192
                                if (note != null)
 
193
                                        note.Window.Present ();
 
194
                        });
193
195
                }
194
196
 
195
197
                void KeyCreateNewNote (object sender, EventArgs args)
196
198
                {
197
199
                        try {
198
 
                                Note new_note = manager.Create ();
199
 
                                new_note.Window.Show ();
 
200
                                manager.GtkInvoke (() => {
 
201
                                        Note new_note = manager.Create ();
 
202
                                        new_note.Window.Show ();
 
203
                                });
200
204
                        } catch {
201
205
                                // Fail silently.
202
206
                        }
214
218
 
215
219
                void KeyOpenRecentChanges (object sender, EventArgs args)
216
220
                {
217
 
                        NoteRecentChanges recent = NoteRecentChanges.GetInstance (manager);
218
 
                        recent.Present ();
 
221
                        manager.GtkInvoke (() => {
 
222
                                NoteRecentChanges recent = NoteRecentChanges.GetInstance (manager);
 
223
                                recent.Present ();
 
224
                        });
219
225
                }
220
226
        }
221
227
}