summaryrefslogtreecommitdiff
path: root/src/plugins/samplepython/samplepython.py
blob: 1d2bbcfa19fa3ca3a7e691a6475e4030d8880b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# From code by James Livingston

from gi.repository import GObject, Peas, Totem # pylint: disable-msg=E0611,W0611

class SamplePython (GObject.Object, Peas.Activatable):
    __gtype_name__ = 'SamplePython'

    object = GObject.property (type = GObject.Object)

    def __init__ (self):
        GObject.Object.__init__ (self)

    def do_activate (self):
        print("Activating sample Python plugin")
        self.object.action_fullscreen_toggle ()

    def do_deactivate (self):
        print("Deactivating sample Python plugin")
        self.object.action_fullscreen_toggle ()