com gtk/php-gtk: Disabled caching of created demos as this doesn't seem to work: demos/phpgtk2-demo.php

[email protected] (David Soria Parra) Tue, 18 Oct 2005 18:00:34 +0000
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    a76fa20400b231f9d9a1a493a9afc5cb112244b2
Author:    Christian Weiske <[email protected]>         Tue, 18 Oct 2005 18:00:34 +0000
Parents:   db1eef3235dba563e70e9931f42710412f04c3e8
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=a76fa20400b231f9d9a1a493a9afc5cb112244b2

Log:
Disabled caching of created demos as this doesn't seem to work

Changed paths:
  M  demos/phpgtk2-demo.php


Diff:
a76fa20400b231f9d9a1a493a9afc5cb112244b2
diff --git a/demos/phpgtk2-demo.php b/demos/phpgtk2-demo.php
index 1cdf79e..9aff717 100644
--- a/demos/phpgtk2-demo.php
+++ b/demos/phpgtk2-demo.php
@@ -22,7 +22,7 @@ class PHPGtk2Demo extends GtkWindow
     {
         parent::__construct();
 
-        $this->connect_object('destroy', array('gtk', 'main_quit'));
+        $this->connect_simple('destroy', array('gtk', 'main_quit'));
         
         $this->set_title('PHP-Gtk2 Demos');
         $this->set_default_size(800, 400);
@@ -148,11 +148,11 @@ class PHPGtk2Demo extends GtkWindow
             $this->demobox->remove($this->demobox->get_child());
         }
         
-        if (!isset($this->cache[$info->classname])) {
+//        if (!isset($this->cache[$info->classname])) {
             $subobj = $obj->__create_box();
             $this->cache[$info->classname] = null;
             $this->cache[$info->classname] = $subobj;
-        }
+//        }
         $this->demobox->add_with_viewport($this->cache[$info->classname]);
         $this->demobox->show_all();