http://library.gnome.org/devel/gtk/2.11/GtkPrintSettings.html#gtk-print-settings-to-key-file
needs a GKeyFile* in parameter, but G_TYPE_KEY_FILE or
g_key_file_get_type() are not exposed by glib nor by ruby-glib2. I
failed to find a solution to a similar problem, as for example
GTK_TYPE_TREE_PATH is defined and exposed by gtk (it is a boxed type,
as GKeyFile is)…
–
Guillaume C. - http://zarb.org/~gc/
Hi,
In [email protected]
“[ruby-gnome2-devel-en] how to bind gtk-print-settings-to-key-file?”
on Mon, 15 Sep 2008 15:19:51 +0200,
“Guillaume C.” [email protected] wrote:
http://library.gnome.org/devel/gtk/2.11/GtkPrintSettings.html#gtk-print-settings-to-key-file
needs a GKeyFile* in parameter, but G_TYPE_KEY_FILE or
g_key_file_get_type() are not exposed by glib nor by ruby-glib2. I
failed to find a solution to a similar problem, as for example
GTK_TYPE_TREE_PATH is defined and exposed by gtk (it is a boxed type,
as GKeyFile is)…
You can change Ruby/GLib2 to export G_TYPE_KEY_FILE.
Thanks,
kou
You can change Ruby/GLib2 to export G_TYPE_KEY_FILE.
Ok.
I am not sure about actual code, because I haven’t found a .h where it
made sense to add it close to other equivalent things. I came up with
that patch though in rbglib.h it looks a bit awkward next to the rest
of the content. WDYT?
Hi,
In [email protected]
“Re: [ruby-gnome2-devel-en] how to bind
gtk-print-settings-to-key-file?” on Tue, 16 Sep 2008 16:18:56 +0200,
“Guillaume C.” [email protected] wrote:
You can change Ruby/GLib2 to export G_TYPE_KEY_FILE.
Ok.
I am not sure about actual code, because I haven’t found a .h where it
made sense to add it close to other equivalent things. I came up with
that patch though in rbglib.h it looks a bit awkward next to the rest
of the content. WDYT?
It looks good except g_key_file_get_type is missing in
glib2.def. Please commit the patch with glib2.def update.
Thanks,
kou
Hi,
In [email protected]
“Re: [ruby-gnome2-devel-en] how to bind
gtk-print-settings-to-key-file?” on Tue, 16 Sep 2008 17:13:15 +0200,
“Guillaume C.” [email protected] wrote:
objdump -T glib2.so | grep g_key_file_get_type
00016f10 g DF .text 00000050 Base g_key_file_get_type
It’s my understanding that .def is needed when you use
glib2.so with MSVC. .def is needed to generate glib2.lib and
glib2.lib is needed to build bindings that uses Ruby/GLib.
NOTE: I’m not Windows user.
Thanks,
kou
On Tue, Sep 16, 2008 at 4:45 PM, Kouhei S. [email protected] wrote:
I am not sure about actual code, because I haven’t found a .h where it
made sense to add it close to other equivalent things. I came up with
that patch though in rbglib.h it looks a bit awkward next to the rest
of the content. WDYT?
It looks good except g_key_file_get_type is missing in
glib2.def. Please commit the patch with glib2.def update.
I missed it partially because I did test, and it was successful. Is it
really needed? seems that the symbol is already exported:
objdump -T glib2.so | grep g_key_file_get_type
00016f10 g DF .text 00000050 Base g_key_file_get_type
–
Guillaume C. - Guillaume Cottenceau