mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
gtk-demo: Fix geniclude.pl.in to not look for extra files
This was supposed to be fixed in
0866772819
but I fixed the generated
geninclude.pl. Oops.
This commit is contained in:
parent
bc473257c7
commit
5607a2125f
@ -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"};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user