Re: using popup dialog boxes with perl gladexml
- From: Murray Cumming <murrayc murrayc com>
- To: muppet <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: using popup dialog boxes with perl gladexml
- Date: Sat, 10 Apr 2004 23:55:14 +0200
On Fri, 2004-04-09 at 19:09, muppet wrote:
Dan Lyke said:
Some quick test code shows me that if you do
my $dialog = $gladexml->get_widget('fileselectionSaveAs');
$dialog->show();
$dialog->run();
$dialog->destroy();
You cannot then do it again. That widget is gone.
this is a big PITA for GnomeAboutDialogs, because they auto-destroy
themselves; thus they are single-use only from glade. i recall discussing
this last year.
In gtkmm, we disable all that auto-destroy stuff, because we don't want
GTK+ doing C-specific memory management.
This is possible because we actually instantiate derived GTypes, with
custom vfunc implementations, even with libglade.
--
Murray Cumming
www.murrayc.com
murrayc murrayc com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]