[gtkmm] CellRenderer: Remove the (deprecated in GTK+) get_size() method.



commit 6b50d3fd5c8e808be9efc7f66d716fdd5c7630bf
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 20 13:15:29 2010 +0200

    CellRenderer: Remove the (deprecated in GTK+) get_size() method.
    
    * gtk/src/cellrenderer.[hg|ccg]: Remove get_size().

 ChangeLog                |    6 ++++++
 gtk/src/cellrenderer.ccg |    6 ------
 gtk/src/cellrenderer.hg  |   20 --------------------
 3 files changed, 6 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4863845..a44ebb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-09-20  Murray Cumming  <murrayc murrayc com>
 
+	CellRenderer: Remove the (deprecated in GTK+) get_size() method.
+
+	* gtk/src/cellrenderer.[hg|ccg]: Remove get_size().
+
+2010-09-20  Murray Cumming  <murrayc murrayc com>
+
 	Fix some gmmproc warnings, adding some TextBuffer methods.
 
 	* tools/extra_defs_gen/generate_defs_gtk.cc: Added interfaces because
diff --git a/gtk/src/cellrenderer.ccg b/gtk/src/cellrenderer.ccg
index eb2e408..4355483 100644
--- a/gtk/src/cellrenderer.ccg
+++ b/gtk/src/cellrenderer.ccg
@@ -23,11 +23,6 @@
 namespace Gtk
 {
 
-void CellRenderer::get_size(Widget& widget, int& x_offset, int& y_offset, int& width, int& height) const
-{
-  gtk_cell_renderer_get_size(const_cast<GtkCellRenderer*>(gobj()), widget.gobj(), 0, &x_offset, &y_offset, &width, &height);
-}
-
 Glib::PropertyProxy_Base CellRenderer::_property_renderable()
 {
   g_assert_not_reached();
@@ -35,4 +30,3 @@ Glib::PropertyProxy_Base CellRenderer::_property_renderable()
 }
 
 } // namespace Gtk
-
diff --git a/gtk/src/cellrenderer.hg b/gtk/src/cellrenderer.hg
index 383afb1..0d15167 100644
--- a/gtk/src/cellrenderer.hg
+++ b/gtk/src/cellrenderer.hg
@@ -43,26 +43,6 @@ class CellRenderer : public Gtk::Object
   _CLASS_GTKOBJECT(CellRenderer,GtkCellRenderer,GTK_CELL_RENDERER,Gtk::Object,GtkObject)
 public:
 
-  _WRAP_METHOD(void get_size(
-                  Widget& widget,
-                  const Gdk::Rectangle& cell_area,
-                  int& x_offset, int& y_offset,
-                  int& width,    int& height) const, gtk_cell_renderer_get_size)
-
-  /** Obtains the width and height needed to render the cell. Used by view widgets
-   * to determine the appropriate size for the cell_area passed to
-   * render().  Fills in the x and y
-   * offsets of the cell relative to this location.  Please note that the
-   * values set in @a width  and @a height , as well as those in @a x_offset  and @a y_offset
-   * are inclusive of the xpad and ypad properties.
-   * @param widget The widget the renderer is rendering to.
-   * @param x_offset Location to return x offset of cell relative to @a cell_area.
-   * @param y_offset Location to return y offset of cell relative to @a cell_area.
-   * @param width Location to return width needed to render a cell.
-   * @param height Location to return height needed to render a cell.
-   */
-  void get_size(Widget& widget, int& x_offset, int& y_offset, int& width, int& height) const;
-
   _WRAP_METHOD(void render(
                   const Glib::RefPtr<Gdk::Window>& window,
                   Widget& widget,



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