view finch/libgnt/pygnt/gendef.sh @ 19974:7a118cacd4b0

propagate from branch 'im.pidgin.pidgin' (head 671cfe949215447db0da7081a7e1501693ab4f98) to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head ec0c632512dfdd332d217cb3173c05338f1feb1c)
author Gabriel Schulhof <nix@go-nix.ca>
date Sun, 19 Aug 2007 13:40:34 +0000
parents 401c53d7702c
children 6df41719037c
line wrap: on
line source

#!/bin/sh
FILES="
	gntwidget.h
	gntbindable.h
	gntbox.h
	gntbutton.h
	gntcheckbox.h
	gntclipboard.h
	gntcolors.h
	gntcombobox.h
	gntentry.h
	gntfilesel.h
	gntkeys.h
	gntlabel.h
	gntline.h
	gntmarshal.h
	gntmenu.h
	gntmenuitem.h
	gntmenuitemcheck.h
	gntslider.h
	gntstyle.h
	gnttextview.h
	gnttree.h
	gntutils.h
	gntwindow.h
	gntwm.h
	gntws.h
	gnt.h"

# Generate the def file
rm -f gnt.def
for file in $FILES
do
	python /usr/share/pygtk/2.0/codegen/h2def.py ../$file >> gnt.def
done

# Remove the definitions about the enums
ENUMS="
GNT_TYPE_ALIGNMENT
GNT_TYPE_COLOR_TYPE
GNT_TYPE_MENU_TYPE
GNT_TYPE_STYLE
GNT_TYPE_KEY_PRESS_MODE
GNT_TYPE_ENTRY_FLAG
GNT_TYPE_TEXT_FORMAT_FLAGS
GNT_TYPE_TEXT_VIEW_FLAG
"

for enum in $ENUMS
do
	sed -ie s/^.*gtype-id\ \"$enum\".*$//g gnt.def
done