[gtkmm] Gdk::Color: Deprecate this.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk::Color: Deprecate this.
- Date: Wed, 9 Oct 2013 08:11:29 +0000 (UTC)
commit 7aacf6a8b816370a664700656a738ccb8ea2700f
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Oct 9 10:00:56 2013 +0200
Gdk::Color: Deprecate this.
* gdk/src/cellrenderertext.hg: Deprecate the properties that use
Gdk::Color now that they are deprecated (and replaced) in the C API.
* gdk/src/color.hg: Deprecate this now that it is only used by us for
deprecated API. The C API still uses GdkColor, but we can already
deprecate it.
gdk/src/color.hg | 6 +++++-
gtk/src/cellrenderertext.hg | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gdk/src/color.hg b/gdk/src/color.hg
index bd21a1d..eca9e5a 100644
--- a/gdk/src/color.hg
+++ b/gdk/src/color.hg
@@ -27,7 +27,8 @@ _DEFS(gdkmm,gdk)
namespace Gdk
{
-//TODO: Deprecate this? https://bugzilla.gnome.org/show_bug.cgi?id=636695
+//This is not actually deprecated in C, because of https://bugzilla.gnome.org/show_bug.cgi?id=636695
+//but all our uses of it in the gtkmm API are deprecated (and in C) so we can deprecate it in gtkmm.
/** Gdk::Color is used to describe an allocated or unallocated color.
* It contains the following data:
@@ -35,10 +36,13 @@ namespace Gdk
* red: The red component of the color. This is a value between 0 and 65535, with 65535 indicating full
intensitiy.
* green: The green component of the color.
* blue: The blue component of the color.
+ *
+ * @deprecated Use Gdk::RGBA instead.
*/
class Color
{
_CLASS_BOXEDTYPE(Color, GdkColor, NONE, gdk_color_copy, gdk_color_free)
+ _IS_DEPRECATED
public:
_CUSTOM_DEFAULT_CTOR
diff --git a/gtk/src/cellrenderertext.hg b/gtk/src/cellrenderertext.hg
index be9870d..df14d39 100644
--- a/gtk/src/cellrenderertext.hg
+++ b/gtk/src/cellrenderertext.hg
@@ -45,8 +45,8 @@ public:
_WRAP_PROPERTY("attributes", Pango::AttrList)
_WRAP_PROPERTY("background", Glib::ustring)
_WRAP_PROPERTY("foreground", Glib::ustring)
- _WRAP_PROPERTY("background-gdk", Gdk::Color)
- _WRAP_PROPERTY("foreground-gdk", Gdk::Color)
+ _WRAP_PROPERTY("background-gdk", Gdk::Color, deprecated "Use property_background_rgba() instead.")
+ _WRAP_PROPERTY("foreground-gdk", Gdk::Color, deprecated "Use property_background_rgba() instead.")
_WRAP_PROPERTY("background-rgba", Gdk::RGBA)
_WRAP_PROPERTY("foreground-rgba", Gdk::RGBA)
_WRAP_PROPERTY("font", Glib::ustring)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]