projects
/
mussorgsky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0692da8
)
Huge padding adding rows in the download dialog.
author
Ivan Frade
<ivan.frade@nokia.com>
Sun, 24 Jan 2010 23:47:52 +0000
(
01:47
+0200)
committer
Ivan Frade
<ivan.frade@nokia.com>
Sun, 24 Jan 2010 23:47:52 +0000
(
01:47
+0200)
src/aa_selection_dialog.py
patch
|
blob
|
history
diff --git
a/src/aa_selection_dialog.py
b/src/aa_selection_dialog.py
index
25d1060
..
b055d2d
100644
(file)
--- a/
src/aa_selection_dialog.py
+++ b/
src/aa_selection_dialog.py
@@
-87,7
+87,7
@@
class AlbumArtSelectionDialog (gtk.Dialog):
image.connect ("button-release-event", self.click_on_img)
self.images.append (image)
hbox.pack_start (image, expand=False, fill=True)
image.connect ("button-release-event", self.click_on_img)
self.images.append (image)
hbox.pack_start (image, expand=False, fill=True)
- self.vbox.pack_start (hbox, padding=6)
+ self.vbox.pack_start (hbox, padding=24)
label = gtk.Label ("New search:")
self.entry = hildon.Entry (gtk.HILDON_SIZE_FINGER_HEIGHT)
label = gtk.Label ("New search:")
self.entry = hildon.Entry (gtk.HILDON_SIZE_FINGER_HEIGHT)
@@
-178,10
+178,10
@@
if __name__ == "__main__":
import time
class MockDownloader:
def __init__ (self):
import time
class MockDownloader:
def __init__ (self):
- self.alt = [("../hendrix.jpeg", "../hendrix-thumb.jpeg"),
- ("../hoover.jpeg", "../hoover-thumb.jpeg"),
- ("../backbeat.jpeg", "../backbeat-thumb.jpeg"),
- ("../dylan.jpeg", "../dylan-thumb.jpeg")]
+ self.alt = [("../hendrix.jpeg", "../thumb1.124.jpeg"),
+ ("../hoover.jpeg", "../thumb2.124.jpeg"),
+ ("../backbeat.jpeg", "../thumb3.124.jpeg"),
+ ("../dylan.jpeg", "../thumb5.jpeg")]
def get_alternatives (self, album, artist, amount):
for a in self.alt:
time.sleep (1)
def get_alternatives (self, album, artist, amount):
for a in self.alt:
time.sleep (1)
@@
-197,7
+197,7
@@
if __name__ == "__main__":
def clicked_button (self):
def clicked_button (self):
- aadd = AlbumArtSelectionDialog (w, "rory gallagher", "irish tour", 4, MockDownloader ())
+ aadd = AlbumArtSelectionDialog (w, "joe henderson", "blue note", 4, MockDownloader ())
aadd.show_all ()
response = aadd.run ()
if response == gtk.RESPONSE_CLOSE or response == gtk.RESPONSE_DELETE_EVENT or response == gtk.RESPONSE_REJECT:
aadd.show_all ()
response = aadd.run ()
if response == gtk.RESPONSE_CLOSE or response == gtk.RESPONSE_DELETE_EVENT or response == gtk.RESPONSE_REJECT: