-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 06.06.2012 19:19, schrieb Thomas Zimmermann: > Hi, > > Thanks for the patches! I took the filename fix and the Python > example. Is there a way to try out the example without having to > install GtkGLExt? > You can set the typelib-searchpath with export GI_TYPELIB_PATH=./gdk:./gtk and you have to modify the shared library search path. And you need the allow-none-for-share_list patch, I had forgotten in the last mail.
> For the third patch see below. > > ... > > 'For reference types, zero-terminated arrays are the easiest to > work with. Arrays of primitive type such as "int" will require > length metadata.' > > Meanwhile I made some changes to make the GLConfig functions > require the number of entries in the attribute array. You can find > the patches attached; in case you want to have a look at them. The > first two patches are target-specific, the third patch modifies the > public interface. > > Best regards Thomas > OK, I attached patches that add the array annotations to them. Best regards, BC -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJP0j9DAAoJEEDg0A3D0GN4zsEQAMuizX6l6bQ3+gdtyTUf8JBl sZD4/PbrX2I4exnP53TxODO6b/bCHDtkiGHy88jeASDYi3gRnOYyUP4Q5T70pmJ4 8sE9BUXsLerODYFlH0x0+vR8gdyIoFekYitdLMZqzIjhwMOnkkXJhNBP96EEMThA xTh7U0/o++qsFad5CIvcF6O7+AZ1L4GkzkFB9FRsWx7rqoZcQGfe5IhH4/V4WiSp Sr//+mGjq1vl0O0G6cjG/tma6SbxqR4+l9F/URzkFAqG1Z7b4zyFTVohuCoeU32J DXcoYF62gkj/Dk2c3muMsGnbrC7GHzeIjhvLd1FwqSiL89erGJo040FvfSRKCttA WPsK6hhcyfWxorRLayz3FDEQACmCPz0v7xFq3fbfMSb4vk8yGpbH/g3umLyG51Yc rD9TeXerFsQjUbagbTUt8vNbRsbj8/xyRRZBbDdXBtC1cxfX4nkPxDuqIEfGgAFY IfDO3QsmTeXtGLYwOTwtAIn4zboGRZsnewRlWjLQDoNYI1oKMIDoFn0UVKhOfYv1 wj0gd1XXFn870RYmi1ewjWp1QE0lIKUC9bwz3Ua1ciVRJhgXbzqdIX9eoMMqHp6z r7mtYoL6oyJIIN3nzLV4ZS4BSYBC/rx6M6JplDKnIhDMqznRFFGph7cmM2tiyd/j h4vhUGQ+6Dq90TYrg8tW =ESz1 -----END PGP SIGNATURE-----
>From 4f7ef313824954a0b43c002e73c80f136f31ab2f Mon Sep 17 00:00:00 2001 From: "B. Clausius" <[email protected]> Date: Fri, 8 Jun 2012 11:54:08 +0200 Subject: [PATCH] Added annotation allow-none for share_list --- gtk/gtkglwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkglwidget.c b/gtk/gtkglwidget.c index d67e93c..4bb372b 100644 --- a/gtk/gtkglwidget.c +++ b/gtk/gtkglwidget.c @@ -235,7 +235,7 @@ gl_widget_private_destroy (GLWidgetPrivate *private) * gtk_widget_set_gl_capability: * @widget: the #GtkWidget to be used as the rendering area. * @glconfig: a #GdkGLConfig. - * @share_list: the #GdkGLContext with which to share display lists and texture + * @share_list: (allow-none): the #GdkGLContext with which to share display lists and texture * objects. NULL indicates that no sharing is to take place. * @direct: whether rendering is to be done with a direct connection to * the graphics system. @@ -417,7 +417,7 @@ gtk_widget_get_gl_config (GtkWidget *widget) /** * gtk_widget_create_gl_context: * @widget: a #GtkWidget. - * @share_list: the #GdkGLContext with which to share display lists and texture + * @share_list: (allow-none): the #GdkGLContext with which to share display lists and texture * objects. NULL indicates that no sharing is to take place. * @direct: whether rendering is to be done with a direct connection to * the graphics system. -- 1.7.9.5
>From 9ba5b81b624a91d72f82c80eb265c4aadfb6c909 Mon Sep 17 00:00:00 2001 From: "B. Clausius" <[email protected]> Date: Fri, 8 Jun 2012 19:31:25 +0200 Subject: [PATCH 1/3] x11: Array annotations for gobject introspection --- gdk/x11/gdkx11glconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/x11/gdkx11glconfig.c b/gdk/x11/gdkx11glconfig.c index ce72369..426d28f 100644 --- a/gdk/x11/gdkx11glconfig.c +++ b/gdk/x11/gdkx11glconfig.c @@ -64,7 +64,7 @@ gdk_x11_gl_config_class_init (GdkX11GLConfigClass *klass) /** * gdk_x11_gl_config_new_for_display: * @display: display. - * @attrib_list: the attribute list. + * @attrib_list: (array length=n_attribs): the attribute list. * @n_attribs: the number of attributes and values in attrib_list * * Creates a #GdkGLConfig on the given display. @@ -96,7 +96,7 @@ gdk_x11_gl_config_new_for_display(GdkDisplay *display, const int *attrib_list, g /** * gdk_x11_gl_config_new_for_screen: * @screen: target screen. - * @attrib_list: the attribute list. + * @attrib_list: (array length=n_attribs): the attribute list. * @n_attribs: the number of attributes and values in attrib_list * * Creates a #GdkGLConfig on the given display. -- 1.7.9.5
>From 406f116a60d6f23e72f01b27eb488cf38b1c793d Mon Sep 17 00:00:00 2001 From: "B. Clausius" <[email protected]> Date: Fri, 8 Jun 2012 19:33:54 +0200 Subject: [PATCH 2/3] win32: Array annotations for gobject introspection --- gdk/win32/gdkwin32glconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/win32/gdkwin32glconfig.c b/gdk/win32/gdkwin32glconfig.c index 13d6963..021dc57 100644 --- a/gdk/win32/gdkwin32glconfig.c +++ b/gdk/win32/gdkwin32glconfig.c @@ -64,7 +64,7 @@ gdk_win32_gl_config_class_init (GdkWin32GLConfigClass *klass) /** * gdk_win32_gl_config_new_for_display: * @display: display. - * @attrib_list: the attribute list. + * @attrib_list: (array length=n_attribs): the attribute list. * @n_attribs: the number of attributes and values in attrib_list * * Creates a #GdkGLConfig on the given display. @@ -96,7 +96,7 @@ gdk_win32_gl_config_new_for_display(GdkDisplay *display, const int *attrib_list, /** * gdk_win32_gl_config_new_for_screen: * @screen: target screen. - * @attrib_list: the attribute list. + * @attrib_list: (array length=n_attribs): the attribute list. * @n_attribs: the number of attributes and values in attrib_list * * Creates a #GdkGLConfig on the given display. -- 1.7.9.5
>From 814bb76cb0e9fc651ae09b687f44d2c16062fd7b Mon Sep 17 00:00:00 2001 From: "B. Clausius" <[email protected]> Date: Fri, 8 Jun 2012 19:34:42 +0200 Subject: [PATCH 3/3] gdk: Array annotations for gobject introspection --- gdk/gdkglconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/gdkglconfig.c b/gdk/gdkglconfig.c index 4b7d43e..6fa328b 100644 --- a/gdk/gdkglconfig.c +++ b/gdk/gdkglconfig.c @@ -398,7 +398,7 @@ gdk_gl_config_has_accum_buffer (GdkGLConfig *glconfig) /** * gdk_gl_config_new: - * @attrib_list: a list of attribute/value pairs. + * @attrib_list: (array length=n_attribs): a list of attribute/value pairs. * @n_attribs: the number of attributes and values in attrib_list. * * Returns an OpenGL frame buffer configuration that match the specified @@ -425,7 +425,7 @@ gdk_gl_config_new (const int *attrib_list, gsize n_attribs) /** * gdk_gl_config_new_for_display: * @screen: target display. - * @attrib_list: a list of attribute/value pairs. + * @attrib_list: (array length=n_attribs): a list of attribute/value pairs. * @n_attribs: the number of attributes and values in attrib_list. * * Returns an OpenGL frame buffer configuration that match the specified @@ -476,7 +476,7 @@ gdk_gl_config_new_for_display (GdkDisplay *display, /** * gdk_gl_config_new_for_screen: * @screen: target screen. - * @attrib_list: a list of attribute/value pairs. + * @attrib_list: (array length=n_attribs): a list of attribute/value pairs. * @n_attribs: the number of attributes and values in attrib_list. * * Returns an OpenGL frame buffer configuration that match the specified -- 1.7.9.5
_______________________________________________ gtkglext-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkglext-list
