Commits

Vladimir Kolev committed d3d59af

Updated tooltip information in the playlist
Populated downloads popup menu
Added thanks to README

  • Participants
  • Parent commits c7b5c29

Comments (0)

Files changed (3)

 webaddress: `groove-dl@github <https://github.com/jacktheripper51/groove-dl>`_
 
 Special thanks to Damián Nohales for his commits.
+Special thanks to speps for the patches
+Special thanks to Ragi for the patch fixing multiple download crash
 
 Any comments and help are welcome

data/main_window.ui

         <signal name="activate" handler="on_cancel_download"/>
       </object>
     </child>
+    <child>
+      <object class="GtkImageMenuItem" id="menuitem3">
+        <property name="label">gtk-media-stop</property>
+        <property name="visible">True</property>
+        <property name="use_underline">True</property>
+        <property name="use_stock">True</property>
+        <signal name="activate" handler="on_stop_download"/>
+      </object>
+    </child>
+    <child>
+      <object class="GtkImageMenuItem" id="menuitem4">
+        <property name="label" translatable="yes">Resume</property>
+        <property name="visible">True</property>
+        <property name="image">image4</property>
+        <property name="use_stock">False</property>
+        <signal name="activate" handler="on_resume_download"/>
+      </object>
+    </child>
   </object>
   <object class="GtkImage" id="image_information">
     <property name="visible">True</property>
     <property name="visible">True</property>
     <property name="icon_name">document-revert</property>
   </object>
+  <object class="GtkImage" id="image4">
+    <property name="visible">True</property>
+    <property name="stock">gtk-refresh</property>
+  </object>
 </interface>
         song_string = "<b>%s</b>\n<i>%s</i>" % (song['ArtistName'], song['SongName'])
         #if len(song_string) > 14:
         #    song_string = song_string[:13] + "..."
+        tooltip = _("<b>Song:</b> {artist} - {title}\n").format(artist=song['ArtistName'], 
+                                                                title=song['SongName'])
+        tooltip += _("<b>Album:</b> {album}\n").format(album=song['AlbumName'])
+        tooltip += _("<b>Year:</b> {year}").format(year=song['Year'])  
         self.playlist.append([
             song_string,
             self.create_track_icon(song['CoverArtFilename']),
-            song['ArtistName'] + " - " + song['SongName'],
+            tooltip ,
             song['SongID'],
             song,
             400
             path = treeview.get_path_at_pos(int(event.x), int(event.y))
             selection = treeview.get_selection()
             rows = selection.get_selected_rows()
-
-            if path[0] not in rows[1]:
-                # Unselect if the user click the right button outside 
-                # the selected items - empty field.
-                selection.unselect_all()
-                selection.select_path(path[0])
+            try:
+                if path[0] not in rows[1]:
+                    # Unselect if the user click the right button outside 
+                    # the selected items - empty field.
+                    selection.unselect_all()
+                    selection.select_path(path[0])
+            except TypeError:
+                pass
 
             # still not sure about this. The point is that there are many rows selected
             # when you click the right mouse button, but then on_cancel_download still 
             # has no idea what is selected.
             if selection.count_selected_rows() > 1:
                 self.downmenu.popup(None, None, None, event.button, event.time)
-                print "Selected many rows"
             else:
                 self.downmenu.popup(None, None, None, event.button, event.time)
-                print "Selected one row!"
     
     def cancel_download(self, path):
         """