blob: 3956cf82fcff7d07482ee210b3b935e187810250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# From code by James Livingston
import gobject
from gi.repository import Peas
from gi.repository import Totem
class SamplePython(gobject.GObject, Peas.Activatable):
__gtype_name__ = 'SamplePython'
object = gobject.property(type = gobject.GObject)
def do_activate(self):
print "Activating sample Python plugin"
self.object.action_fullscreen_toggle()
def do_deactivate(self):
print "Deactivating sample Python plugin"
|