~ubuntu-branches/ubuntu/natty/exaile/natty

« back to all changes in this revision

Viewing changes to xl/dbusinterface.py

  • Committer: Bazaar Package Importer
  • Author(s): Nick Ellery
  • Date: 2008-11-04 18:33:00 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20081104183300-e4t9seztl35bdb24
Tags: 0.2.14-0ubuntu1
* New upstream release (LP: #280287)
* debian/control:
  - tighten dependency on python-gtk2 to (>= 2.10)
  - added python-sexy to recommends to add a clear button to filters
  - added python-gnome2-extras to recommends for lyrics, better tray icon,
    etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        """
129
129
        self.exaile.show_osd()
130
130
 
 
131
    @dbus.service.method("org.exaile.DBusInterface")
 
132
    def popup_text(self, text):
 
133
        """
 
134
            Shows a popup window with a text string
 
135
        """
 
136
        import xlmisc
 
137
        pop = xlmisc.get_osd(self, 
 
138
                xlmisc.get_osd_settings(self.exaile.settings))
 
139
        pop.show_osd(text, None)
 
140
 
131
141
    @dbus.service.method("org.exaile.DBusInterface", None, "s")
132
142
    def get_title(self):
133
143
        """
198
208
        """
199
209
        return self.exaile.cover.loc
200
210
 
201
 
    @dbus.service.method("org.exaile.DBusInterface")
202
 
    def popup(self):
203
 
        """
204
 
            Shows a popup window with information about the current track
205
 
        """
206
 
        self.exaile.show_osd()
207
 
 
208
211
    @dbus.service.method("org.exaile.DBusInterface", None, "s")
209
212
    def get_volume(self):
210
213
        return str(self.exaile.get_volume_percent())
348
351
    """
349
352
    usage = "Usage: %prog [option...|uri]"
350
353
    p = OptionParser(usage=usage)
351
 
    p.add_option("-d", "--duplicates", dest="dups",
352
 
        metavar="DIR",
353
 
        help="Finds and deletes all duplicate tracks (based on their md5 sum)")
354
354
    p.add_option("-n", "--next", dest="next", action="store_true",
355
355
        default=False, help="Play the next track")
356
356
    p.add_option("-p", "--prev", dest="prev", action="store_true",