Skip to content

Commit

Permalink
added double click to add album, updated icon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwestendorf committed Feb 14, 2012
1 parent 82646c2 commit 04c87fa
Show file tree
Hide file tree
Showing 6 changed files with 362 additions and 319 deletions.
Binary file modified .DS_Store
Binary file not shown.
669 changes: 351 additions & 318 deletions Icon.ai

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified Thumper/Icons/Dock.icns
Binary file not shown.
10 changes: 10 additions & 0 deletions Thumper/ThumperAlbumDelegate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@ def initialize
@rate_enabled = true
end

def awakeFromNib
parent.albums_table_view.doubleAction = 'double_click:'
parent.albums_table_view.target = self
end

def represented_objects
parent.albums
end

def double_click(sender)
return if parent.songs.length < 1
add_album_to_playlist(sender)
end

def numberOfRowsInTableView(tableView)
parent.albums.count
end
Expand Down
2 changes: 1 addition & 1 deletion Thumper/ThumperTable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ThumperCMTable < NSTableView

git def menuForEvent(event)
def menuForEvent(event)

where = self.convertPoint(event.locationInWindow, fromView:nil)
row = self.rowAtPoint(where)
Expand Down

0 comments on commit 04c87fa

Please sign in to comment.