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 328912 - misc fixes
misc fixes
Status: RESOLVED FIXED
Product: gucharmap
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Behnam Esfahbod
gucharmap maintainers
Depends on: 326272
Blocks:
 
 
Reported: 2006-01-27 23:38 UTC by Christian Persch
Modified: 2006-02-12 00:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the patch (18.49 KB, patch)
2006-01-27 23:39 UTC, Christian Persch
none Details | Review
updated patch (22.80 KB, patch)
2006-02-11 22:59 UTC, Christian Persch
none Details | Review

Description Christian Persch 2006-01-27 23:38:52 UTC
Attached patch
- make gucharmap use goption argument parsing (no more popt!)
- updates configure accordingly, and also modernises it a bit
- removes gucharmap-intl.[ch], replaced by simple <glib/gi18n.h> includes,
and fixes the strange gettext initialisation
- fixes make dist when you didn't configure with gnome enabled
Comment 1 Christian Persch 2006-01-27 23:39:07 UTC
Created attachment 58238 [details] [review]
the patch
Comment 2 Behdad Esfahbod 2006-01-27 23:58:50 UTC
Impressive!

About the gettext stuff, I was making this change myself, but change mind.  gucharmap provides a library too.  Does simply using gettext work if there are translated strings in the library?
Comment 3 Christian Persch 2006-01-30 13:16:41 UTC
Hmmm... I didn't take the library into account, that complicates the gettext thing. Is there a central entry point into the library that all users will have to call first, "gucharmap_init()" ?
Comment 4 Behdad Esfahbod 2006-01-30 20:05:38 UTC
No, note one that I can see.  It's just a widget you use...
Comment 5 Behdad Esfahbod 2006-01-30 20:34:25 UTC
Now that you've got these changes for gucharmap, can you take a look at dasher too, if you have some time?  It can use the GOption transition...  Thanks.
Comment 6 Christian Persch 2006-01-30 20:45:20 UTC
All public headers are for widgets, except gucharmap-unicode-info... we could add a ensure_gettext_inited() in the class inits, but that won't work for unicode-info....

Maybe just take the other bits and leave out all the gettext changes?
Comment 7 Behdad Esfahbod 2006-01-30 20:52:20 UTC
There are only two functions in the unicode-info stuff that use translations... We can ensure there too...  But that makes me wonder, is it worth it?  Guess not.  I'll leave out the gettext change and commit the rest.
Comment 8 Behdad Esfahbod 2006-01-30 20:54:11 UTC
I'm also changing the name from "GNOME Unicode Character Map" to simply "GNOME Character Map".  Behnam, where are the other places we need to make this change to comply with the HIG?
Comment 9 Behdad Esfahbod 2006-01-30 21:02:14 UTC
Humm, I'm getting a bit confused about which changes in main.c should remain and which should go.  Can you attach an updated patch please?
Comment 10 Behnam Esfahbod 2006-02-04 04:08:11 UTC
I'm not pro in libtools, but please don't use "Unicode" in the application description.  Just use "GNOME Character Map".  Also use "Gucharmap" in title-case for the application name.

BTW, Behdad:  I get a warning message for the second argument of that function in gucharmap-intl.h.
Comment 11 Behnam Esfahbod 2006-02-04 14:13:24 UTC
The patch merge to the patch to "Bug 326272 – Help/About dialog isn't HIG compliant": Attachment #58702 [details]
Comment 12 Behdad Esfahbod 2006-02-09 19:55:04 UTC
No, do not merge patches.
Comment 13 Christian Persch 2006-02-11 22:59:30 UTC
Created attachment 59155 [details] [review]
updated patch

ensure gettext initialisation in the library where used.
Comment 14 Behdad Esfahbod 2006-02-12 00:07:52 UTC
Thanks a lot.

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

        Bug 328912 – misc fixes
        Patch from Christian Persch

        * autogen.sh, configure.ac, Makefile.am: Modernize the build system.

        * gucharmap/*.c: gucharmap_intl_ensure_initialized () in every
        library entry point.  Use gi18n-lib.h instead of custom gettext.

        * gucharmap/main.c: Use GOption instead of popt.