Re: clone seg fault
| From: | Andrei Zmievski | Date: | Sat, 27 Jan 2007 19:29:59 +0000 |
| Subject: | Re: clone seg fault | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3603@lists.php.net to get a copy of this message | ||
Hmm, cloning might be problematic. I don't know if Gtk+ supports the concept of copying an object with all its possible hierachies and properties.. and doing it manually is pretty difficult too.
-Andrei
On Dec 18, 2006, at 1:15 PM, Pablo Dall'Oglio wrote:
This clone gives me a segmentation fault.
Am I missing something somewhere ?
or there's something wrong internally ?
<?php
$janela = new GtkWindow;
$vbox = new GtkVBox;
$janela->add($vbox);
$botao1 = new GtkButton('botao 1');
$botao2 = clone $botao1;
$botao2->set_label('botao 2');
$vbox->pack_start($botao1);
$vbox->pack_start($botao2);
$janela->show_all();
Gtk::Main();
?>
best regards
Pablo
--:: Pablo Dall'Oglio
:: www.pablo.blog.br
--PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php