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 328314 - Examples should use GOption instead of argcontext.c
Examples should use GOption instead of argcontext.c
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other All
: Low enhancement
: Small fix
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2006-01-23 16:29 UTC by Behdad Esfahbod
Modified: 2006-01-30 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch generated to CVS HEAD of pango/examples with cvs diff -up (8.28 KB, patch)
2006-01-30 22:27 UTC, Antoine Dopffer
committed Details | Review

Description Behdad Esfahbod 2006-01-23 16:29:46 UTC
Examples should use GOption for parsing cmd-line parameters instead of homegrown argcontext.[ch].
Comment 1 Antoine Dopffer 2006-01-30 22:27:26 UTC
Created attachment 58429 [details] [review]
Patch generated to CVS HEAD of pango/examples with cvs diff -up 

Hello,
This patch is to use GOption instead of argcontext.c.
The changes are only in renderdemo.c.

The files argcontext.c and argcontext.h are not useful anymore but the patch doesn't delete them.
I am not quite sur about the changes made in Makefile.am.

Hope this can help.

PS: By the way, In can't compile cairosimple.c.
I have got the error "cairosimple.c:81: attention : implicit declaration of function ‘cairo_surface_write_to_png’"
Comment 2 Behdad Esfahbod 2006-01-30 23:17:38 UTC
Thanks.  Committed after some cleanup.  As for the cairosimple error, you need to recompile your cairo with PNG support enabled.

2006-01-30  Behdad Esfahbod  <behdad@gnome.org>

        Bug 328314 – Examples should use GOption instead of argcontext.c
        Patch from Antoine Dopffer.

        * examples/renderdemo.c: Use GOption for parsing cmd-line
        options.

        * examples/renderdemo.c, examples/renderdemo.h: Removed.