diff --git a/ChangeLog b/ChangeLog index f074084892..9302a4171f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-17 Michael Natterer + + * examples/gtkdial/gtkdial.[ch]: undeprecate. + 2008-06-17 Michael Natterer * gtk/gtkobject.c: remove bogus extern declaration of non-existing diff --git a/examples/gtkdial/gtkdial.c b/examples/gtkdial/gtkdial.c index 5749e92ad8..fa035ee61f 100644 --- a/examples/gtkdial/gtkdial.c +++ b/examples/gtkdial/gtkdial.c @@ -93,7 +93,7 @@ gtk_dial_class_init (GtkDialClass *class) object_class = (GtkObjectClass*) class; widget_class = (GtkWidgetClass*) class; - parent_class = gtk_type_class (gtk_widget_get_type ()); + parent_class = g_type_class_peek_parent (class); object_class->destroy = gtk_dial_destroy; diff --git a/examples/gtkdial/gtkdial.h b/examples/gtkdial/gtkdial.h index c156c9a148..0994e79ffa 100644 --- a/examples/gtkdial/gtkdial.h +++ b/examples/gtkdial/gtkdial.h @@ -29,9 +29,9 @@ G_BEGIN_DECLS -#define GTK_DIAL(obj) GTK_CHECK_CAST (obj, gtk_dial_get_type (), GtkDial) -#define GTK_DIAL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_dial_get_type (), GtkDialClass) -#define GTK_IS_DIAL(obj) GTK_CHECK_TYPE (obj, gtk_dial_get_type ()) +#define GTK_DIAL(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_dial_get_type (), GtkDial) +#define GTK_DIAL_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gtk_dial_get_type (), GtkDialClass) +#define GTK_IS_DIAL(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_dial_get_type ()) typedef struct _GtkDial GtkDial;