svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php

Justin Martin-5
frozenfire                               Thu, 18 Nov 2010 21:54:28 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305530

Log:
Moved signal generation to gen_docs DOC_CLASS block.

Changed paths:
    U   phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php

Modified: phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php
===================================================================
--- phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-18 21:47:56 UTC (rev 305529)
+++ phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-18 21:54:28 UTC (rev 305530)
@@ -1005,12 +1005,6 @@
  }
  gen_docs($class->name, DOC_CLASS);

- if(($class->isInstantiable() || $class->isInterface()) && $signals = GObject::signal_list_ids($class->getConstant("gtype"))) foreach($signals as $signal) {
- $signal = GObject::signal_query($signal, $class->getConstant("gtype"));
-
- write_doc($signal, DOC_SIGNAL);
- }
-
  if(basename($ext) == "gtk+") $OPTION["output"] = $classLevelOutput;
  }
  $OPTION["output"] = $initialOutput;
@@ -1085,6 +1079,14 @@
  write_doc($method, DOC_METHOD);
  }
  }
+
+ if( $OPTION['gtk'] &&
+ ($class->isInstantiable() || $class->isInterface()) &&
+ $signals = GObject::signal_list_ids($class->getConstant("gtype"))
+ ) foreach($signals as $signal) {
+ $signal = GObject::signal_query($signal, $class->getConstant("gtype"));
+ write_doc($signal, DOC_SIGNAL);
+ }
  } catch (Exception $e) {
  die('Error: '. $e->getMessage() ."\n");
  }


--
PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php