File containing main program: http://cpp.pastebin.com/kfLzrbj2
File containing the only header: http://cpp.pastebin.com/0vrEiQqD
File containing the only actual file: http://cpp.pastebin.com/ZneYXr1j

I was hoping someone could look over my experiment with the notepad
container in gtkmm. The experiment is really simple: it consists of a single
notepad, with 2 buttons. One button is for creating tabs (aka pages), and
one *should* be for closing the tab. It's well enough explained in the
documentation for anyone that knows how to use gtkmm.
I think I got confused with a really elementary concept in C++... I thought
that you could catenate strings and int's somehow just using the '+' in the
source. Like...
int i=0;
cout << "sentence" + i;   // this will output sentence0.
but this would have been cout << "sentence" << i just as well...
It was just minor confusion, there. I can probably fix that after a little
bit of reading, but after messing with this implementation with the goal of
figuring out what is making it quit when I use the "Close Tab" button, I
havn't been worried about the simple thing.
I went back, and after looking it over I thought the problem could be due to
the fact that I'm using the same label to initialize each page that's being
created. I'm wondering if that is the problem.

Anyway, I'm sure there are some errors in there and someone will read it and
have something to say. I want constructive criticism. I'm cool with
everything, but please don't be rude.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to