Import GtkTreeView from GTK+ 2.0-2.20.1 renamed as PsppSheetView.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 24 Apr 2012 05:39:58 +0000 (22:39 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 25 Apr 2012 05:41:22 +0000 (22:41 -0700)
commitd64431ef201b3031adaca5643e35274c0cee2fa5
tree5fcc6c9e5d2f4959bff6af2261f9ca7f83207d41
parent1b4785cbce99af4c195b5ddd9e08b3f3c3569bd5
Import GtkTreeView from GTK+ 2.0-2.20.1 renamed as PsppSheetView.

This includes minimal modifications to make it compile and link
cleanly.

I used the following Perl script to do the bulk of the renaming:

for $pair (['tree_view_column', 'sheet_view_column'],
           ['tree_selection', 'sheet_selection'],
           ['tree_view', 'sheet_view'],
           ['rbtree', 'rbtree'],
           ['rbnode', 'rbnode']) {
    my ($from, $to) = @$pair;

    my ($tfrom) = join ('', map ("\u$_", split ('_', $from)));
    my ($tto) = join ('', map ("\u$_", split ('_', $to)));

    s/gtk_$from/pspp_$to/g;
    s/\Ugtk_$from/\Upspp_$to/g;
    s/GTK_TYPE_\U$from/PSPP_TYPE_\U$to/g;
    s/GTK_IS_\U$from/PSPP_IS_\U$to/g;
    s/Gtk$tfrom/Pspp$tto/g;
}

s/GtkTreeCellDataFunc/PsppSheetCellDataFunc/g;
s/GtkTreeDestroyCountFunc/PsppSheetDestroyCountFunc/g;
src/ui/gui/automake.mk
src/ui/gui/marshaller-list
src/ui/gui/pspp-rb-tree.c [new file with mode: 0644]
src/ui/gui/pspp-rb-tree.h [new file with mode: 0644]
src/ui/gui/pspp-sheet-private.h [new file with mode: 0644]
src/ui/gui/pspp-sheet-selection.c [new file with mode: 0644]
src/ui/gui/pspp-sheet-selection.h [new file with mode: 0644]
src/ui/gui/pspp-sheet-view-column.c [new file with mode: 0644]
src/ui/gui/pspp-sheet-view-column.h [new file with mode: 0644]
src/ui/gui/pspp-sheet-view.c [new file with mode: 0644]
src/ui/gui/pspp-sheet-view.h [new file with mode: 0644]