[gtkmm] Deprecate more methods that use Gtk::Color.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Deprecate more methods that use Gtk::Color.
- Date: Wed, 22 Feb 2012 12:25:26 +0000 (UTC)
commit f14939d3a9af26e57df592b358ea5bfe7f204b66
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Feb 22 13:25:12 2012 +0100
Deprecate more methods that use Gtk::Color.
* gdk/src/window.hg: set_background(Color):
* gtk/src/colorbutton.hg: set_color(), set_alpha(), constructor: Deprecate
these, as they are deprecated in the C API.
ChangeLog | 8 ++++++++
gdk/src/window.hg | 2 +-
gtk/src/colorbutton.hg | 7 +++++--
3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0cf5200..a492999 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-02-22 Murray Cumming <murrayc murrayc com>
+
+ Deprecate more methods that use Gtk::Color.
+
+ * gdk/src/window.hg: set_background(Color):
+ * gtk/src/colorbutton.hg: set_color(), set_alpha(), constructor: Deprecate
+ these, as they are deprecated in the C API.
+
2012-02-16 Josà Alburquerque <jaalburquerque gmail com>
Application: Constructor: Receive argc and argv params by reference.
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 23ba428..5cfe1c5 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -150,7 +150,7 @@ public:
_WRAP_METHOD(void set_role(const Glib::ustring& role), gdk_window_set_role)
_WRAP_METHOD(void set_startup_id(const Glib::ustring& startup_id), gdk_window_set_startup_id)
_WRAP_METHOD(void set_transient_for(const Glib::RefPtr<Window>& parent), gdk_window_set_transient_for)
- _WRAP_METHOD(void set_background(const Color& color), gdk_window_set_background)
+ _WRAP_METHOD(void set_background(const Color& color), gdk_window_set_background, deprecated "Use the set_background() method that takes a Gdk::RGBA instead.")
_WRAP_METHOD(void set_background(const RGBA& color), gdk_window_set_background_rgba)
#m4 _CONVERSION(`const ::Cairo::RefPtr< ::Cairo::Pattern>&',`cairo_pattern_t*',`($3)->cobj()')
diff --git a/gtk/src/colorbutton.hg b/gtk/src/colorbutton.hg
index a4c7c16..9ac6b9f 100644
--- a/gtk/src/colorbutton.hg
+++ b/gtk/src/colorbutton.hg
@@ -61,6 +61,7 @@ public:
_CTOR_DEFAULT()
_IGNORE(gtk_color_button_new)
+#ifndef GTKMM_DISABLE_DEPRECATED
/** Creates a new color button with a predefined color.
*
* Same as Gtk::ColorButton::ColorButton(). Additionally takes a Gdk::Color and
@@ -70,8 +71,10 @@ public:
* @param color A Gdk::Color to set the current color with.
*
* @newin{2,4}
+ * @deprecated "Use the constructor that takes a Gdk::RGBA instead."
*/
_WRAP_CTOR(ColorButton(const Gdk::Color& color), gtk_color_button_new_with_color)
+#endif //GTKMM_DISABLE_DEPRECATED
/** Creates a new color button with a predefined color.
*
@@ -85,8 +88,8 @@ public:
*/
_WRAP_CTOR(ColorButton(const Gdk::RGBA& rgba), gtk_color_button_new_with_rgba)
- _WRAP_METHOD(void set_color(const Gdk::Color& color), gtk_color_button_set_color)
- _WRAP_METHOD(void set_alpha(guint16 alpha), gtk_color_button_set_alpha)
+ _WRAP_METHOD(void set_color(const Gdk::Color& color), gtk_color_button_set_color, deprecated "Use set_rgba() instead.")
+ _WRAP_METHOD(void set_alpha(guint16 alpha), gtk_color_button_set_alpha, deprecated "Use set_rgba() instead.")
_WRAP_METHOD(void set_rgba(const Gdk::RGBA& color), gtk_color_button_set_rgba)
#ifndef GTKMM_DISABLE_DEPRECATED
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]