Re: patch for #4293

From: Dom Lachowicz <domlachowicz_at_yahoo.com>
Date: Tue Sep 14 2004 - 21:08:45 CEST

Some questions about this patch:

1) Why use len instead of sizeof(buf) - 1?

2) Why use sprintf() instead of g_snprintf()?
2.a) Why use sprintf() when you're actually just doing
a strcpy()?

3) Why did you put the asterisk ("*") before the
title? Every other app always has it after the title.

4) Does UT_basename() return a pointer within the
szName buffer, a UT_UTF8String object, or
newly-allocated memory? If the latter, it needs to be
free'd. If either of the former, use the UT_UTF8String
copy constructor.

Dom

--- Robert Staudinger <robsta@stereolyzer.net> wrote:

> Hello,
>
> the attached patch fixes #4293 "title of window
> should be just filename,
> not full path".
>
> The only remaining thing is that
> XAP_STRING_ID_UntitledDocument should
> be "Untitled Document" instead of just "Untitled".
> Didn't find it until
> now.
>
> Rob
>

> ATTACHMENT part 2 application/octet-stream
name=bug#4293.diff

                
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Received on Tue Sep 14 21:08:52 2004

This archive was generated by hypermail 2.1.8 : Tue Sep 14 2004 - 21:08:52 CEST