[gtk+/gtkobject-removal: 1/5] Move classes that currently derive from GtkObject to GInitiallyUnowned



commit 9937b98e893d8b6db0f8d7c6cae9abaf29087c65
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Sep 18 19:54:31 2010 -0400

    Move classes that currently derive from GtkObject to GInitiallyUnowned

 gtk/gtkadjustment.h     |    4 ++--
 gtk/gtkcellrenderer.h   |    4 ++--
 gtk/gtkfilefilter.c     |    6 +++---
 gtk/gtkrecentfilter.c   |    6 +++---
 gtk/gtktreeviewcolumn.h |    7 ++-----
 5 files changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h
index 39a6f86..949c45f 100644
--- a/gtk/gtkadjustment.h
+++ b/gtk/gtkadjustment.h
@@ -50,7 +50,7 @@ typedef struct _GtkAdjustmentClass  GtkAdjustmentClass;
 
 struct _GtkAdjustment
 {
-  GtkObject parent_instance;
+  GInitiallyUnowned parent_instance;
 
   gdouble GSEAL (lower);
   gdouble GSEAL (upper);
@@ -62,7 +62,7 @@ struct _GtkAdjustment
 
 struct _GtkAdjustmentClass
 {
-  GtkObjectClass parent_class;
+  GInitiallyUnownedClass parent_class;
 
   void (* changed)	 (GtkAdjustment *adjustment);
   void (* value_changed) (GtkAdjustment *adjustment);
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index 837b7ae..bb3df72 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -58,7 +58,7 @@ typedef struct _GtkCellRendererClass         GtkCellRendererClass;
 
 struct _GtkCellRenderer
 {
-  GtkObject parent;
+  GInitiallyUnowned parent_instance;
 
   /* <private> */
   GtkCellRendererPrivate *priv;
@@ -66,7 +66,7 @@ struct _GtkCellRenderer
 
 struct _GtkCellRendererClass
 {
-  GtkObjectClass parent_class;
+  GInitiallyUnownedClass parent_class;
 
   /* vtable - not signals */
   void             (* get_size)      (GtkCellRenderer      *cell,
diff --git a/gtk/gtkfilefilter.c b/gtk/gtkfilefilter.c
index f0e437f..5a735b0 100644
--- a/gtk/gtkfilefilter.c
+++ b/gtk/gtkfilefilter.c
@@ -41,13 +41,13 @@ typedef enum {
 
 struct _GtkFileFilterClass
 {
-  GtkObjectClass parent_class;
+  GInitiallyUnownedClass parent_class;
 };
 
 struct _GtkFileFilter
 {
-  GtkObject parent_instance;
-  
+  GInitiallyUnowned parent_instance;
+
   gchar *name;
   GSList *rules;
 
diff --git a/gtk/gtkrecentfilter.c b/gtk/gtkrecentfilter.c
index fd9d0b3..7dced40 100644
--- a/gtk/gtkrecentfilter.c
+++ b/gtk/gtkrecentfilter.c
@@ -41,8 +41,8 @@ typedef enum {
 
 struct _GtkRecentFilter
 {
-  GtkObject parent_instance;
-  
+  GInitiallyUnowned parent_instance;
+
   gchar *name;
   GSList *rules;
   
@@ -51,7 +51,7 @@ struct _GtkRecentFilter
 
 struct _GtkRecentFilterClass
 {
-  GtkObjectClass parent_class;
+  GInitiallyUnownedClass parent_class;
 };
 
 struct _FilterRule
diff --git a/gtk/gtktreeviewcolumn.h b/gtk/gtktreeviewcolumn.h
index 4e72235..01f6a2d 100644
--- a/gtk/gtktreeviewcolumn.h
+++ b/gtk/gtktreeviewcolumn.h
@@ -28,9 +28,6 @@
 #include <gtk/gtktreemodel.h>
 #include <gtk/gtktreesortable.h>
 
-/* Not needed, retained for compatibility -Yosh */
-#include <gtk/gtkobject.h>
-
 
 G_BEGIN_DECLS
 
@@ -61,7 +58,7 @@ typedef void (* GtkTreeCellDataFunc) (GtkTreeViewColumn *tree_column,
 
 struct _GtkTreeViewColumn
 {
-  GtkObject parent;
+  GInitiallyUnowned parent_instance;
 
   GtkWidget *GSEAL (tree_view);
   GtkWidget *GSEAL (button);
@@ -112,7 +109,7 @@ struct _GtkTreeViewColumn
 
 struct _GtkTreeViewColumnClass
 {
-  GtkObjectClass parent_class;
+  GInitiallyUnownedClass parent_class;
 
   void (*clicked) (GtkTreeViewColumn *tree_column);
 



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