summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2013-02-02 00:21:15 +0100
committerBenjamin Otte <otte@redhat.com>2013-02-02 01:42:45 +0100
commit5607a2125fa712f99abf21901d704f1831d7cea4 (patch)
treec7a0155fcd8dd3c3e88dbe7346a4deb6edc5b4d2 /demos
parentbc473257c7ded972075a2fff5190919828797102 (diff)
downloadgtk+-5607a2125fa712f99abf21901d704f1831d7cea4.tar.gz
gtk-demo: Fix geniclude.pl.in to not look for extra files
This was supposed to be fixed in 08667728190dcd7e19ddbbead4add714fab23364 but I fixed the generated geninclude.pl. Oops.
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/gtk-demo/geninclude.pl.in9
1 files changed, 1 insertions, 8 deletions
diff --git a/demos/gtk-demo/geninclude.pl.in b/demos/gtk-demo/geninclude.pl.in
index 0848416068..e031731604 100755
--- a/demos/gtk-demo/geninclude.pl.in
+++ b/demos/gtk-demo/geninclude.pl.in
@@ -24,20 +24,13 @@ for $file (@ARGV) {
open INFO_FILE, $file or die "Cannot open '$file'\n";
$title = <INFO_FILE>;
$title =~ s@^\s*/\*\s*@@;
- $extra = "";
- if ($title =~ /^(.*)::(.*)$/) {
- $title = $1;
- $extra = " $2";
- }
$title =~ s@\s*$@@;
- $extra =~ s@^\s*@@;
- $extra =~ s@\s*$@@;
close INFO_FILE;
print "GtkWidget *do_$basename (GtkWidget *do_widget);\n";
- push @demos, {"name" => $basename, "title" => $title, "file" => "$file $extra",
+ push @demos, {"name" => $basename, "title" => $title, "file" => "$file",
"func" => "do_$basename"};
}