[gtkmm] glademm get_widget_derived
- From: Christer Palm <palm nogui se>
- To: gtkmm-list gnome org
- Subject: [gtkmm] glademm get_widget_derived
- Date: Tue, 16 Sep 2003 02:00:50 +0200
Hi!
I'm sure I'm missing something obvious, but how do I instantiate more
than one instance of a widget using glademm's get_widget_derived()?
My main window brings up various dialog boxes using:
MyDialog* my_dialog = 0;
glade->get_widget_derived("myDialog", my_dialog);
if (my_dialog) {
int rc = my_dialog->run();
}
The second time I bring up a certain dialog, I get the following warning:
glibmm-WARNING **: This object, of type gtkmm__GtkDialog, already has a
wrapper.
You should use wrap() instead of a constructor.
--
Christer Palm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]