From a20a57de81489e8e008a11850b657cc0c47532a6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 3 May 2006 02:33:29 +0000 Subject: [PATCH] * src/GrampsWidgets.py (IconButton): Replace event box with button. svn: r6526 --- gramps2/ChangeLog | 2 ++ gramps2/src/GrampsWidgets.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 989a3ab50..e37431033 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -3,6 +3,8 @@ * data/gramps.schemas.in: add family-warn back in 2006-05-02 Alex Roitman + * 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. diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index b9f8a540a..465c92022 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -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: