From 64768bb556ea1d81a2cb9eda50f1ffe0424b0aa6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 3 May 2006 03:03:41 +0000 Subject: [PATCH] * src/GrampsWidgets.py (WarnButton): Replace event box with button. svn: r6527 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsWidgets.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e37431033..99783f323 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -4,6 +4,7 @@ 2006-05-02 Alex Roitman * src/GrampsWidgets.py (IconButton): Replace event box with button. + * src/GrampsWidgets.py (WarnButton.__init__): * configure.in: Generate new Makefiles. * src/GenericFilters.py: Remove. diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index 465c92022..66c4283d0 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -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()