On Wed, Apr 28, 2004 at 10:16:21AM -0700, Raghu Ram Murthy wrote: > Hi all, > > textbox widget doesn't have PG_WP_FONT property. I > added this and tried with some UTF-8 characters. I > found a small bug in pgstr_utf8_seek function in > gcore/pgstring.c file.
How did you implement PG_WP_FONT? The textbox was designed with formatted text in mind, so a single font property wasn't added, but it would be helpful to have one that sets the default font. I'd probably accept a patch for this if you have one :) > > In the follwing block of code, in the else part, > str->num_bytes should be there, rather than > str->num_chars, becuase pgstring_iterator.offset is > byte offset, not character offset. > > case PGSEEK_END: > if (str->num_chars < 1) > p->offset = 0; > else > /* p->offset = str->num_chars - 1; */ > p->offset = str->num_bytes - 1; > > break; Thanks for catching this, I just committed the fix to svn. --Micah -- Only you can prevent creeping featurism! ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
