* src/GrampsWidgets.py (IconButton): Replace event box with button.
svn: r6526
This commit is contained in:
parent
b371f219d3
commit
019fa312ad
@ -3,6 +3,8 @@
|
|||||||
* data/gramps.schemas.in: add family-warn back in
|
* data/gramps.schemas.in: add family-warn back in
|
||||||
|
|
||||||
2006-05-02 Alex Roitman <shura@gramps-project.org>
|
2006-05-02 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/GrampsWidgets.py (IconButton): Replace event box with button.
|
||||||
|
|
||||||
* configure.in: Generate new Makefiles.
|
* configure.in: Generate new Makefiles.
|
||||||
* src/GenericFilters.py: Remove.
|
* src/GenericFilters.py: Remove.
|
||||||
* src/Filters: Move filtering to its own package.
|
* src/Filters: Move filtering to its own package.
|
||||||
|
@ -76,15 +76,16 @@ class LinkLabel(gtk.EventBox):
|
|||||||
self.label.set_text(text)
|
self.label.set_text(text)
|
||||||
self.label.set_use_markup(True)
|
self.label.set_use_markup(True)
|
||||||
|
|
||||||
class IconButton(gtk.EventBox):
|
class IconButton(gtk.Button):
|
||||||
|
|
||||||
def __init__(self, func, handle, icon=gtk.STOCK_EDIT,
|
def __init__(self, func, handle, icon=gtk.STOCK_EDIT,
|
||||||
size=gtk.ICON_SIZE_MENU):
|
size=gtk.ICON_SIZE_MENU):
|
||||||
gtk.EventBox.__init__(self)
|
gtk.Button.__init__(self)
|
||||||
image = gtk.Image()
|
image = gtk.Image()
|
||||||
image.set_from_stock(icon, size)
|
image.set_from_stock(icon, size)
|
||||||
image.show()
|
image.show()
|
||||||
self.add(image)
|
self.add(image)
|
||||||
|
self.set_relief(gtk.RELIEF_NONE)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
if func:
|
if func:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user