fix linter warnings

This commit is contained in:
Eric Le Lay 2020-05-13 08:36:22 +02:00
parent 233d4adf48
commit b18fa6674d
2 changed files with 4 additions and 2 deletions

View file

@ -459,7 +459,7 @@ def investigate_widget_colors(type_classes_and_widgets):
# Create an empty style context
style_ctx = Gtk.StyleContext()
# Create an empty widget path
widget_path = Gtk.WidgetPath()
widget_path = Gtk.WidgetPath()
# Specify the widget class type you want to get colors from
for t, c, r in type_and_class:
widget_path.append_type(t)

View file

@ -24,6 +24,7 @@ import gpodder
from gpodder import util
from gpodder.gtkui.draw import (draw_text_box_centered, get_background_color,
get_foreground_color)
# from gpodder.gtkui.draw import investigate_widget_colors
import gi # isort:skip
@ -408,6 +409,7 @@ class gPodderShownotesHTML(gPodderShownotes):
style = ("html { background: %s; color: %s;}"
" a { color: %s; }"
" a:visited { color: %s; }") % \
(self.background_color.to_string(), self.foreground_color.to_string(), self.link_color.to_string(), self.visited_color.to_string())
(self.background_color.to_string(), self.foreground_color.to_string(),
self.link_color.to_string(), self.visited_color.to_string())
self.stylesheet = WebKit2.UserStyleSheet(style, 0, 1, None, None)
return self.stylesheet