[gtk+] gtk-demo: Fix geniclude.pl.in to not look for extra files
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk-demo: Fix geniclude.pl.in to not look for extra files
- Date: Sat, 2 Feb 2013 00:47:00 +0000 (UTC)
commit 5607a2125fa712f99abf21901d704f1831d7cea4
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 2 00:21:15 2013 +0100
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.
demos/gtk-demo/geninclude.pl.in | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/demos/gtk-demo/geninclude.pl.in b/demos/gtk-demo/geninclude.pl.in
index 0848416..e031731 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"};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]