libgnomecanvas backed gnc_item_edit vs. GtkEntry

Derek Atkins warlord at MIT.EDU
Thu Dec 23 17:38:47 EST 2004


If making GncItemEdit backed by GtkEntry fixes the bug, does not
introduce new ones, and does not remove functionality, then yes, it
would be appropriate.  As for why it's using a GnomeCanvas -- I have
no idea.  I suspect it's because the GtkEntry at the time did not have
the flexibility to support the extensions that GnuCash wanted.  But I
don't know for sure.

-derek

Chris Shoemaker <c.shoemaker at cox.net> writes:

> I noticed that the g2 branch fails to indicate cursor position when
> typing in an account entry.  I also read the note about this in
> GNOME2_STATUS.  Looking at gnucash-item-edit.{ch}, or really
> src/register/register-gnome/* for that matter, I see that GncItemEdit
> (among other similar things) is backed by GnomeCanvasItem.  Obviously,
> this works.  But it seems pointlessly complex.
>
> I have no idea why the cursor doesn't show, but if GncItemEdit were
> backed by GtkEntry instead, I bet it would Just Work.  I know GtkEntry
> used to be pretty simple, so maybe that's why we needed to roll our
> own from a canvas?  But maybe GtkEntry in gtk+ v2 fits the bill.
>
> I'm still trying to understand the character of the G2 port, too.  I
> get the "fix bugs" goal (e.g. cursor won't show), but would making
> GncItemEdit backed by GtkEntry be in accord with the goals of the g2
> port?  I'm kinda walking in blind here, so someone let me know if I'm
> missing something.
>
> -chris
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list