add gramps widget catalog for use with glade-3
svn: r12809
This commit is contained in:
parent
7f0669fac8
commit
e32b393920
14
src/glade/catalog/grampswidgets.py
Normal file
14
src/glade/catalog/grampswidgets.py
Normal 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)
|
18
src/glade/catalog/grampswidgets.xml
Normal file
18
src/glade/catalog/grampswidgets.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user