2009-03-02 15:15:41 -06:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2010-02-06 14:22:21 -06:00
|
|
|
# Remove entries that are for post-gtk2.8 attributes. Glade on a
|
|
|
|
# gtk2.8 system will complain when unknown attributes are present on a
|
2009-03-02 15:15:41 -06:00
|
|
|
# widget.
|
|
|
|
#
|
|
|
|
# This script should be run from the top-level source directory before
|
|
|
|
# committing changed glade files.
|
|
|
|
#
|
|
|
|
|
|
|
|
if test -d src ; then
|
|
|
|
SEARCHDIRS=src
|
|
|
|
else
|
|
|
|
SEARCHDIRS=.
|
|
|
|
fi
|
|
|
|
|
|
|
|
find ${SEARCHDIRS} -name \*.glade | xargs \
|
2010-02-06 14:22:21 -06:00
|
|
|
sed -i -e '/name="image_position"/d' \
|
|
|
|
-e '/name="inner_border"/d'
|
2009-03-02 15:15:41 -06:00
|
|
|
|
|
|
|
# GTK 2.6 (now allowed)
|
|
|
|
# add_tearoffs
|
|
|
|
# angle
|
|
|
|
# ellipsize
|
|
|
|
# focus_on_map
|
|
|
|
# hover_expand
|
|
|
|
# hover_selection
|
|
|
|
# single_line_mode
|
|
|
|
# width_chars
|
|
|
|
#
|
2010-02-06 14:22:21 -06:00
|
|
|
# GTK 2.8 (now allowed)
|
2009-03-02 15:15:41 -06:00
|
|
|
# child_pack_direction
|
|
|
|
# pack_direction
|
|
|
|
# urgency_hint
|
|
|
|
#
|
|
|
|
# GTK 2.10
|
2010-02-06 14:22:21 -06:00
|
|
|
# image_position
|
|
|
|
# inner_border
|