[gtkmm] Segfault at changing button label
- From: "Jeffrey Rush" <rushjeffrey hotmail com>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Segfault at changing button label
- Date: Thu, 04 Jul 2002 14:23:53 +0200
Hello everyone,
I'm still having troubles when trying to change the label of
a togglebutton. I have following code segment:
...
Gtk::ToggleButton *mytogglebutton = manage(new class
Gtk::ToggleButton("Test"));
...
Gtk::Label *testlabel (dynamic_cast<Gtk::Label
*>(mytogglebutton->get_child()));
if (testlabel != NULL)
testlabel->set("New label text");
I get a segmentation fault (debugger 'pointing' to that get_child routine).
What am I doing wrong? Or is there a problem with dynamic_cast?
Thanks for helping!
Bye,
Jeffrey Rush.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]