GNOME Bugzilla – Bug 616288
lightsoff doesn´t work with other GTK-Engines than Clearlooks
Last modified: 2013-09-05 22:41:40 UTC
If you run lightsoff with an other GTK-Engine than Clearlooks (for example murrina) you get this http://img44.imageshack.us/img44/4812/bildschirmfoto20.jpg
running from terminal brings up some exceptions in seed. I don't know if if seed fault or lightsoff not taking care of them: Couldn't load selected theme... (seed:25821): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed ** (seed:25821): WARNING **: Exception in instance construction. Line 17 in Light.js: TypeError Result of expression 'Settings.theme.light' [undefined] is not an object. ** (seed:25821): WARNING **: Exception in instance construction. Line 12 in Board.js: TypeError Result of expression 'Settings.theme.light' [undefined] is not an object. (seed:25821): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_transform: assertion `G_IS_VALUE (src_value)' failed (seed:25821): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed ** (seed:25821): WARNING **: Exception in instance construction. Line 182 in Board.js: TypeError Result of expression 'lights[x][y]' [undefined] is not an object.
additional packaging info: seed 2.30.0 gtk-engines 2.20.1 gobject-introspection 0.6.10 fill free to ask any questions or additional info
Reason: /usr/share/gnome-games/lightsoff/themes/tango/theme.js @ reload_theme() // TODO: there must be a better way to get the Gtk selection color var gtk_settings = Gtk.Settings.get_default(); var gtk_color_scheme = gtk_settings.gtk_color_scheme; var c = new Clutter.Color(); c.from_string(gtk_color_scheme.match(/selected_bg_color: (.*);?/)[1]); Not every theme has gtk_color_scheme in its [/usr/share/themes/$THEME/gtk-2.0/]gtkrc. Guess there should be a fallback when gtk_color_scheme is undefined.
I don't think we touch themes at all in the Vala version. Please do reopen if this is still an issue.