[gtkmm] TextTag: Add RGBA versions of the properties.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] TextTag: Add RGBA versions of the properties.
- Date: Wed, 22 Feb 2012 13:41:23 +0000 (UTC)
commit 96145f0b9476b32b56fe84cf4f257dd894e5488f
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Feb 22 14:41:14 2012 +0100
TextTag: Add RGBA versions of the properties.
* gtk/src/texttag.hg: These properties were added to the C API a while ago.
ChangeLog | 6 ++++++
gtk/src/texttag.hg | 4 +++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a492999..a481881 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2012-02-22 Murray Cumming <murrayc murrayc com>
+ TextTag: Add RGBA versions of the properties.
+
+ * gtk/src/texttag.hg: These properties were added to the C API a while ago.
+
+2012-02-22 Murray Cumming <murrayc murrayc com>
+
Deprecate more methods that use Gtk::Color.
* gdk/src/window.hg: set_background(Color):
diff --git a/gtk/src/texttag.hg b/gtk/src/texttag.hg
index 9e439bb..dbd9c4d 100644
--- a/gtk/src/texttag.hg
+++ b/gtk/src/texttag.hg
@@ -71,12 +71,13 @@ public:
_WRAP_SIGNAL(bool event(const Glib::RefPtr<Glib::Object>& event_object, GdkEvent* event, const TextIter& iter), "event")
- //TODO: There should be RGBA versions: https://bugzilla.gnome.org/show_bug.cgi?id=636697
_WRAP_PROPERTY("name", Glib::ustring) //construct-only.
_WRAP_PROPERTY("background", Glib::ustring)
_WRAP_PROPERTY("foreground", Glib::ustring)
_WRAP_PROPERTY("background-gdk", Gdk::Color)
+ _WRAP_PROPERTY("background-rgba", Gdk::RGBA)
_WRAP_PROPERTY("foreground-gdk", Gdk::Color)
+ _WRAP_PROPERTY("foreground-rgba", Gdk::RGBA)
_WRAP_PROPERTY("font", Glib::ustring)
_WRAP_PROPERTY("font-desc", Pango::FontDescription)
_WRAP_PROPERTY("family", Glib::ustring)
@@ -106,6 +107,7 @@ public:
_WRAP_PROPERTY("invisible", bool)
_WRAP_PROPERTY("paragraph-background", Glib::ustring)
_WRAP_PROPERTY("paragraph-background-gdk", Gdk::Color)
+ _WRAP_PROPERTY("paragraph-background-rgba", Gdk::RGBA)
_WRAP_PROPERTY("accumulative-margin", bool)
_WRAP_PROPERTY("background-set", bool)
_WRAP_PROPERTY("foreground-set", bool)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]