Andre, I thought about your question and there may be a simpler solution than the code I suggested. https://developer.gnome.org/gio/stable/GSettings.html#g-settings-get-st rv https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html#GdkRGBA https://developer.gnome.org/gio/stable/GSettings.html#g-settings-bind-w ith-mapping
GdkRGBA typedef struct { gdouble red; gdouble green; gdouble blue; gdouble alpha; } GdkRGBA; <key name="rgba" type="(dddd)"> Norman On Sun, 2015-10-18 at 11:32 +0200, Andre > Hi, > > i'm doing my first gnome-shell extension (specifically prefs.js for > gnome-tweak-tool) and was wondering how we bind Gtk.ColorButton with > Gio.GSettings? > > Like Gtk.Entry can be bound with 'text' (s), Gtk.CheckButton with > 'active' (b) and Gtk.SpinButton with 'value' (i/d). Is there a type > we > can use for Gtk.ColorButton? > > Cheers > Andre Schmidt > > ps. i was guessing i need to use > https://developer.gnome.org/gio/stable/GSettings.html#g-settings-bind > -with-mapping > to map what ever Gtk.ColorButton uses, to text, but that seems to be > not implemented in javascript. > _______________________________________________ > gnome-shell-list mailing list > gnome-shell-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gnome-shell-list _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list