GNOME Bugzilla – Bug 650246
changing color scheme with multiple documents open in gedit
Last modified: 2011-07-01 16:32:37 UTC
Created attachment 187861 [details] screenshot of gedit after changing from cobalt to classic color scheme Changing the color scheme in gedit does not work properly when multiple documents are open. The problem can be seen when changing from a dark theme to a light theme e.g. from Cobalt to Classic or from Oblivion to Tango. The dark background and light text remain, but the line numbers and current line highlight color change. gedit 3.0.2 gtksourceview 3.0.1 Steps to reproduce: 1. Open more than one tab in gedit 2. Change color scheme to Cobalt 3. Change color scheme to Classic
Created attachment 187863 [details] [review] possible fix Here is my attempt it a fix. It separates creating the GtkCssProvider from applying it to widgets, and uses some reference counting and g_object_add_weak_pointer, so that the same GtkCssProvider object can be properly applied and removed from all the widgets.
Fixed a different way in gtksourceview 3.0.5.
Thanks for reporting. :)