mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 13:09:41 -06:00
4619a7b38c
At the moment all major distributions feature Glade-3 which tends to save a lot of lines less compared to Glade-2 because it does not define properties whose values equal the default ones specified by Gtk+. Unfortunately though, only very recent versions of Glade, v3.5.3+, address the following two issues: (1) GtkTable attachments are written in different order each times, rendering diffs unusable. (2) Currently we depend on the ability to use a name multiple times in a single glade file and only newer versions allow to have uniqueness be applied to each top-level widget. Sorry for the confusion. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17967 57a11ea4-9604-0410-9ed3-97b8803252fd
40 lines
737 B
Bash
Executable File
40 lines
737 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Remove entries that are for post-gtk2.6 attributes. Glade on a
|
|
# gtk2.6 system will complain when unknown attributes are present on a
|
|
# 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 \
|
|
sed -i -e '/name="urgency_hint"/d' \
|
|
-e '/name="pack_direction"/d' \
|
|
-e '/name="child_pack_direction"/d'
|
|
|
|
# GTK 2.6 (now allowed)
|
|
# add_tearoffs
|
|
# angle
|
|
# ellipsize
|
|
# focus_on_map
|
|
# hover_expand
|
|
# hover_selection
|
|
# single_line_mode
|
|
# width_chars
|
|
#
|
|
# GTK 2.8
|
|
# child_pack_direction
|
|
# pack_direction
|
|
# urgency_hint
|
|
#
|
|
# GTK 2.10
|
|
# (none)
|
|
#
|