summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-06-17 21:38:16 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-06-17 21:38:16 +0000
commit5bca232e7811fdbfc878b1793f66a830e9bfb3bb (patch)
tree6f9a16e9fd7e9bf40938364ff8b08b8d4945cae6 /examples
parent07bf0bdb948b7474ccd9ee79bea77045cb582fbe (diff)
downloadgtk+-5bca232e7811fdbfc878b1793f66a830e9bfb3bb.tar.gz
undeprecate.
2008-06-17 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.[ch]: undeprecate. svn path=/trunk/; revision=20439
Diffstat (limited to 'examples')
-rw-r--r--examples/gtkdial/gtkdial.c2
-rw-r--r--examples/gtkdial/gtkdial.h6
2 files changed, 4 insertions, 4 deletions
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;