You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
564 B
Python
20 lines
564 B
Python
from gi.repository import GObject, Liferea
|
|
|
|
class NoCountersPlugin(GObject.Object, Liferea.ShellActivatable):
|
|
__gtype_name__ = 'NoCountersPlugin'
|
|
|
|
shell = GObject.property(type=Liferea.Shell)
|
|
|
|
def do_activate(self):
|
|
self.treeview = self.shell.lookup("feedlist")
|
|
self.counter_column = self.treeview.get_column(1)
|
|
|
|
self.counter_column.set_visible(False)
|
|
self.treeview.queue_draw()
|
|
return
|
|
|
|
def do_deactivate(self):
|
|
self.counter_column.set_visible(True)
|
|
self.treeview.queue_draw()
|
|
return
|