GNOME Bugzilla – Bug 742862
Replace GbSourceStyleSchemeButton with GtkSourceStyleSchemeChooserButton
Last modified: 2015-01-13 21:17:42 UTC
Now that GtkSourceView has support for a style scheme chooser widget we can replace our own implementation (GbSourceStyleSchemeButton) with GtkSourceView implementation (GtkSourceStyleSchemeChooserButton)
I agree with this.
Created attachment 294439 [details] [review] replace GbSourceStyleSchemeButton with GtkSourceStyleSchemeChooserButton GtkSourceStyleSchemeChooserButton does not have a "style-scheme-name" property to bind directly to our gsettings like our previous implementation.For this reason I had to use g_signal_connect with "notify::style-scheme" signal and set the key "style-scheme-name" on gsettings manually.
Review of attachment 294439 [details] [review]: Other looks good. Let's wait what Christian will say. ::: src/preferences/gb-preferences-page-editor.c @@ +65,3 @@ + scheme = gtk_source_style_scheme_chooser_get_style_scheme (chooser); + scheme_id = gtk_source_style_scheme_get_id (scheme); + g_settings_set_string (settings,"style-scheme-name", scheme_id); missed space after ','
Thanks!