* src/GrampsWidgets.py (IconButton): Replace event box with button.

svn: r6526
This commit is contained in:
Alex Roitman 2006-05-03 02:33:29 +00:00
parent 935dcb1fb9
commit a20a57de81
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
* data/gramps.schemas.in: add family-warn back in
2006-05-02 Alex Roitman <shura@gramps-project.org>
* src/GrampsWidgets.py (IconButton): Replace event box with button.
* configure.in: Generate new Makefiles.
* src/GenericFilters.py: Remove.
* src/Filters: Move filtering to its own package.

View File

@ -76,15 +76,16 @@ class LinkLabel(gtk.EventBox):
self.label.set_text(text)
self.label.set_use_markup(True)
class IconButton(gtk.EventBox):
class IconButton(gtk.Button):
def __init__(self, func, handle, icon=gtk.STOCK_EDIT,
size=gtk.ICON_SIZE_MENU):
gtk.EventBox.__init__(self)
gtk.Button.__init__(self)
image = gtk.Image()
image.set_from_stock(icon, size)
image.show()
self.add(image)
self.set_relief(gtk.RELIEF_NONE)
self.show()
if func: