~ubuntu-branches/ubuntu/saucy/tomboy/saucy

« back to all changes in this revision

Viewing changes to Tomboy/Watchers.cs

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-06-09 19:50:26 UTC
  • mfrom: (1.5.19)
  • Revision ID: package-import@ubuntu.com-20130609195026-e6u7c3nonn594cl4
Tags: 1.15.2-1ubuntu1
* Rebase on Debian experimental, remaining changes
  + Ubuntu patches:
    - Add app indicator support
    - Update libproxy DLLmap for libproxy.so.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
 
182
182
                void ShowNameClashError (string title)
183
183
                {
184
 
                        // Select text from TitleStart to TitleEnd
185
 
                        Buffer.MoveMark (Buffer.SelectionBound, TitleStart);
186
 
                        Buffer.MoveMark (Buffer.InsertMark, TitleEnd);
187
184
 
188
185
                        string message =
189
186
                                String.Format (Catalog.GetString ("A note with the title " +
242
239
                                        gtkspell_detach (test_ptr);
243
240
                                return true;
244
241
                        } catch {
245
 
                        return false;
246
 
                }
247
 
        }
 
242
                                return false;
 
243
                        }
 
244
                }
248
245
 
249
 
        public static bool GtkSpellAvailable
250
 
        {
251
 
                get {
252
 
                        if (!gtkspell_available_tested) {
 
246
                public static bool GtkSpellAvailable
 
247
                {
 
248
                        get {
 
249
                                if (!gtkspell_available_tested) {
253
250
                                        gtkspell_available_result = DetectGtkSpellAvailable ();
254
251
                                        gtkspell_available_tested = true;
255
252
                                }
266
263
 
267
264
                public override void Initialize ()
268
265
                {
269
 
                        // Do nothing.
 
266
                        Manager.NoteDeleted += OnNoteDeleted;
270
267
                }
271
268
 
272
269
                public override void Shutdown ()
273
270
                {
274
 
                        // Do nothing.
 
271
                        Manager.NoteDeleted -= OnNoteDeleted;
275
272
                }
276
273
 
277
274
                public override void OnNoteOpened ()
283
280
                        }
284
281
                }
285
282
 
 
283
                // Stop listening for spellchecking enable/disable on delete (fixes bug #655067)
 
284
                void OnNoteDeleted (object sender, Note deleted)
 
285
                {
 
286
                        if (deleted == this.Note)
 
287
                                Preferences.SettingChanged -= OnEnableSpellcheckChanged;
 
288
                }
 
289
 
286
290
                void Attach ()
287
291
                {
288
292
                        // Make sure we add this tag before attaching, so