diff options
author | Koop Mast <kwm@FreeBSD.org> | 2015-04-11 15:23:35 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2015-04-11 15:23:35 +0000 |
commit | e71ef7738beda5197f7d3aa91ab185abb671b96d (patch) | |
tree | a27a25843f738b357e8ebdb7bf1403a7884f6fe9 /x11-toolkits/gtk20 | |
parent | 1402a5b2110ab112cc71943a2baf5b3b5dd5fd63 (diff) | |
download | ports-e71ef7738beda5197f7d3aa91ab185abb671b96d.tar.gz ports-e71ef7738beda5197f7d3aa91ab185abb671b96d.zip |
Notes
Diffstat (limited to 'x11-toolkits/gtk20')
-rw-r--r-- | x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in b/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in new file mode 100644 index 000000000000..6e9e7e4640c3 --- /dev/null +++ b/x11-toolkits/gtk20/files/patch-demos_gtk-demo_geninclude.pl.in @@ -0,0 +1,50 @@ +--- files/patch-demos_gtk-demo_geninclude.pl.in (revision 0) ++++ files/patch-demos_gtk-demo_geninclude.pl.in (working copy) +@@ -0,0 +1,47 @@ ++--- demos/gtk-demo/geninclude.pl.in.orig 2014-09-29 20:02:16 UTC +++++ demos/gtk-demo/geninclude.pl.in ++@@ -40,7 +40,7 @@ foreach $href (@demos) { ++ my $do_next = 0; ++ ++ # parent detected ++- if (defined @parents) { +++ if (@parents) { ++ foreach $foo (@parents) { ++ if ($foo eq $parent_name) { ++ $do_next = 1; ++@@ -54,7 +54,7 @@ foreach $href (@demos) { ++ ++ push @parents, $parent_name; ++ ++- $tmp = (defined @child_arrays)?($#child_arrays + 1):0; +++ $tmp = (@child_arrays)?($#child_arrays + 1):0; ++ push @child_arrays, "child$tmp"; ++ ++ push @demos, {"title" => $parent_name, "file" => "NULL", ++@@ -62,7 +62,7 @@ foreach $href (@demos) { ++ } ++ } ++ ++-if (defined @parents) { +++if (@parents) { ++ $i = 0; ++ for ($i = 0; $i <= $#parents; $i++) { ++ $first = 1; ++@@ -105,7 +105,7 @@ if (defined @parents) { ++ } @demos_old; ++ ++ # sort the child arrays ++-if (defined @child_arrays) { +++if (@child_arrays) { ++ for ($i = 0; $i <= $#child_arrays; $i++) { ++ @foo_old = @{$child_arrays[$i]}; ++ ++@@ -133,7 +133,7 @@ foreach $href (@demos) { ++ print ", \n"; ++ } ++ ++- if (defined @parents) { +++ if (@parents) { ++ for ($i = 0; $i <= $#parents; $i++) { ++ if ($parents[$i] eq $href->{title}) { ++ |