Re: ext/libglade complete?

From: Date: Sun, 30 Oct 2005 19:07:05 +0000
Subject: Re: ext/libglade complete?
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1990@lists.php.net to get a copy of this message
On Oct 30, 2005, at 8:08 AM, Steph Fox wrote:
2. signal_autoconnect() will take an object instance specified via Glade (e.g. 'button3'). It calls connect_object() for those calls, and connect() for the rest. Same goes for *_after(). We don't need it to do any more than that. Glade 2 itself doesn't offer further connect_* alternatives, so to offer anything further would lead to users having to alter the XML file manually.
We're all getting confused here, partly because I don't have Glade2 installed yet, I think. When you talk about "object instance specified via Glade ('button'3)", are you talking about a widget named 'button3'? If so, it has nothing to do with what I suggested, which is being able to easily connect a bunch of callbacks to methods of a PHP object. Like this: class MyApp {
        function on_ok_clicked($button) { ... }
        function on_notebook_switched_page($notebook, $page) { ... }
        function on_destroy($widget) { ... }
} $app = new MyApp(); $glade = new GladeXML($file); $glade->signal_autoconnect_object($app); Now everything is connected to the methods of that object. - Andrei

« previous php.gtk.dev (#1990) next »