* src/GrampsWidgets.py (WarnButton): Replace event box with button.
svn: r6527
This commit is contained in:
parent
019fa312ad
commit
1b1e62bf29
@ -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.
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user