diff options
author | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-10-07 01:26:08 +0800 |
commit | 1c6f2d154e74f908e2c4a137de0233b5faf4f6b6 (patch) | |
tree | 77a33236e48ed59a7c7c65e8a1c91481dd09f3eb /widgets/misc | |
parent | 1b2fefb086c3e34089beb8b89b22d79005cc7725 (diff) | |
download | gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.gz gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.tar.zst gsoc2013-evolution-1c6f2d154e74f908e2c4a137de0233b5faf4f6b6.zip |
Bug #631320 - GtkObject is gone in GTK3
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-calendar.c | 14 | ||||
-rw-r--r-- | widgets/misc/e-canvas-vbox.c | 8 | ||||
-rw-r--r-- | widgets/misc/e-canvas.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-printable.c | 4 | ||||
-rw-r--r-- | widgets/misc/e-printable.h | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index af5d0c7d83..d835ba89ae 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -65,7 +65,7 @@ #define E_CALENDAR_AUTO_MOVE_TIMEOUT 150 #define E_CALENDAR_AUTO_MOVE_TIMEOUT_DELAY 2 -static void e_calendar_destroy (GtkObject *object); +static void e_calendar_dispose (GObject *object); static void e_calendar_realize (GtkWidget *widget); static void e_calendar_style_set (GtkWidget *widget, GtkStyle *previous_style); @@ -105,13 +105,13 @@ G_DEFINE_TYPE ( static void e_calendar_class_init (ECalendarClass *class) { - GtkObjectClass *object_class; + GObjectClass *object_class; GtkWidgetClass *widget_class; - object_class = (GtkObjectClass *) class; + object_class = (GObjectClass *) class; widget_class = (GtkWidgetClass *) class; - object_class->destroy = e_calendar_destroy; + object_class->dispose = e_calendar_dispose; widget_class->realize = e_calendar_realize; widget_class->style_set = e_calendar_style_set; @@ -223,7 +223,7 @@ e_calendar_new (void) } static void -e_calendar_destroy (GtkObject *object) +e_calendar_dispose (GObject *object) { ECalendar *cal; @@ -237,8 +237,8 @@ e_calendar_destroy (GtkObject *object) cal->timeout_id = 0; } - if (GTK_OBJECT_CLASS (e_calendar_parent_class)->destroy) - (* GTK_OBJECT_CLASS (e_calendar_parent_class)->destroy) (object); + if (G_OBJECT_CLASS (e_calendar_parent_class)->dispose) + G_OBJECT_CLASS (e_calendar_parent_class)->dispose (object); } static void diff --git a/widgets/misc/e-canvas-vbox.c b/widgets/misc/e-canvas-vbox.c index c41cac160f..270c55c27d 100644 --- a/widgets/misc/e-canvas-vbox.c +++ b/widgets/misc/e-canvas-vbox.c @@ -364,14 +364,14 @@ e_canvas_vbox_reflow ( GnomeCanvasItem *item, gint flags ) void e_canvas_vbox_add_item (ECanvasVbox *e_canvas_vbox, GnomeCanvasItem *item) { - if (E_CANVAS_VBOX_CLASS (GTK_OBJECT_GET_CLASS (e_canvas_vbox))->add_item) - (E_CANVAS_VBOX_CLASS (GTK_OBJECT_GET_CLASS (e_canvas_vbox))->add_item) (e_canvas_vbox, item); + if (E_CANVAS_VBOX_CLASS (G_OBJECT_GET_CLASS (e_canvas_vbox))->add_item) + (E_CANVAS_VBOX_CLASS (G_OBJECT_GET_CLASS (e_canvas_vbox))->add_item) (e_canvas_vbox, item); } void e_canvas_vbox_add_item_start (ECanvasVbox *e_canvas_vbox, GnomeCanvasItem *item) { - if (E_CANVAS_VBOX_CLASS (GTK_OBJECT_GET_CLASS (e_canvas_vbox))->add_item_start) - (E_CANVAS_VBOX_CLASS (GTK_OBJECT_GET_CLASS (e_canvas_vbox))->add_item_start) (e_canvas_vbox, item); + if (E_CANVAS_VBOX_CLASS (G_OBJECT_GET_CLASS (e_canvas_vbox))->add_item_start) + (E_CANVAS_VBOX_CLASS (G_OBJECT_GET_CLASS (e_canvas_vbox))->add_item_start) (e_canvas_vbox, item); } diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index 11d6c55271..dfa529ec6b 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -192,7 +192,7 @@ gnome_canvas_item_invoke_point (GnomeCanvasItem *item, y = i.y; #endif - return (* GNOME_CANVAS_ITEM_CLASS (GTK_OBJECT_GET_CLASS (item))->point) ( + return (* GNOME_CANVAS_ITEM_CLASS (G_OBJECT_GET_CLASS (item))->point) ( item, x, y, cx, cy, actual_item); } diff --git a/widgets/misc/e-printable.c b/widgets/misc/e-printable.c index bc3233a38a..aa723f61c4 100644 --- a/widgets/misc/e-printable.c +++ b/widgets/misc/e-printable.c @@ -28,12 +28,12 @@ #include "e-printable.h" -#define EP_CLASS(e) ((EPrintableClass *)((GtkObject *)e)->klass) +#define EP_CLASS(e) ((EPrintableClass *)((GObject *)e)->klass) G_DEFINE_TYPE ( EPrintable, e_printable, - GTK_TYPE_OBJECT) + G_TYPE_OBJECT) enum { PRINT_PAGE, diff --git a/widgets/misc/e-printable.h b/widgets/misc/e-printable.h index 32cbadddbd..b8d9893799 100644 --- a/widgets/misc/e-printable.h +++ b/widgets/misc/e-printable.h @@ -35,11 +35,11 @@ G_BEGIN_DECLS #define E_IS_PRINTABLE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_PRINTABLE_TYPE)) typedef struct { - GtkObject base; + GObject base; } EPrintable; typedef struct { - GtkObjectClass parent_class; + GObjectClass parent_class; /* * Signals |