Mercurial > pidgin
view finch/libgnt/pygnt/gendef.sh @ 20299:62d0c7885618
applied changes from 2dc8fc60a9db3bce83fb319e9406ec3c01575911
through 63162f419a649bdd77b85cff73c4c490ec863ed1
log message:
| Pounce handlers cannot have a null callback.
committer: Luke Schierer <lschiere@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 19 Oct 2007 16:22:50 +0000 |
parents | 6df41719037c |
children |
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 echo -n "Generating definitions for ${file} ... " python /usr/share/pygtk/2.0/codegen/h2def.py ../$file >> gnt.def echo "Done" 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