Code review comment for lp:~romaia/stoq/ideale

Revision history for this message
George Kussumoto (georgeyk) wrote :

Ficou legal!

=== modified file 'stoq/gui/stock/stock.py'
--- stoq/gui/stock/stock.py 2009-07-27 18:19:18 +0000
+++ stoq/gui/stock/stock.py 2009-09-10 17:00:40 +0000

@@ -131,6 +126,30 @@
         items.insert(0, [_('All branches'), None])
         return items

+ def _setup_widgets(self):
+ space = gtk.EventBox()
+ space.show()
+ self.hbox7.pack_start(space)
+
+ self.image = gtk.Image()
+
+ button = gtk.Button()
+ button.set_size_request(74, 64)
+ button.set_image(self.image)
+ button.set_relief(gtk.RELIEF_NONE)
+ button.show()
+ button.connect('clicked', self._on_image_button__clicked)
+ self.hbox7.pack_start(button, False, False)
+ self.image_button = button
+
+

uma linha sobrando acima.
Atualiza o nome hbox7 para algo melhor, tipo button_box.

review: Approve (code-review)

« Back to merge proposal