After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 326272 - Help/About dialog isn't HIG compliant
Help/About dialog isn't HIG compliant
Status: RESOLVED FIXED
Product: gucharmap
Classification: Core
Component: general
1.5.x
Other All
: Normal trivial
: ---
Assigned To: Behnam Esfahbod
gucharmap maintainers
Depends on:
Blocks: 328775 328912
 
 
Reported: 2006-01-09 05:29 UTC by petrosyan
Modified: 2006-02-13 21:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
patch to clean up Help/About dialog (16.20 KB, patch)
2006-02-04 03:01 UTC, Behnam Esfahbod
none Details | Review
old patch, plus chpe's patch to Bug 328912 – misc fixes (25.59 KB, patch)
2006-02-04 14:07 UTC, Behnam Esfahbod
none Details | Review
old patch, in lib files, changed <glib/gi18n.h> to <glib/gi18n-lib.h>. (31.78 KB, patch)
2006-02-04 19:31 UTC, Behnam Esfahbod
rejected Details | Review
patch for source files. (7.27 KB, patch)
2006-02-13 14:47 UTC, Behnam Esfahbod
committed Details | Review
patch for the generated header files. (4.60 KB, patch)
2006-02-13 14:48 UTC, Behnam Esfahbod
committed Details | Review

Description petrosyan 2006-01-09 05:29:18 UTC
Please describe the problem:
"gucharmap" should be replace with "Character Map" in the Help/About dialog

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Behdad Esfahbod 2006-01-09 13:41:24 UTC
Good point.  Behnam?
Comment 2 Behnam Esfahbod 2006-01-27 00:08:47 UTC
http://www.unicode.org/copyright.html#Exhibit1:
"""Except as contained in this notice, the name of a copyright holder shall not
be used in advertising or otherwise to promote the sale, use or other dealings
in these Data Files or Software without prior written authorization of the
copyright holder."""

I think we MOST remove the "Unicode" character from the product name, and just
use it in the info.  As the program has a binary named "gnome-character-map", I
suggest changing the title to "Gnome Character Map".
Comment 3 petrosyan 2006-02-02 00:50:53 UTC
According to GNOME HIG
http://developer.gnome.org/projects/gup/hig/2.0/menus-standard.html#menu-standard-help
Help/About dialog should contain "... a pointer to the licence under which the
application is made available."
gucharmap application doesn't provide such a pointer.
gnome-dictionary for example provides such a pointer in its Help/About dialog
Comment 4 Behnam Esfahbod 2006-02-02 12:27:42 UTC
Petrosyan, yes, we discussed it at bug #328775 – Adding Unicode's copyright info – and I'm going to add the "Licence" button, etc to the About dialog.

Looking around, I found that the title in the About dialog is same as Product name in the bugzilla (that's cvs module name in some way).  It really makes sense.  I think we HAVE TO let it be "gucharmap x.y.z" (or just change it to title case) and change the description to "GNOME Character Map \n Based on Unicode Character Database 4.1".

I'm going to patch these today, to get them in 1.6 release.
Comment 5 Behnam Esfahbod 2006-02-02 13:37:49 UTC
FYI: http://live.gnome.org/ModuleMaintenanceWorkspaces
Comment 6 Behnam Esfahbod 2006-02-04 03:01:26 UTC
Created attachment 58684 [details] [review]
patch to clean up Help/About dialog

+++ gucharmap/Makefile.am, adds unicode-version.h.

+++ gucharmap/gen-guch-unicode-tables.pl, adds generate_unicode_version, adds #ifndef/#define/#endif to generated header files.

+++ gucharmap/gucharmap-unicode-info.c
+++ gucharmap/gucharmap-unicode-info.h, adds gucharmap_get_unicode_version().

+++ gucharmap/gucharmap-window.c, Help/About dialog: corrects name and comment; adds Unicode Copyright, link to l.g.o/Gucharmap, and License button; puts human-readable content of GPL and Unicode Copyright on the License dialog,

+++ gucharmap/unicode-blocks.h,
+++ gucharmap/unicode-categories.h,
+++ gucharmap/unicode-names.h,
+++ gucharmap/unicode-nameslist.h,
+++ gucharmap/unicode-scripts.h,
+++ gucharmap/unicode-unihan.h, #ifndef/#define/#endif added.
+++ gucharmap/unicode-version.h new generated file, current version is 4.1.0.

behdad, would you take a look asap and let me know your opinion?
Comment 7 Behnam Esfahbod 2006-02-04 14:07:35 UTC
Created attachment 58702 [details] [review]
old patch, plus chpe's patch to Bug 328912 – misc fixes

there's many common files in these two patches, so i merged them.  now gucharmap needs (almost) cvs version of libgnome and libbonobo to get compiled.
Comment 8 Behnam Esfahbod 2006-02-04 19:31:58 UTC
Created attachment 58712 [details] [review]
old patch, in lib files, changed <glib/gi18n.h> to <glib/gi18n-lib.h>.

ok, it's complete at last.  behdad, any opinion?  are you ok with the copyright and license issues?
Comment 9 Behdad Esfahbod 2006-02-09 19:54:21 UTC
Split it into separate patches.  There's no way for me to review this huge patch.  the unicode version should be ifdef'ed, not static const.

+G_CONST_RETURN gchar *
+gucharmap_get_unicode_version ()
+{
+  return _(unicode_version);
+}

What the heck is _() doing here?

+    N_("Gucharmap is free software; you can redistribute it and/or modify \n"
+       "it under the terms of the GNU General Public License as published by \n"
+       "the Free Software Foundation; either version 2 of the License, or \n"

The spaces before \n should be removed.

And ChangeLog entries are title-cased.  You have duplicate entries in ChangeLog too...

As I said, I cannot review this.  4 or 5 separate patches please.
Comment 10 Behnam Esfahbod 2006-02-11 21:50:31 UTC
(In reply to comment #9)
> the unicode version should be ifdef'ed, not static const.
> 
> +G_CONST_RETURN gchar *
> +gucharmap_get_unicode_version ()
> +{
> +  return _(unicode_version);
> +}
> 
> What the heck is _() doing here?

gucharmap_get_unicode_version() returns a translated string of the unicode version.  It's needed for the About dialog.  If you have better idea about translating numbers in strings, change it.  Also we can add a #define for unicode version for preprocess needs, but it's useless till we support more than one unicode version.

> 
> +    N_("Gucharmap is free software; you can redistribute it and/or modify \n"
> +       "it under the terms of the GNU General Public License as published by
> \n"
> +       "the Free Software Foundation; either version 2 of the License, or \n"
> 
> The spaces before \n should be removed.

I looked at nautilus.  I'm not sure if copying a multi-line text to a single-line entry, always convert 'newline's to 'space's.

> 
> And ChangeLog entries are title-cased.  You have duplicate entries in ChangeLog
> too...

OK, I'll correct it.

> 
> As I said, I cannot review this.  4 or 5 separate patches please.
> 

More than half of the patch is for generated unicode-*.h files.  You can ignore them at all.  Also you can review chpe's patch first, and then look at this.  Thanks, BTW.
Comment 11 Behdad Esfahbod 2006-02-11 22:05:35 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > the unicode version should be ifdef'ed, not static const.
> > 
> > +G_CONST_RETURN gchar *
> > +gucharmap_get_unicode_version ()
> > +{
> > +  return _(unicode_version);
> > +}
> > 
> > What the heck is _() doing here?
> 
> gucharmap_get_unicode_version() returns a translated string of the unicode
> version.  It's needed for the About dialog.  If you have better idea about
> translating numbers in strings, change it.  Also we can add a #define for
> unicode version for preprocess needs, but it's useless till we support more
> than one unicode version.

I'm not sure the Unicode version should be translated.  No, let it be in Latin.  It's not a number, it's a version string.

> > +    N_("Gucharmap is free software; you can redistribute it and/or modify \n"
> > +       "it under the terms of the GNU General Public License as published by
> > \n"
> > +       "the Free Software Foundation; either version 2 of the License, or \n"
> > 
> > The spaces before \n should be removed.
> 
> I looked at nautilus.  I'm not sure if copying a multi-line text to a
> single-line entry, always convert 'newline's to 'space's.

Either test it and make sure (I'm pretty sure Pango and Gtk+ do the right thing), or remove the '\n's.

> > As I said, I cannot review this.  4 or 5 separate patches please.
> 
> More than half of the patch is for generated unicode-*.h files.  You can ignore
> them at all.

Ok, then put them in a separate patch such that I know.  But I do want to check them too.  Just that the level of attention to details needed to check them varies.

> Also you can review chpe's patch first, and then look at this. 
> Thanks, BTW.

I have reviewed chpe's patch, and it needed work.  Now you have mashed that into a huge patch.  Please submit a reworked version of his patch in his bug, and if you like, submit incremental patches based on that here.

AFAIU, you simply replaced gi18n.h with gi18n-lib.h in his patch.  That doesn't work, since we have no place to initalize gettext.  One way to do this is to do it in the class initialization and simply use _() and gi18n-lib.h in files that implement the class, and use Noah's currect workaround in the single file that uses _() but isn't implementation of the class.
Comment 12 Christian Persch 2006-02-11 22:13:29 UTC
Btw, you can remove the \n's if/when you depend on gtk 2.8, and use 'wrap-license' = TRUE for the about dialogue.
Comment 13 Behnam Esfahbod 2006-02-13 14:47:09 UTC
Created attachment 59260 [details] [review]
patch for source files.
Comment 14 Behnam Esfahbod 2006-02-13 14:48:09 UTC
Created attachment 59261 [details] [review]
patch for the generated header files.
Comment 15 Behdad Esfahbod 2006-02-13 21:42:55 UTC
Committed after s/Unicode data/Unicode data files/

2006-02-13  Behdad Esfahbod  <behdad@gnome.org>

        Bug 326272 – Help/About dialog isn't HIG compliant
        Patch from Behnam "ZWNJ" Esfahbod

        * gucharmap/gucharmap-window.c (help_about): Use "GNOME Character Map"
        instead of "gucharmap".  Add license information.

        * gucharmap/gen-guch-unicode-tables.pl:
        * gucharmap/unicode-blocks.h:
        * gucharmap/unicode-categories.h:
        * gucharmap/unicode-names.h:
        * gucharmap/unicode-nameslist.h:
        * gucharmap/unicode-scripts.h:
        * gucharmap/unicode-unihan.h: Guard headers from multiple inclusion.