Compile error when trying to read background color property for a text tag
- From: Raj Kiran Grandhi <grkiran gmail com>
- To: gtkmm-list gnome org
- Subject: Compile error when trying to read background color property for a text tag
- Date: Sat, 2 Apr 2005 06:44:06 +0530
Hi,
Is there a way to get the value of the background color property for a
text tag? The following code I use fails to compile:
Gtk::TextView p_TextView;
Glib::RefPtr<Gtk::TextTag> tag_word;
tag_word = p_TextView.get_buffer()->create_tag("tag-word");
Glib::ustring color;
color = tag_word->property_background().get_value();
However I get the following error during compiling:
word_view.cpp: In member function `void WordView::set_visible(int)':
word_view.cpp:268: error: `get_value' undeclared (first use this function)
word_view.cpp:268: error: (Each undeclared identifier is reported only
once for each function it appears in.)
make: *** [word_view.o] Error 1
However in the doxygen generated docs, the member function get_value is
defined for Glib::PropertyProxy_ReadOnly<T>
Has anyone else faced this problem? Please help me out.
Regards,
Rajkiran
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]