add gramps widget catalog for use with glade-3

svn: r12809
This commit is contained in:
Gerald Britton 2009-07-16 13:52:32 +00:00
parent 7f0669fac8
commit e32b393920
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import gobject
import gtk
class ValidatableMaskedEntry(gtk.Entry):
__gtype_name__ = 'ValidatableMaskedEntry'
def __init__(self):
gtk.Entry.__init__(self)
class StyledTextEditor(gtk.TextView):
__gtype_name__ = 'StyledTextEditor'
def __init__(self):
gtk.Entry.__init__(self)

View File

@ -0,0 +1,18 @@
<glade-catalog name="grampswidgets" library="gladepython"
domain="glade-3" depends="gtk+">
<init-function>glade_python_init</init-function>
<glade-widget-classes>
<glade-widget-class
name="ValidatableMaskedEntry"
title="Validatable Masked Entry"
generic-name="valid_mask"/>
<glade-widget-class
name="StyledTextEditor"
title="Styled Text Editor"
generic-name="styled_text"/>
</glade-widget-classes>
<glade-widget-group name="GrampsWidgets" title="Gramps Widgets">
<glade-widget-class-ref name="ValidatableMaskedEntry"/>
<glade-widget-class-ref name="StyledTextEditor"/>
</glade-widget-group>
</glade-catalog>