Re: I'm Troumad, a french Linux user

Hi Troumad,

I am assuming that you are trying to run a GTK+-3.x program...

The way gschema works is as follows: (refer to, especially under g_get_system_data_dirs ()) 1. Determine where you put you program binary, together with your GTK+ stack DLLs (GTK+, Pango, ATK, GDK-Pixbuf, GLib and their dependent DLLs), in <foo> or <foo>\bin, where <foo> is a folder that does not end with \bin 2. Copy the org.gtk.Settings.FileChooser.gschema.xml (and whatever other *.gschema.xml files you may need) to <foo>\share\glib-2.0\schemas. You may need to ensure that gschema.dtd is in <foo>\share\glib-2.0\schemas. 3. Run "glib-compile-schemas <foo>\share\glib-2.0\schemas" without the quotes. glib-compile-schemas is a utility program that you obtain when you build GLib, which compiles all *.gschema.xml files in a given folder, which creates a gschemas.compiled in <foo>\share\glib-2.0\schemas.
4. Run your program in <foo> or <foo>\bin, and you should be set to go.

Hope this info helps-this was what bit me when I tried to get GTK+-3.x running, which I built with Visual Studio.

p.s. XDG_DATA_DIRS, as the given link implies, is something that is supported on *NIX platforms, not Windows, AFAIK. This bit me in the process too.

With blessings,
-Fan, Chun-wei
On Fri, 02 Mar 2012 09:02:55 +0100, Troumad wrote:
My program compile and run only if I don't nead
*gtk_file_chooser_dialog_new . Why ? *
If I use *gtk_file_chooser_dialog_new, I have this error :

(perso.exe:392): GLib-GIO-CRITICAL**: Settings schema 'org.gtk.Settings.FileChooser' is not installed

This is a known problem with GLib on windows with g_get_system_data_dirs()
which unlike other platforms (Linux and I suppose OS X) doesn't behave
as we would expect. And it gets worse, unlike those other platforms
GLib fails to honor the XDG_DATA_DIRS environment variable...

I've been working on fixing this in my spare time for a couple of weeks
already and hope to finish this soon (it's also needed for the windows
port of gobject-introspection).


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