Re: [GtkGLExt] Ubuntu Packages for gtkglext 3.0 available



Hi

> > One more note. The second patch consists of changes like the one
> > below.
> > 
> >> + * @attrib_list: (array zero-terminated=1): a list of
> >> attribute/value pairs.
> > 
> > I'm wondering if it couldn't happen that one of the attribute's
> > values is zero for a call to the annotated function, and the
> > binding code assumes, the array has already been terminated.
> > 
> When i created this patch, I got a segmentation fault without the
> zero-terminated=1 when I run my Python test script [attachment].
> But it seams it was a bug (maybe 674271 ? [2]) in pygobject 3.2.0 and
> fixed in 3.2.2, With the update meanwhile the segmentation fault is
> gone. So maybe this zero-terminated=1 should be removed.

Yes, but this certainly needs an API change.

int attrib[] = {
  GDK_GL_DOUBLEBUFFER, FALSE,
  GDK_GL_RED_SIZE, 8,
  GDK_GL_GREEN_SIZE, 8,
  GDK_GL_BLUE_SIZE, 8,
  0
};

FALSE is equal to 0, so the binding code will abort there and never
reach the RGB sizes. The only solution is to pass the array length as an
extra parameter to the C function.

If you don't have a better idea, I think we should do this and deprecate
the zero-termination completely.


> Btw, are you interested in Python examples in your git tree? They
> demonstrate the usage of g-i, as bindings like python-gtkglext1 are
> not needed any more.

I won't have the resources for maintaining the code, but I wouldn't mind
putting the sources of some small, self-contained examples into my tree
(e.g., into examples/python/).

Best regards
Thomas


> > Best regards Thomas
> > 
> > Am Sonntag, den 27.05.2012, 20:41 +0200 schrieb B. Clausius:
> >> Hi,
> >> 
> >> the packages are available in my PPA: 
> >> https://code.launchpad.net/~barcc/+archive/daily-build Built
> >> packages: gir1.2-gtkglext-3.0 OpenGL Extension to GTK+ -- gir
> >> bindings libgtkglext-3-0-tdz-bc OpenGL Extension to GTK+ (shared
> >> libraries) libgtkglext-3-0-tdz-bc-dbg OpenGL Extension to GTK+
> >> (debugging symbols) libgtkglext-3-tdz-bc-dev OpenGL Extension to
> >> GTK+ (development files) libgtkglext-3-tdz-bc-doc OpenGL
> >> Extension to GTK+ (documentation)
> >> 
> >> The packages are built from the Bazaar branch 
> >> https://code.launchpad.net/+branch/~barcc/pybik/gtkglext-tdz-bc 
> >> bzr branch lp:~barcc/pybik/gtkglext-tdz-bc which is based upon
> >> the branch by Thomas Zimmermann 
> >> git://github.com/tdz/gtkglext.git and contains besides the
> >> packaging files additional stuff that are not yet accepted in the
> >> git branch.
> >> 
> >> Please be aware that the packages are not well tested and may
> >> change unexpectedly at any time.
> >> 
> >> Best Regards, B. Clausius 
> >> _______________________________________________ gtkglext-list
> >> mailing list gtkglext-list gnome org 
> >> https://mail.gnome.org/mailman/listinfo/gtkglext-list
> > 
> > 
> > 
> > _______________________________________________ gtkglext-list
> > mailing list gtkglext-list gnome org 
> > https://mail.gnome.org/mailman/listinfo/gtkglext-list
> 
> [1] https://launchpad.net/pybik
> [2] https://bugzilla.gnome.org/show_bug.cgi?id=674271
> _______________________________________________
> gtkglext-list mailing list
> gtkglext-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtkglext-list

-- 
GnuPG:          http://tdz.users.sourceforge.net/tdz.asc
Fingerprint:    16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08

jsapigen - A free glue-code generator for Mozilla SpiderMonkey. See
http://jsapigen.sourceforge.net for more information.

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]