[gtkmm] CellRenderer: Derive from SizeRequest.



commit 192f584bf6f90884ec23c41b405a1b588bff3b42
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 20 15:07:30 2010 +0200

    CellRenderer: Derive from SizeRequest.
    
    * gtk/src/cellrenderer.hg: The previous commit now makes sense.

 ChangeLog               |    6 ++++++
 gtk/src/cellrenderer.hg |    6 +++++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a44ebb6..6180fa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-20  Murray Cumming  <murrayc murrayc com>>
+
+	CellRenderer: Derive from SizeRequest.
+
+	* gtk/src/cellrenderer.hg: The previous commit now makes sense.
+
 2010-09-20  Murray Cumming  <murrayc murrayc com>
 
 	CellRenderer: Remove the (deprecated in GTK+) get_size() method.
diff --git a/gtk/src/cellrenderer.hg b/gtk/src/cellrenderer.hg
index 0d15167..ce49169 100644
--- a/gtk/src/cellrenderer.hg
+++ b/gtk/src/cellrenderer.hg
@@ -20,6 +20,7 @@ _CONFIGINCLUDE(gtkmmconfig.h)
 #include <gtkmm/object.h>
 #include <gtkmm/widget.h>
 #include <gtkmm/celleditable.h>
+#include <gtkmm/sizerequest.h>
 
 _DEFS(gtkmm,gtk)
 _PH_INCLUDE(gtkmm/private/object_p.h)
@@ -38,9 +39,12 @@ _WRAP_ENUM(CellRendererMode, GtkCellRendererMode)
  *
  * @ingroup TreeView
  */
-class CellRenderer : public Gtk::Object
+class CellRenderer :
+  public Gtk::Object,
+  public SizeRequest
 {
   _CLASS_GTKOBJECT(CellRenderer,GtkCellRenderer,GTK_CELL_RENDERER,Gtk::Object,GtkObject)
+  _IMPLEMENTS_INTERFACE(SizeRequest)
 public:
 
   _WRAP_METHOD(void render(



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