trouble shooting...
- From: Kenneth Adam Miller <kennethadammiller gmail com>
- To: gtkmm-list gnome org
- Subject: trouble shooting...
- Date: Fri, 19 Mar 2010 17:43:43 -0600
File containing main program:
http://cpp.pastebin.com/kfLzrbj2File containing the only header:
http://cpp.pastebin.com/0vrEiQqD
File containing the only actual file:
http://cpp.pastebin.com/ZneYXr1jI 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]