GObject Introspection, how to suppress GTK4

2018-08-19 Thread Stefan Salewski
I have a Nim gintro user who has both GTK4 and GTK3 installed on his box, and seems to have some trouble: https://github.com/StefanSalewski/gintro/issues/30 I can not test that, because for my Gentoo Linux box only GTK3 is official available. My gintro package should generate latest GTK3 bindin

Re: Introspection crashes ... in Wayland?

2018-04-05 Thread Pete Zaitcev
On Tue, 3 Apr 2018 14:33:40 + Carsten Mattner wrote: > Looks like a crash in WebKitGTK+ which I suspect is used by Liferea > to render HTML. Is your version of WebKitGTK+ working in Wayland? I think so... Although, how do I tell? Fedora 27 is Wayland-based, but I think there's a compatibilit

Re: Introspection crashes ... in Wayland?

2018-04-03 Thread Carsten Mattner
On 4/3/18, Pete Zaitcev wrote: > On Tue, 3 Apr 2018 14:33:40 + > Carsten Mattner wrote: > >> Looks like a crash in WebKitGTK+ which I suspect is used by Liferea >> to render HTML. Is your version of WebKitGTK+ working in Wayland? > > I think so... Although, how do I tell? Fedora 27 is Wayland

Re: Introspection crashes ... in Wayland?

2018-04-03 Thread Carsten Mattner
On 4/1/18, Pete Zaitcev wrote: > Dear All: > > Not sure where this belongs, but long story short: I tried to build > Liferea, which crashes when it's done intropecting. Here's a traceback: > > (gdb) where > #0 0x7fa90a2a93b0 in wl_list_insert_list () > at /lib64/libwayland-server.so.0 > #

Introspection crashes ... in Wayland?

2018-04-03 Thread Pete Zaitcev
Dear All: Not sure where this belongs, but long story short: I tried to build Liferea, which crashes when it's done intropecting. Here's a traceback: (gdb) where #0 0x7fa90a2a93b0 in wl_list_insert_list () at /lib64/libwayland-server.so.0 #1 0x7fa90a2a4e6f in wl_priv_signal_emit ()

Re: How do we get GTYPE from gobject introspection language bindings

2017-09-30 Thread Stefan Salewski
On Fri, 2017-09-29 at 04:45 +, Gergely Polonkai wrote: > As a side note, STRING probably refers to https://developer.gnome.org > /glib/stable/glib-Strings.html which is a more OO string > implementation. G_TYPE_STRING being gchararray is of more close > relation with C strings (except it consis

Re: How do we get GTYPE from gobject introspection language bindings

2017-09-28 Thread Gergely Polonkai
macros like G_TYPE_STRING which > for my box gives currently value 64. These values seems to be not > directly supported by gobject-introspection. Seems to be no big > problem, we may query the values by g-type-from-name(). > > > https://developer.gnome.org/gobject/stable/gobject-Type-Inf

How do we get GTYPE from gobject introspection language bindings

2017-09-28 Thread Stefan Salewski
gives currently value 64. These values seems to be not directly supported by gobject-introspection. Seems to be no big problem, we may query the values by g-type-from-name(). https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#g-type-from-name For G_TYPE_STRING I assumed that name

Re: One more Gobject Introspection issue

2017-09-23 Thread Phil Clayton
an icon name or %NULL a stock icon size (#GtkIconSize) So ctype is GtkIconSize, but due to name="gint" I get from gobject- introspection only plain gint=int32. Unfortunately there ex

Re: One more Gobject Introspection issue

2017-09-15 Thread Stefan Salewski
On Fri, 2017-09-15 at 10:28 +0100, Emmanuele Bassi wrote: > All API that takes a GtkIconSize should have a `type int` annotation. Thanks. I learned that already from the reply of Mr. Phil Clayton. Seems that some functions like gtk_toolbar_set_icon_size() do not yet have a `type int` annotation.

Re: One more Gobject Introspection issue

2017-09-15 Thread Emmanuele Bassi
On 14 September 2017 at 21:12, Stefan Salewski wrote: > GtkIconSize type is reported as plain gint, but it is an enum. It's an "extensible" enumeration, like GtkResponseType for GtkDialog: the API accepts an integer, because app and library developers can register their own icon sizes, but GTK+ p

Re: One more Gobject Introspection issue

2017-09-15 Thread Stefan Salewski
On Fri, 2017-09-15 at 09:57 +0100, Phil Clayton wrote: > Have a look at > https://bugzilla.gnome.org/show_bug.cgi?id=601425 Great, thanks. I had looked only into the list of gobject-introspection bugs mentioned at the bottom of this page: https://wiki.gnome.org/action/show/Pr

One more Gobject Introspection issue

2017-09-14 Thread Stefan Salewski
(#GtkIconSize) So ctype is GtkIconSize, but due to name="gint" I get from gobject- introspection only plain gint=int32. Unfortunately there exists a few functions with that bug, and it is some work fixing it manually. I will investigate if there is a way to get the ctype fr

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-11 Thread Stefan Salewski
On Mon, 2017-09-11 at 07:25 +, Emmanuele Bassi wrote: > If you're writing a language binding, you should use the GBoxed API > for all boxed types, as that defers to the correct function without > having to make up an annotation for copy and free functions. That is interesting, thanks. I will r

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-11 Thread Emmanuele Bassi
go_font_description_free() for freeing. > > Do you suggest just using g_boxed_free() instead? > If you're writing a language binding, you should use the GBoxed API for all boxed types, as that defers to the correct function without having to make up an annotation for copy and free functi

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Stefan Salewski
t in the last few hours at least: Pango data types which needs a ...destroy() function for freeing seems to be mostly marked with introspectable="0". So my current impression is, that for all the data types which I "see" from gobject introspection with transfer- ownership="

Re: Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Emmanuele Bassi
Boxed types use g_boxed_free() to release resources, and g_boxed_copy() to copy them: https://developer.gnome.org/gobject/stable/gobject-Boxed-Types.html Ciao, Emmanuele. On Sat, 9 Sep 2017 at 21:29, Stefan Salewski wrote: > First I noticed that for pango_font_description_from_string() > > Fro

Pango library seems to be really hard for gobject-introspection?

2017-09-09 Thread Stefan Salewski
First I noticed that for pango_font_description_from_string() >From /usr/share/gir-1.0/Pango-1.0.gir we know that transfer- ownership="full" so we have to free it in our language bindings. But how to guess the function for freeing? For gobject there is generally a plain g_object_unref() necessar

Re: GObject introspection and cairo?

2017-07-15 Thread Stefan Salewski
On Sat, 2017-07-15 at 18:21 +0200, Nicola Fontana wrote: > They have been included in gobject-introspection 1.53.2, released > on may: > > https://git.gnome.org/browse/gobject-introspection/log/ Fine. My Gentoo box has still dev-libs/glib-2.50.3-r1:2::gentoo I will try to grab the

Re: GObject introspection and cairo?

2017-07-15 Thread Nicola Fontana
t; > Ciao. > > Is it already known when these patches will be available for ordinary > users? > ... They have been included in gobject-introspection 1.53.2, released on may: https://git.gnome.org/browse/gobject-introspection/log/ Ciao. -- Nicola ___

Re: GObject introspection and cairo?

2017-07-15 Thread Stefan Salewski
On Tue, 2017-05-09 at 17:05 +0200, Nicola Fontana wrote: > Il Tue, 09 May 2017 16:39:10 +0200 Stefan Salewski > scrisse: > > > I am currently working again on the gobject introspection based > > bindings for Nim language (https://github.com/StefanSalewski/nim-gi > > )

gtk-doc and gobject-introspection without gobject?

2017-06-11 Thread Andrea Zagli via gtk-list
can gtk-doc and gobject-introspection be used for a library that don't have gobjects? i have a library that is only a set of utility functions (that use glib/gtk/etc): can i use gtk-doc and/or gobject-introspection? thanks in advance ___ gtk

Re: GObject introspection and cairo?

2017-05-09 Thread Nicola Fontana
Il Tue, 09 May 2017 16:39:10 +0200 Stefan Salewski scrisse: > I am currently working again on the gobject introspection based > bindings for Nim language (https://github.com/StefanSalewski/nim-gi). > > And I wonder why there is only minimal support for cairo -- > /usr/share/gi

Re: GObject introspection and cairo?

2017-05-09 Thread Emmanuele Bassi
On 9 May 2017 at 15:39, Stefan Salewski wrote: > I am currently working again on the gobject introspection based > bindings for Nim language (https://github.com/StefanSalewski/nim-gi). > > And I wonder why there is only minimal support for cairo -- > /usr/share/gir-1.0/cairo-1.0

GObject introspection and cairo?

2017-05-09 Thread Stefan Salewski
I am currently working again on the gobject introspection based bindings for Nim language (https://github.com/StefanSalewski/nim-gi). And I wonder why there is only minimal support for cairo -- /usr/share/gir-1.0/cairo-1.0.gir is minimal. Of course cairo is not gobject based, but is that the

Re: gobject-introspection unmaintained?

2017-02-19 Thread Stefan Salewski
ox, I thought I was doing something wrong. But it is already reported in bug696935 -- one of 283 open bugs. But in spite of that, gobject introspection seems to be a very useful tool. Rust people seems to use it too. ___ gtk-list mailing list gtk-list@gnome.o

Re: gobject-introspection unmaintained?

2017-02-13 Thread Emmanuele Bassi
On 13 February 2017 at 11:19, Stefan Salewski wrote: > Is gobject-introspection unmaintained? It's not heavily maintained, but it's not unmaintained either. > I found a github reposity at > > https://github.com/GNOME/gobject-introspection The GitHub GNOME organiz

gobject-introspection unmaintained?

2017-02-13 Thread Stefan Salewski
Is gobject-introspection unmaintained? I found a github reposity at https://github.com/GNOME/gobject-introspection but the issue tracker is disabled. As you may know, I have done some work on a higher level GTK Nim wrapper recently. Starting with the API docs https://developer.gnome.org/gi

GObject Introspection, g-field-info-get-size

2017-02-08 Thread Stefan Salewski
https://developer.gnome.org/gi/1.50/gi-GIFieldInfo.html#g-field-info-get-size Is someone still familiar with GObject Introspection? I am investigating creating high level GObject Introspection based Nim bindings. Most seems to work well, some not: For example g-field-info-get-size() seems to

Re: introspection

2014-11-26 Thread Daniel Espinosa
Could you share your Gir file? >> > > > > > xmlns="http://www.gtk.org/introspection/core/1.0"; > xmlns:c="http://www.gtk.org/introspection/c/1.0"; > xmlns:glib="http://www.gtk.org/introspection/glib/1.0"

Re: gnode and introspection

2014-11-24 Thread Daniel Espinosa
For better manage, all your returns should be basic, boxed and GObjects, it's transparent for GI to manage them because it knows how copy, instantiate and delete them. I'm not really sure but you can say to GI what functions to call on GIR but better library use registered GType to easy live to GI.

gnode and introspection

2014-11-23 Thread Andrea Zagli
i have a library (the same as thet thread before) that have a method that returns a gnode but when it is introspected by g-ir-scanner i got Warning: Confi: confi_get_tree: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip) how must i anno

[MAYBE SOLVED] Re: introspection

2014-11-22 Thread Andrea Zagli
i/libconfi;a=tree;h=refs/heads/introspection;hb=refs/heads/introspection for now, thank you very much for the help ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: introspection

2014-11-21 Thread Daniel Espinosa
ritten, for example, in >> phython? >> > > what do you mean with "internal"? > > libconfi (and others libraries that i said) is a library that i used with > my softwares; as i do with gtk or libgda or ... > > > If it's internal not to be

Re: introspection

2014-11-21 Thread Andrea Zagli
with "internal"? libconfi (and others libraries that i said) is a library that i used with my softwares; as i do with gtk or libgda or ... If it's internal not to be used in scripts, then you don't need to expose its API to GObject Introspection (GI). https:

Re: introspection

2014-11-21 Thread Daniel Espinosa
API to GObject Introspection (GI). https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations But that means to modify code in the library to add comments. Because this libconfi is not fully introspectable (at least automatically) library, you should use (rename-to) annotation, I think in

Re: introspection

2014-11-20 Thread Andrea Zagli
Il giorno gio 20 nov 2014 22:06:15 CET, Daniel Espinosa ha scritto: I found in your GIR file, it don't detect (for example) confi_new() as a function of Confi object and it is not introspectable. Also, all functions are "free" no related to any GObject. Then you haven't provided enough informatio

Re: introspection

2014-11-20 Thread Andrea Zagli
Il giorno mer 19 nov 2014 18:20:17 CET, Daniel Espinosa ha scritto: 1. Could you share your Gir file? http://www.gtk.org/introspection/core/1.0"; xmlns:c="http://www.gtk.org/introspection/c/1.0"; xmlns:glib="http://www.gtk.org/in

Re: introspection

2014-11-19 Thread Daniel Espinosa
1. Could you share your Gir file? 2. Is a good idea to add a namespace. Like your main project prefix. This avoids introspection function and objects name collisions. El 19/11/2014 05:13, "Andrea Zagli" escribió: > i made a very l

introspection

2014-11-19 Thread Andrea Zagli
); === now i want to add introspection; i follow https://wiki.gnome.org/Projects/GObjectIntrospection/AutotoolsIntegration and i can build the library and gir file but if i try to use it from python i get errors

Building gobject-introspection on Darwin

2014-07-28 Thread Ed Mansky
Hi all, I am trying to build gobject-introspection 1.34.2 with support for glib 2.35.9. I have glib 2.35.9 installed and am getting stuck on the part of the Makefile for gobject-introspection involving the checking for the required shell env variables. The make command doesn't seem t

install gobject-introspection

2013-07-20 Thread Kemin Zhou
bject-introspection. I have suffered for a while and still could not get this package installed.  I have fitured out the reason for this problem. During configure and make stage, the path to glib-2.0 is using /usr/local, but during install it uses /usr The maintainer assured me that this is not a bug, but r

Re: Help on GObject Introspection Annotations

2011-12-02 Thread Tal Liron
hides internal definition and forces the developer to use the API. This way GObject Introspection will always make bindings to modify struct fields as expected by the implementator and makes very easy to automatically generate GIR files with the required API. 2011/12/2 Tal Liron : Thanks! I solved

Re: Help on GObject Introspection Annotations

2011-12-02 Thread Daniel Espinosa
Struct MyStruct; > > This hides internal definition and forces the developer to use the > API. This way GObject Introspection will always make bindings to > modify struct fields as expected by the implementator and makes very > easy to automatically generate GIR files with the require

Re: Help on GObject Introspection Annotations

2011-12-02 Thread Daniel Espinosa
internal definition and forces the developer to use the API. This way GObject Introspection will always make bindings to modify struct fields as expected by the implementator and makes very easy to automatically generate GIR files with the required API. 2011/12/2 Tal Liron : > Thanks! > >

Re: Help on GObject Introspection Annotations

2011-12-02 Thread Daniel Espinosa
No one have sent any response message. I've added this annotations to GdaNumeric, but GIR and Vala bindings make no difference. Both use GdaNumeric, as declared on GDA, as a GBoxed and use g_boxed_copy and g_boxed_free functions. May be this help was added but not implemented jet. 2011/12/2 Tal

Help on GObject Introspection Annotations

2011-10-21 Thread Daniel Espinosa
Resently has been added the following annotations for gtk-doc headings: Set value func: Get value func: in GDA we have a GdaNumeric struct with gda_value_set_numeric and gda_value_get_numeric to set this Boxed Derived type to a GValue is it correct to add the following annotations: /** * GdaNum

Re: gobject-introspection and MinGW

2011-10-20 Thread Earnie
Dieter Verfaillie wrote: >> Such things as needing to convert \\ to / > > Are you still getting those even with os.path.join() being > monkey-patched? From my windows branch: > https://github.com/dieterv/gobject-introspection/commit/75ff95092d952c0e4aa17ad58de5a02da54c1240 I&#

Re: gobject-introspection and MinGW

2011-10-18 Thread Dieter Verfaillie
my windows branch: https://github.com/dieterv/gobject-introspection/commit/75ff95092d952c0e4aa17ad58de5a02da54c1240 mvg, Dieter ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: gobject-introspection and MinGW

2011-10-18 Thread Earnie
Dieter Verfaillie wrote: > On 15/10/2011 18:49, Earnie wrote: >> I'm building gobject-introspection-1.30.0 with MSYS and MinGW. I'm >> to the point of the GISCAN GLib-2.0.gir and it reports "No >> mscvr71.dll loaded." I'm using the python.org provided

Re: gobject-introspection and MinGW

2011-10-17 Thread Dieter Verfaillie
On 15/10/2011 18:49, Earnie wrote: > I'm building gobject-introspection-1.30.0 with MSYS and MinGW. I'm to > the point of the GISCAN GLib-2.0.gir and it reports "No mscvr71.dll > loaded." I'm using the python.org provided Windows distribution version > 2.7.

Re: gobject-introspection and MinGW

2011-10-17 Thread Earnie
Earnie wrote: > Earnie wrote: >> Earnie wrote: >>> I'm building gobject-introspection-1.30.0 with MSYS and MinGW. >>> I'm to the point of the GISCAN GLib-2.0.gir and it reports "No >>> mscvr71.dll loaded." I'm using the python.org provi

Re: gobject-introspection and MinGW

2011-10-16 Thread Earnie
Earnie wrote: > Earnie wrote: >> I'm building gobject-introspection-1.30.0 with MSYS and MinGW. I'm >> to the point of the GISCAN GLib-2.0.gir and it reports "No >> mscvr71.dll loaded." I'm using the python.org provided Windows >> distribution v

Re: gobject-introspection and MinGW

2011-10-15 Thread Earnie
Earnie wrote: > I'm building gobject-introspection-1.30.0 with MSYS and MinGW. I'm > to the point of the GISCAN GLib-2.0.gir and it reports "No > mscvr71.dll loaded." I'm using the python.org provided Windows > distribution version 2.7. I had to modify the hac

gobject-introspection and MinGW

2011-10-15 Thread Earnie
I'm building gobject-introspection-1.30.0 with MSYS and MinGW. I'm to the point of the GISCAN GLib-2.0.gir and it reports "No mscvr71.dll loaded." I'm using the python.org provided Windows distribution version 2.7. I had to modify the hack in giscanner/utils.py at l

GObject Introspection annotation doesn't work for container type

2011-09-02 Thread Daniel Espinosa
I've filed bug #657743, because I have an struct with a GSList to contain another struct type element. I've added (element-type Gda.SqlSelectTarget) annotation to gtk-doc as shown, but generated GIR doesn't set ctype: to GdaSqlSelectFrom, instead use gpointer. /** * GdaSqlSelectFrom: * @any: inh

Drag and Drop with GObject introspection

2010-08-09 Thread Mathias Brodala
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. We recently did some experiments with porting PyGtk code to PyGi and stumbled over the Drag and Drop handling. In PyGtk nothing more than the following is required to allow a tree view to handle file drops: > view = gtk.TreeView() > > view.drag_d

Pango autogen requires introspection but app does not require it

2009-12-26 Thread BugByteMan
Hi, I just updated to git trunk and now pango autogen.sh requires introspection.m4 yet the application itself does not require introspection. Is there a simple way (other than hacking at autogen.sh and associated files) to remove this dependency

Re: Doing introspection on a GObject

2008-07-15 Thread Emmanuele Bassi
On Tue, 2008-07-08 at 13:02 +0200, Andreas Sliwka wrote: > Greetings, > I'd like to query a Gobject for its properties. Browsing through the > header files I found g_object_class_list_properties(), which takes a > GObjectClass as first parameter. Now how do I get this GObjectClass > from GObject?

Doing introspection on a GObject

2008-07-15 Thread Andreas Sliwka
Greetings, I'd like to query a Gobject for its properties. Browsing through the header files I found g_object_class_list_properties(), which takes a GObjectClass as first parameter. Now how do I get this GObjectClass from GObject? Is this possible at all, if not, is this planned for a future vers

Re: GTK+ introspection

2008-02-03 Thread Ron Yorston
Shreevatsa R <[EMAIL PROTECTED]> wrote: >Consider this a feature request. It would be useful to have a program >with which you can point at any running GTK application, and find out >what widgets you're seeing and what names have been set. This way one >can figure out what to put in the .gtkrc file

Re: GTK+ introspection

2008-02-02 Thread aniket ray
On Feb 2, 2008 11:13 PM, Shreevatsa R <[EMAIL PROTECTED]> wrote: > > Consider this a feature request. It would be useful to have a program > with which you can point at any running GTK application, and find out > what widgets you're seeing and what names have been set. Have you tried at-poke. http:

GTK+ introspection

2008-02-02 Thread Shreevatsa R
Consider this a feature request. It would be useful to have a program with which you can point at any running GTK application, and find out what widgets you're seeing and what names have been set. This way one can figure out what to put in the .gtkrc files to edit the appearance of those widgets (

Re: introspection?

2001-04-30 Thread Havoc Pennington
<[EMAIL PROTECTED]> writes: > Is there any sort of introspection facility built into gtk? For example, > I'd like to be able to ask a widget what signals it knows about and what its > property names are. This isn't perhaps such a useful thing when programming > i

introspection?

2001-04-30 Thread skip
Is there any sort of introspection facility built into gtk? For example, I'd like to be able to ask a widget what signals it knows about and what its property names are. This isn't perhaps such a useful thing when programming in C, but I've gotten kind of spoiled working with Py