Re: GtkDialog
| From: | Rich Payne | Date: | Mon, 16 Jul 2001 20:36:37 +0000 |
| Subject: | Re: GtkDialog | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2224@lists.php.net to get a copy of this message | ||
Hmmm.....stange. So I was running a 4.0.7-dev tree, I've back dated to
4.0.6 and I'm still getting the same problem, I cvs updated php-gtk and
tried to recompile and got this:
/bin/sh /usr/src/php-gtk/libtool --mode=compile gcc
-I. -I/usr/src/php-gtk/ext/gtk+ -I/usr/src/php-gtk/main -I/usr/src/php-gtk
-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend
-I/usr/include/php/TSRM -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-xml
-I/usr/src/php-gtk/main -DHAVE_CONFIG_H -g -O2 -c php_gtk+.c
gcc -I. -I/usr/src/php-gtk/ext/gtk+ -I/usr/src/php-gtk/main
-I/usr/src/php-gtk -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gnome-xml -I/usr/src/php-gtk/main -DHAVE_CONFIG_H -g -O2 -c
php_gtk+.c -fPIC -DPIC -o php_gtk+.lo
In file included from /usr/src/php-gtk/ext/gtk+/php_gtk+.h:84,
from /usr/src/php-gtk/main/php_gtk.h:56,
from php_gtk+.c:23:
/usr/src/php-gtk/ext/gtk+/gen_ce_gtk.h:96:1: unterminated argument list
invoking macro "PHP_GTK_EXPORT_CE"
make[3]: *** [php_gtk+.lo] Error 1
make[3]: Leaving directory `/usr/src/php-gtk/ext/gtk+'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-gtk/ext/gtk+'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-gtk/ext'
make: *** [all-recursive] Error 1
So, which version of php are you using?
I feel like I'm doing something really silly, but just can't see it!
--rdp
On Mon, 16 Jul 2001, Andrei Zmievski wrote:
> It works fine for me.. outputs:
>
> object(gtkvbox)(1) {
> [0]=>
> int(3)
> }
>
> On Mon, 16 Jul 2001, Rich Payne wrote:
> >
> > Can anybody tell me what's wrong with this? Am I not understanading the
> > docs on a GtkDialog properly?
> >
> > Class password_dialog extends GtkDialog {
> > function password_dialog($server) {
> > GtkDialog::GtkDialog();
> >
> > $this->set_title("Enter Password for $server");
> >
> > var_dump($this->vbox);
> >
> > $this->set_modal(TRUE);
> > $this->show_all();
> >
> > }
> > }
> >
> > The problem is that $this->vbox (and $this->action_area) return NULL,
> > where as per the GTK docs it should be a GtkVBox.
> >
> > this is being created from antoher class, something like:
> > $passwd_dialog = &new password_dialog($mailhost);
> > $passwd_dialog->show();
> >
> > ??
> >
> > --rdp
> >
> > --
> > Rich Payne
> > rpayne@alphalinux.org www.alphalinux.org
> >
> >
> > --
> > PHP GTK Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-gtk-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> -Andrei
>
> Nobody tried to design Windows - it just grew in random
> directions without any kind of thought behind it.
>
--
Rich Payne
rpayne@alphalinux.org www.alphalinux.org