gtkmm r1117 - in trunk: . gtk/gtkmm gtk/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkmm r1117 - in trunk: . gtk/gtkmm gtk/src
- Date: Tue, 17 Mar 2009 10:15:53 +0000 (UTC)
Author: murrayc
Date: Tue Mar 17 10:15:53 2009
New Revision: 1117
URL: http://svn.gnome.org/viewvc/gtkmm?rev=1117&view=rev
Log:
2009-03-17 Murray Cumming <murrayc murrayc com>
* gtk/gtkmm/stockid.cc: Implement operator().
* gtk/src/textbuffer.ccg: Actually implement the const get_text(bool)
method. These fix undefined symbol linker errors when people try to use
these methods.
Modified:
trunk/ChangeLog
trunk/gtk/gtkmm/stockid.cc
trunk/gtk/src/textbuffer.ccg
Modified: trunk/gtk/gtkmm/stockid.cc
==============================================================================
--- trunk/gtk/gtkmm/stockid.cc (original)
+++ trunk/gtk/gtkmm/stockid.cc Tue Mar 17 10:15:53 2009
@@ -59,6 +59,11 @@
return *this;
}
+StockID::operator bool() const
+{
+ return !(id_.empty());
+}
+
bool StockID::equal(const StockID& rhs) const
{
// Do an exact per-byte comparison:
Modified: trunk/gtk/src/textbuffer.ccg
==============================================================================
--- trunk/gtk/src/textbuffer.ccg (original)
+++ trunk/gtk/src/textbuffer.ccg Tue Mar 17 10:15:53 2009
@@ -536,6 +536,12 @@
return get_text(begin(), end(), include_hidden_chars);
}
+Glib::ustring TextBuffer::get_text(bool include_hidden_chars) const
+{
+ TextBuffer* unconst = const_cast<TextBuffer*>(this); //Because begin() and end() are not const.
+ return get_text(unconst->begin(), unconst->end(), include_hidden_chars);
+}
+
Glib::StringArrayHandle TextBuffer::get_serialize_formats() const
{
int n_atoms = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]