Re: GTK FileChooserButton crashes - No GSetting schemas
Hello, As LRN mentioned, you need to run glib-compile-schemas.exe, which should be part of the bundle. Suppose your GTK+ and dependent DLLs and .exe are in c:\foo\bin and you have the schema files in c:\foo\share\glib-2.0\schemas, you need to go to c:\foo\bin, and run glib-compile-schemas ..\share\glib-2.0\schemas. For references, in the GTK+-3.x sources, when you look at build/win32/vs9/gtk-install.vsprops or build/win32/vs1x/gtk-install.props, you will see how glib-compile-schemas.exe is invoked, so for Visual Studio builds that is also done for you-but it may need to be done manually again if one is to move the installation (basically it looks for gschema.compiled in c:\foo\share\glib-2.0\schemas to find needed schemas), as the schemas items may have also been written into the system registry. This would mean, when you distribute your GTK+-3.x program, your installation program (or setup routine) need to copy the .gschema.xml files given in the bundle (plus any others you might need) to \share\glib-2.0\schemas, and run \bin\glib-compile-schemas \share\glib-2.0\schemas. Hope this helps. Woth blessings. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK FileChooserButton crashes - No GSetting schemas
On 13.08.2014 16:08, darekg11 wrote: > Hi guys I have a following problem - never had it before with GTK 2.x but it > occurs with latest bundle: > > When I use following line: > > widget = gtk_file_chooser_button_new("Choose > directory\0",GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); > > > Application crashes with following error: > GLib-GIO-Error: No GSetting schemas are installed on this system. > > I'm running Windows XP 32 bits with lastest gtk bundle, IDE: Visual 2008 EE > > Any help is appreciated - I would like to know how ot install those schemes > and export them with my application so other users could use my app without > installing anything new if it is possible. You need to compile filechooser schemas like this: /mingw/bin/glib-compile-schemas.exe /mingw/share/glib-2.0/schemas The schemas you need (org.gtk.Settings.ColorChooser.gschema.xml, specifically) are installed by gtk. There are other schemas, some installed by glib-2.0, other installed by gsettings-desktop-schemas. I have no idea how things are in the realm of Visual Studio users, sorry. You'll probably need to grab the schemes from gtk manually (since VS doesn't have `make install`, put them in appropriate place (glib is smart enough to figure out the installation directory at runtime, so just make sure that the schemes are in /share/glib-2.0/schemas, where is /bin//../../), and run glib-compile-schemas on them. I don't know what's inside them. Maybe you'll be able to get away with compiling them on your build machine and then distributing pre-compiled versions. -- O< ascii ribbon - stop html email! - www.asciiribbon.org 0x922360B0.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list