gtk--: bug with widget instantiation?
- From: Christof Petig <christof petig wtal de>
- To: Gtk-List <gtk-list redhat com>
- Subject: gtk--: bug with widget instantiation?
- Date: Thu, 03 Sep 1998 17:09:30 +0200
Hi Tero & Co,
here's a really strange bug:
using the following statements (window1.cc:14) I get an SIGSEGV:
vector <Gtk_MenuItem> optionmenu1_menuitems;
optionmenu1_menuitems.push_back(Gtk_MenuItem("one"));
optionmenu1_menuitems.push_back(Gtk_MenuItem("three"));
optionmenu1_menuitems.push_back(Gtk_MenuItem("nine"));
optionmenu1_menuitems.push_back(Gtk_MenuItem("twentyseven"));
As I understand the current C++ standards and implementations this would
correspond to
- create an temporary MenuItem
- copy it into the vector
- destruct the temporary
Though I feel this is a kind of "don't do that" TM, I would really like
it working. Since using pointers is tiring.
If anybody tells me what's wrong, I would code it.
Regards
Christof
Attached is a program which uses this 'feature'.
Tested with:
gtk-1.0.4, gtkmm-0.9.7, egcs-1.0.3a
gtk-1.0.5, gtkmm-cvs, egcs-1.1a
test7.tgz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]