[gtk+] Forgotten file



commit 1d72682332cfac909e62f3ba1cf3d7ee3c7d1490
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 25 20:25:43 2012 -0400

    Forgotten file
    
    This change to geninclude.pl.in is needed to make my commit
    91d01434bc77b454d1f59ab72d8dbed97c7269f1 work.

 demos/gtk-demo/geninclude.pl.in |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/geninclude.pl.in b/demos/gtk-demo/geninclude.pl.in
index 48181b2..9b98663 100755
--- a/demos/gtk-demo/geninclude.pl.in
+++ b/demos/gtk-demo/geninclude.pl.in
@@ -23,13 +23,20 @@ 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, {"title" => $title, "file" => $file,
+    push @demos, {"title" => $title, "file" => "$file $extra",
 		  "func"  => "do_$basename"};
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]