diff options
author | Tim Janik <timj@gtk.org> | 2000-02-13 08:16:48 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2000-02-13 08:16:48 +0000 |
commit | ef03cb52872c19788e889b55ce9b30ff5a616677 (patch) | |
tree | 6a08cd7e4de091d8308e3f90d04e3af5011f5801 /gtk/gtkgamma.c | |
parent | 196d48435ebdfc03bb37b55306465dc16a847320 (diff) | |
download | gtk+-ef03cb52872c19788e889b55ce9b30ff5a616677.tar.gz |
s/refcount/ref_count/.
Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
* gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
* gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
* gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
parameters given and cursor->ref_count. coding style fixups.
* gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
not GtkWidget.
* gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
fix up widget macros and add _GET_CLASS() variant.
* gtk/*.c: some GtkType fixups.
Diffstat (limited to 'gtk/gtkgamma.c')
-rw-r--r-- | gtk/gtkgamma.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtkgamma.c b/gtk/gtkgamma.c index 3d8b3bd381..108a9ffd4e 100644 --- a/gtk/gtkgamma.c +++ b/gtk/gtkgamma.c @@ -215,7 +215,7 @@ GtkType gtk_gamma_curve_get_type (void) { static GtkType gamma_curve_type = 0; - + if (!gamma_curve_type) { static const GtkTypeInfo gamma_curve_info = @@ -229,9 +229,8 @@ gtk_gamma_curve_get_type (void) /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; - - gamma_curve_type = - gtk_type_unique (gtk_vbox_get_type (), &gamma_curve_info); + + gamma_curve_type = gtk_type_unique (GTK_TYPE_VBOX, &gamma_curve_info); } return gamma_curve_type; } @@ -241,7 +240,7 @@ gtk_gamma_curve_class_init (GtkGammaCurveClass *class) { GtkObjectClass *object_class; - parent_class = gtk_type_class (gtk_vbox_get_type ()); + parent_class = gtk_type_class (GTK_TYPE_VBOX); object_class = (GtkObjectClass *) class; object_class->destroy = gtk_gamma_curve_destroy; @@ -458,7 +457,7 @@ curve_type_changed_callback (GtkWidget *w, gpointer data) GtkWidget* gtk_gamma_curve_new (void) { - return gtk_type_new (gtk_gamma_curve_get_type ()); + return gtk_type_new (GTK_TYPE_GAMMA_CURVE); } static void |