Re: Streamlining e-text.c & e-cell-text.c

"Mayank Jain" <[email protected]>
Newsgroups gmane.comp.gnome.evolution.devel
Message-ID <ba1273b90607100512g42753395m45baa2f33d72f2f4__29878.5171159127$1152702055$gmane$org@mail.gmail.com>
I've tried making the new implementation of layout_with_preedit
(widgets/table/e-cell-text.c)

The new code - http://makuchaku.pastebin.ca/84013
Old code - http://makuchaku.pastebin.ca/84015

It builds fine & works as expected (i did a brief testing).

I would request the calendar developers to kindly review the code & comment.

Thanks,
Makuchaku

On 7/10/06, Mayank Jain <[email protected]> wrote:
> Hi,
>
> I was looking at Evolution's code, when I saw that
> insert_preedit_text() in e-text.c (widgets/text/e-text.c) and
> layout_with_preedit in e-cell-text.c (widgets/table/e-cell-text.c) so
> almost the same thing : fetch the preedit string, add it to the
> current cursor location & update the layout.
>
> But they both do the same thing, but do it differently. Was this on
> some purpose or that the implementations gradually changed over a
> period of time?
>
> IMHO, they can be programmed in the same way (though their in/out
> params can be what they are). This will aid bugfixing.
>
> Open to comments...
>
> Makuchaku
> http://makuchaku.info
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.