~nik90/ubuntu/precise/totem/add_keywords_new

« back to all changes in this revision

Viewing changes to src/plugins/sample-python/sample-python.py

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-10-15 16:24:44 UTC
  • mfrom: (184.1.1 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20111015162444-icfarx4803b2pnd6
Tags: 3.0.1-0ubuntu8
* debian/patches/04_port_to_gobject.patch:
  Port opensubtitles/hash.py also
* debian/patches/90_fix_save_playlist.patch:
  Git patch to fix broken save plugin button (LP: #873719)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# From code by James Livingston
2
2
 
3
 
import gobject
 
3
from gi.repository import GObject
4
4
from gi.repository import Peas
5
5
from gi.repository import Totem
6
6
 
7
 
class SamplePython(gobject.GObject, Peas.Activatable):
 
7
class SamplePython(GObject.Object, Peas.Activatable):
8
8
        __gtype_name__ = 'SamplePython'
9
9
 
10
 
        object = gobject.property(type = gobject.GObject)
 
10
        object = GObject.property(type = GObject.Object)
11
11
 
12
12
        def do_activate(self):
13
13
                print "Activating sample Python plugin"