~serge-hallyn/ubuntu/precise/rhythmbox/rhythmbox-sort

« back to all changes in this revision

Viewing changes to plugins/context/ArtistTab.py

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2011-09-09 14:13:24 UTC
  • mfrom: (1.1.59 upstream)
  • Revision ID: package-import@ubuntu.com-20110909141324-72ef36aetwiidw8e
Tags: 2.90.1~20110908-0ubuntu1
* New upstream git snapshot up to commit
  31e8e0e6b3a4af101f60b5733e0cfdd736f3dd6d
* reverted commit "visualizer: add colorspace converter so it works 
  with playbin2" (d9fe72447999c2777ddc053dfa28ff363e84336d) and 
  "visualizer: new clutter-based visualizer plugin"
  (082eaf958b60e3830f1607114353d777c930d616) to prevent dependency on
  clutter-gst which is in universe

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# along with this program; if not, write to the Free Software
25
25
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
26
26
 
27
 
import gobject
28
27
import re, os
29
28
import cgi
30
29
import urllib
36
35
import LastFM
37
36
 
38
37
from gi.repository import WebKit
39
 
from gi.repository import Gtk
 
38
from gi.repository import GObject, Gtk
40
39
from gi.repository import RB
41
40
    
42
 
class ArtistTab (gobject.GObject):
 
41
class ArtistTab (GObject.GObject):
43
42
    
44
43
    __gsignals__ = {
45
 
        'switch-tab' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
46
 
                                (gobject.TYPE_STRING,))
 
44
        'switch-tab' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE,
 
45
                                (GObject.TYPE_STRING,))
47
46
    }
48
47
 
49
48
    def __init__ (self, shell, buttons, ds, view):
50
 
        gobject.GObject.__init__ (self)
 
49
        GObject.GObject.__init__ (self)
51
50
        self.shell      = shell
52
51
        self.sp         = shell.props.shell_player
53
52
        self.db         = shell.props.db
91
90
            self.view.load_view()
92
91
        self.artist = artist
93
92
 
94
 
class ArtistView (gobject.GObject):
 
93
class ArtistView (GObject.GObject):
95
94
 
96
95
    def __init__ (self, shell, plugin, webview, ds):
97
 
        gobject.GObject.__init__ (self)
 
96
        GObject.GObject.__init__ (self)
98
97
        self.webview  = webview
99
98
        self.ds       = ds
100
99
        self.shell    = shell
147
146
            print "Problem in info ready: %s" % e
148
147
    
149
148
 
150
 
class ArtistDataSource (gobject.GObject):
 
149
class ArtistDataSource (GObject.GObject):
151
150
    
152
151
    __gsignals__ = {
153
 
        'artist-info-ready'       : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
154
 
        'artist-similar-ready'    : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
155
 
        'artist-top-tracks-ready' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
156
 
        'artist-top-albums-ready' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
 
152
        'artist-info-ready'       : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),
 
153
        'artist-similar-ready'    : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),
 
154
        'artist-top-tracks-ready' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),
 
155
        'artist-top-albums-ready' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),
157
156
    }
158
157
 
159
158
    def __init__ (self, info_cache, ranking_cache):
160
 
        gobject.GObject.__init__ (self)
 
159
        GObject.GObject.__init__ (self)
161
160
 
162
161
        self.current_artist = None
163
162
        self.error = None