[gtkmm] Deprecate some properties that use Gdk::Color.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Deprecate some properties that use Gdk::Color.
- Date: Fri, 24 Feb 2012 12:32:54 +0000 (UTC)
commit 0871f34e8be99098ac0d77d8cfa3ef5f20059c98
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Feb 24 13:31:05 2012 +0100
Deprecate some properties that use Gdk::Color.
* gtk/src/colorbutton.hg:
* gtk/src/texttag.hg: Use the new _WRAP_PROPERTY() deprecated option,
in the latext glibmm in git master. These have replacements, which the
documentation comment suggests.
ChangeLog | 9 +++++++++
gtk/src/colorbutton.hg | 2 +-
gtk/src/texttag.hg | 6 +++---
3 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a481881..1aebdb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-02-24 Murray Cumming <murrayc murrayc com>
+
+ Deprecate some properties that use Gdk::Color.
+
+ * gtk/src/colorbutton.hg:
+ * gtk/src/texttag.hg: Use the new _WRAP_PROPERTY() deprecated option,
+ in the latext glibmm in git master. These have replacements, which the
+ documentation comment suggests.
+
2012-02-22 Murray Cumming <murrayc murrayc com>
TextTag: Add RGBA versions of the properties.
diff --git a/gtk/src/colorbutton.hg b/gtk/src/colorbutton.hg
index 9ac6b9f..842d5f2 100644
--- a/gtk/src/colorbutton.hg
+++ b/gtk/src/colorbutton.hg
@@ -127,7 +127,7 @@ public:
_WRAP_PROPERTY("use-alpha", bool)
_WRAP_PROPERTY("title", Glib::ustring)
- _WRAP_PROPERTY("color", Gdk::Color) //TODO: Deprecated
+ _WRAP_PROPERTY("color", Gdk::Color, deprecated "Use property_rgba() instead.)
_WRAP_PROPERTY("rgba", Gdk::RGBA)
_WRAP_PROPERTY("alpha", guint16) //Todo: Remove thsi when we remove the "color" property too.
diff --git a/gtk/src/texttag.hg b/gtk/src/texttag.hg
index 13cab3c..d420b6a 100644
--- a/gtk/src/texttag.hg
+++ b/gtk/src/texttag.hg
@@ -75,9 +75,9 @@ public:
_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-gdk", Gdk::Color, deprecated "Use property_background_rgba() instead.")
_WRAP_PROPERTY("background-rgba", Gdk::RGBA)
- _WRAP_PROPERTY("foreground-gdk", Gdk::Color)
+ _WRAP_PROPERTY("foreground-gdk", Gdk::Color, deprecated "Use property_foreground_rgba() instead.")
_WRAP_PROPERTY("foreground-rgba", Gdk::RGBA)
_WRAP_PROPERTY("font", Glib::ustring)
_WRAP_PROPERTY("font-desc", Pango::FontDescription)
@@ -107,7 +107,7 @@ public:
_WRAP_PROPERTY("tabs", Pango::TabArray)
_WRAP_PROPERTY("invisible", bool)
_WRAP_PROPERTY("paragraph-background", Glib::ustring)
- _WRAP_PROPERTY("paragraph-background-gdk", Gdk::Color)
+ _WRAP_PROPERTY("paragraph-background-gdk", Gdk::Color, deprecated "Use property_paragraph_background_rgba() instead.")
_WRAP_PROPERTY("paragraph-background-rgba", Gdk::RGBA)
_WRAP_PROPERTY("accumulative-margin", bool)
_WRAP_PROPERTY("background-set", bool)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]