GNOME Bugzilla – Bug 681566
Xklavier: can't set model of Xkl.ConfigRec
Last modified: 2012-08-20 12:49:49 UTC
In pygtk was: import xklavier configrec = xklavier.ConfigRec() configrec.set_model(model) Now a ConfigRec can be created as follows, but set_model is not there: from gi.repository import Xkl configrec = Xkl.ConfigRec() # FIXME: configrec.set_model(model)
As far as I can tell XklConfigRec is missing API, I do not see a way to set the model in C either grepping the libxklavier sources I see they do data->model = g_strdup("pc105"); which cannot work with g-i. I think you should file a bug to libxklavier so that they make the API introspectable, either adding a setters functions for these fields or registiring them as gobject properties When you file the bug, please make this one depend on the new report
Thanks Paolo. So I filed in libxklavier as: https://bugzilla.freedesktop.org/show_bug.cgi?id=53547 Maybe the patches attached to this related ticket of libxklavier can be of help "Add gobject-introspection support": https://bugzilla.freedesktop.org/show_bug.cgi?id=44581
Thanks, tracking in https://bugzilla.freedesktop.org/show_bug.cgi?id=53547 then.