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

svn: r6527
This commit is contained in:
Alex Roitman 2006-05-03 03:03:41 +00:00
parent 019fa312ad
commit 1b1e62bf29
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
2006-05-02 Alex Roitman <shura@gramps-project.org>
* src/GrampsWidgets.py (IconButton): Replace event box with button.
* src/GrampsWidgets.py (WarnButton.__init__):
* configure.in: Generate new Makefiles.
* src/GenericFilters.py: Remove.

View File

@ -91,9 +91,9 @@ class IconButton(gtk.Button):
if func:
self.connect('button-press-event', func, handle)
class WarnButton(gtk.EventBox):
class WarnButton(gtk.Button):
def __init__(self):
gtk.EventBox.__init__(self)
gtk.Button.__init__(self)
image = gtk.Image()
# Some versions of FreeBSD don't seem to have STOCK_INFO
@ -104,6 +104,7 @@ class WarnButton(gtk.EventBox):
image.show()
self.add(image)
self.set_relief(gtk.RELIEF_NONE)
self.show()
self.func = None
self.hide()