Commits

Damián Nohales  committed 1bdbfbc

Restore some method names (FAIL!!).

  • Participants
  • Parent commits 9f1f343

Comments (0)

Files changed (3)

File data/main_window.ui

                 <property name="label" translatable="yes">Previous</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-media-previous</property>
-                <signal name="clicked" handler="on_play_previous" swapped="no"/>
+                <signal name="clicked" handler="play_previous" swapped="no"/>
               </object>
               <packing>
                 <property name="expand">False</property>
                 <property name="label" translatable="yes">Play/Stop</property>
                 <property name="use_underline">True</property>
                 <property name="icon_name">media-playback-start</property>
-                <signal name="clicked" handler="on_play_selected" swapped="no"/>
+                <signal name="clicked" handler="play_selected" swapped="no"/>
               </object>
               <packing>
                 <property name="expand">False</property>
                 <property name="label" translatable="yes">Next</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-media-next</property>
-                <signal name="clicked" handler="on_play_next" swapped="no"/>
+                <signal name="clicked" handler="play_next" swapped="no"/>
               </object>
               <packing>
                 <property name="expand">False</property>

File gsharkdown.py

         prefs = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES)
         prefs.connect("activate", self.edit_preferences)
         playbut = gtk.ImageMenuItem(gtk.STOCK_MEDIA_PLAY)
-        playbut.connect("activate", self.on_play_selected)
+        playbut.connect("activate", self.play_selected)
         prebut = gtk.ImageMenuItem(gtk.STOCK_MEDIA_PREVIOUS)
-        prebut.connect("activate", self.on_play_previous)
+        prebut.connect("activate", self.play_previous)
         ffbut = gtk.ImageMenuItem(gtk.STOCK_MEDIA_NEXT)
-        ffbut.connect("activate", self.on_play_next)
+        ffbut.connect("activate", self.play_next)
 
         updimg = gtk.Image()
         updimg.set_from_icon_name('system-software-update',
         song = self.result_song(column[0])
         self.add_song_to_playlist(song)
 
-    def on_play_next(self, widget, data=None):
+    def play_next(self, widget, data=None):
         """
         Plays the next item from the playlist
         """
             else:
                 self.play_by_index(index)
 
-    def on_play_previous(self, widget, data=None):
+    def play_previous(self, widget, data=None):
         """
         Plays the previous song from the playlist
         """
             search_thread = t_search(self, widget.get_text(), "Songs")
             search_thread.start()
 
-    def on_play_selected(self, widget, data=None, row=None):
+    def play_selected(self, widget, data=None, row=None):
         """
         Starts the play thread
         """

File lib/tfuncs.py

     def on_media_key(self, comes_from, what):
         if what in ['Stop', 'Play', 'Next', 'Previous']:
             if what == 'Stop':
-                self.win.on_play_selected(self.win.play_button)
+                self.win.play_selected(self.win.play_button)
             elif what == 'Play':
-                self.win.on_play_selected(self.win.play_button)
+                self.win.play_selected(self.win.play_button)
             elif what == 'Next':
-                self.win.on_play_next(self.win.ff_button)
+                self.win.play_next(self.win.ff_button)
             elif what == 'Previous':
-                self.win.on_play_previous(self.win.prev_button)
+                self.win.play_previous(self.win.prev_button)
 
 class t_search(threading.Thread):