On Wed, Nov 05, 2014 at 02:41:05PM -0500, David Shea wrote:
+ # Look for updates to the stylesheet and apply them at a
higher priority
+ if os.path.exists("/run/install/updates/anaconda-gtk.css"):
+ provider = Gtk.CssProvider()
+ provider.load_from_path("/run/install/updates/anaconda-gtk.css")
+ Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
provider,
+ STYLE_PROVIDER_PRIORITY_UPDATES)
+
+ if os.path.exists("/run/install/product/anaconda-gtk.css"):
+ provider = Gtk.CssProvider()
+ provider.load_from_path("/run/install/product/anaconda-gtk.css")
+ Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
provider,
+ STYLE_PROVIDER_PRIORITY_UPDATES)
+
Since these 2 blocks are identical I'd make it a for loop on the 2
possible paths.
Ack other than that.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)