[tomboy-list] OnTheFly Addin
Douglas V. Johnston
dvj at cs.stanford.edu
Sat Nov 29 10:42:28 PST 2008
Hi Arun,
You might want to compare this to the WikiMarkup Addin:
http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/2006-November/000008.html
which can be found in updated form here:
http://bugzilla.gnome.org/show_bug.cgi?id=380633
While I believe functions in a very similar manner, and might give
some hints to your problems.
Best,
Doug
On Sat, Nov 29, 2008 at 10:41 AM, Doug Johnston <doug.johnston at gmail.com> wrote:
> Hi Arun,
>
> You might want to compare this to the WikiMarkup Addin:
> http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/2006-November/000008.html
>
> which can be found in updated form here:
> http://bugzilla.gnome.org/show_bug.cgi?id=380633
>
> While I believe functions in a very similar manner, and might give
> some hints to your problems.
>
> Best,
> Doug
>
>
> On Sat, Nov 29, 2008 at 5:01 AM, Arun Chaganty <arunchaganty at gmail.com> wrote:
>> Hey,
>> I wrote a Tomboy Addin to add formatting on the fly to notes, so on typing
>> *bold*, it will automatically be converted to <bold>bold</bold>. I know it isn't
>> a terrible effort to just select the text and use <Ctrl-b>, however, I find it
>> more convinient to just type it out. I also hope someone else finds it useful
>> too.
>>
>> Project Page: http://arun.chagantys.org/projects/OnTheFly/
>>
>> I have a few questions though. When my plugin changes the *bold* to bold, it has
>> to remove the identifers ('*'). I do this with Buffer.Delete (ref TextIter
>> start, ref TextIter end), and in my Addin, I only have 2 TextIters. It still
>> throws quite a few warning messages, which I'm guessing come from various other
>> parts of Tomboy. What should I do about it?
>>
>> Warning Message:
>> (Tomboy:14778): Gtk-WARNING **: Invalid text buffer iterator: either
>> the iterator is uninitialized, or the characters/pixbufs/widgets in
>> the buffer have been modified since the iterator was created.
>> You must use marks, character numbers, or line numbers to preserve a
>> position across buffer modifications.
>> You can apply tags and insert marks without invalidating your iterators,
>> but any mutation that affects 'indexable' buffer contents (contents
>> that can be referred to by character offset)
>> will invalidate all outstanding iterators
>>
>> --
>> Arun Tejasvi Chaganty
>> http://arun.chagantys.org/
>> _______________________________________________
>> Tomboy-list mailing list
>> Tomboy-list at lists.beatniksoftware.com
>> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>>
>
More information about the Tomboy-list
mailing list