Remove the "filename" label in front of the filename
[mussorgsky] / src / edit_panel_tm.py
index 76e3624..7cd280f 100644 (file)
@@ -186,9 +186,6 @@ class MussorgskyEditPanel (hildon.StackableWindow):
         view_vbox = gtk.VBox (homogeneous=False, spacing = 12)
 
         filename_row = gtk.HBox ()
-        filename_label = gtk.Label ()
-        filename_label.set_markup ("<small>Filename:</small>")
-        filename_row.pack_start (filename_label, expand=False, padding=12);
         self.filename_data = gtk.Label ("")
         filename_row.pack_start (self.filename_data, expand=True)
 
@@ -243,12 +240,16 @@ class MussorgskyEditPanel (hildon.StackableWindow):
         separator.set_expand (True)
         button_box.insert  (separator, -1)
 
-        back_button = gtk.ToolButton (gtk.image_new_from_stock (gtk.STOCK_GO_BACK, gtk.ICON_SIZE_BUTTON))
+        back_img = gtk.Image ()
+        back_img.set_from_icon_name ("general_back", gtk.ICON_SIZE_BUTTON)
+        back_button = gtk.ToolButton (back_img)
         back_button.connect ("clicked", self.press_back_cb)
         back_button.set_expand (True)
         button_box.insert (back_button, -1)
 
-        next_button = gtk.ToolButton (gtk.image_new_from_stock (gtk.STOCK_GO_FORWARD, gtk.ICON_SIZE_BUTTON))
+        next_img = gtk.Image ()
+        next_img.set_from_icon_name ("general_forward", gtk.ICON_SIZE_BUTTON)
+        next_button = gtk.ToolButton (next_img)
         next_button.connect ("clicked", self.press_next_cb)
         next_button.set_expand (True)
         button_box.insert (next_button, -1)
@@ -329,7 +330,7 @@ class MussorgskyEditPanel (hildon.StackableWindow):
         if (self.player.is_playing ()):
             self.player.stop ()
         else:
-            song = self.songs_list [self.song_counter]
+            song = self.get_current_row ()
             self.player.play ("file://" + song[URI_COLUMN])
 
     def album_selection_cb (self, widget):