[gtkmm/gtkmm-2-22] gdkmm: Color: Deprecate rgb_find_color().



commit 290b5356b4e6448da7d5f846f83d489c73358914
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Aug 30 14:15:26 2010 +0200

    gdkmm: Color: Deprecate rgb_find_color().
    
    * gdk/src/color.[hg|ccg]: rgb_find_color(): Deprecate this because it
      is deprecated in GTK+.

 ChangeLog         |   13 ++++++++++---
 gdk/src/color.ccg |    2 ++
 gdk/src/color.hg  |    4 ++++
 3 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0f79b61..4f9d926 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-30  Murray Cumming  <murrayc murrayc com>
+
+	gdkmm: Color: Deprecate rgb_find_color().
+
+	* gdk/src/color.[hg|ccg]: rgb_find_color(): Deprecate this because it
+  is deprecated in GTK+.
+
 2010-08-29  Murray Cumming  <murrayc murrayc com>
 
 	gdkmm: Wrapped new Device and Display methods.
@@ -20,7 +27,7 @@
 
 	Gdk: RgbCMap: Deprecate.
 
-	* gdk/src/rgbcmap.[hg|ccg]: Deprecate this because it is deprecated in 
+	* gdk/src/rgbcmap.[hg|ccg]: Deprecate this because it is deprecated in
 	GTK+. This fixes the build with fatal warnings.
 
 2010-08-04  Armin Burgmeier  <armin arbur net>
@@ -48,8 +55,8 @@
 	Fix build errors when deprecated API is disabled.
 
 	* gtk/src/notebook.[hg|ccg]:
-	* gtk/src/table.hg: Remove the ifdefs from the PagesList and TableList class 
-	declarations because we must keep the un-ifdefed member variable to preserve 
+	* gtk/src/table.hg: Remove the ifdefs from the PagesList and TableList class
+	declarations because we must keep the un-ifdefed member variable to preserve
 	ABI.
 
 2010-07-14  Murray Cumming  <murrayc murrayc com>
diff --git a/gdk/src/color.ccg b/gdk/src/color.ccg
index d7c2ba8..40f1f9f 100644
--- a/gdk/src/color.ccg
+++ b/gdk/src/color.ccg
@@ -182,10 +182,12 @@ void Color::set_blue(gushort value)
   gobject_->blue = value;
 }
 
+_DEPRECATE_IFDEF_START
 void Color::rgb_find_color(const Glib::RefPtr<Gdk::Colormap>& map)
 {
   gdk_rgb_find_color(Glib::unwrap(map), gobj());
 }
+_DEPRECATE_IFDEF_END
 
 guint Color::get_pixel() const
 {
diff --git a/gdk/src/color.hg b/gdk/src/color.hg
index fe277c7..ce22d4b 100644
--- a/gdk/src/color.hg
+++ b/gdk/src/color.hg
@@ -125,6 +125,7 @@ public:
    */
   void set_blue(gushort value);
 
+_DEPRECATE_IFDEF_START
   /** This will fill in the pixel field with the best matching pixel from a color cube.
    * The color is then ready to be used for drawing, e.g. you can call Gdk::GC::set_foreground() which expects pixel to be initialized.
    * Call this after setting the red, green, and blue fields.
@@ -133,8 +134,11 @@ public:
    * which do not expect pixels to be initialized in advance. If you use those methods, there's no need for this method().
    *
    * @param map The colormap for the graphics context and drawable you're using to draw. If you're drawing to a Gtk::Widget, call Gtk::Widget::get_colormap().
+   *
+   * @deprecated Cairo handles colors automatically.
    */
   void rgb_find_color(const Glib::RefPtr<Gdk::Colormap>& map);
+_DEPRECATE_IFDEF_END
 
   /** Get the pixel value, for allocated colors.
    * @result For allocated colors, the value used to draw this color on the screen.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]