Re: [gtkmm] TextView
- From: Craig Slusher <ouslush columbus rr com>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] TextView
- Date: Thu, 17 Apr 2003 02:47:23 -0400
> And some example code:
> http://cvs.gnome.org/lxr/source/gtkmm/demos/gtk-demo/example_textview.cc#193
> (I think refBuffer->begin() or refBuffer->end() might be better there than
> refBuffer->get_iter_at_offset(0).
Yep, that code was the ticket. This is what I came up with now:
Gtk::TextView* p_about_description_text = NULL;
gui->get_widget("text_About_Description", p_about_description_text);
// Put the program name at the beginning of the TextView
if (p_about_description_text != NULL) {
Glib::RefPtr<Gtk::TextBuffer> text_buffer =
p_about_description_text->get_buffer();
text_buffer->insert(text_buffer->begin(), PROGRAM_NAME + " "); }
Thanks again!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]