Commit 4e17a7d3 authored by Kai Willadsen's avatar Kai Willadsen

Update LinkMap CSS selector

parent 792a24a2
......@@ -212,7 +212,7 @@ def setup_resources():
bg_colour = textview_context.get_background_color(
textview_context.get_state())
textview_context.restore()
linkmap_css = "LinkMap { background-color: %s; }" % bg_colour.to_string()
linkmap_css = "link-map { background-color: %s; }" % bg_colour.to_string()
linkmap_provider = Gtk.CssProvider()
linkmap_provider.load_from_data(linkmap_css)
Gtk.StyleContext.add_provider_for_screen(
......
......@@ -10,7 +10,7 @@
padding: 3px 2px 2px 2px;
}
LinkMap {
link-map {
border-width: 0 0 1px 0;
border-style: solid;
border-color: @borders;
......
......@@ -127,6 +127,12 @@ class LinkMap(Gtk.DrawingArea):
def do_scroll_event(self, event):
self.filediff.next_diff(event.direction)
try:
LinkMap.set_css_name("link-map")
except AttributeError:
# New API in 3.20
pass
class ScrollLinkMap(Gtk.DrawingArea):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment