[gtkmm] Fix totally broken type registration.



commit 57f40298075a3ab8e3ccd0ecf09e713e49399fb8
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Dec 21 11:15:39 2010 +0100

    Fix totally broken type registration.
    
    * gtk/src/switch.hg: This should not try to derive directly from GtkWidget*.
    This was causing a warning about a double registration of gtkmm__GtkWidget,
    which caused Gtk::Widget to be broken.

 ChangeLog         |    8 ++++++++
 gtk/src/switch.hg |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a653e1a..8eda9a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-12-21  Murray Cumming  <murrayc murrayc com>
 
+	Fix totally broken type registration.
+
+	* gtk/src/switch.hg: This should not try to derive directly from GtkWidget*.
+	This was causing a warning about a double registration of gtkmm__GtkWidget, 
+	which caused Gtk::Widget to be broken.
+
+2010-12-21  Murray Cumming  <murrayc murrayc com>
+
 	CellLayout, CellAreaContext: Added methods.
 
 	* gtk/src/cellareacontext.[hg|ccg]: Added get_area(), allocate(), reset() and 
diff --git a/gtk/src/switch.hg b/gtk/src/switch.hg
index 96c43f9..6755c8d 100644
--- a/gtk/src/switch.hg
+++ b/gtk/src/switch.hg
@@ -36,7 +36,7 @@ class Switch
   : public Widget,
     public Activatable
 {
-  _CLASS_GTKOBJECT(Switch, GtkSwitch, GTK_WIDGET, Gtk::Widget, GtkWidget)
+  _CLASS_GTKOBJECT(Switch, GtkSwitch, GTK_SWITCH, Gtk::Widget, GtkWidget)
   _IMPLEMENTS_INTERFACE(Activatable)
 public:
 



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