[gtk+] Do not assign the parent class twice
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Do not assign the parent class twice
- Date: Thu, 15 Oct 2009 13:31:02 +0000 (UTC)
commit 009f1607094821fae4a658d1d6a513dcb8a296a2
Author: Xan Lopez <xan gnome org>
Date: Thu Oct 15 09:43:08 2009 +0300
Do not assign the parent class twice
G_DEFINE_TYPE already does this for us, no need to do it again in
class_init
https://bugzilla.gnome.org/show_bug.cgi?id=598515
gtk/gtkspinner.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index e4566fb..036d0b1 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -102,8 +102,6 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
GObjectClass *gobject_class;
GtkWidgetClass *widget_class;
- gtk_spinner_parent_class = g_type_class_peek_parent (klass);
-
gobject_class = G_OBJECT_CLASS(klass);
g_type_class_add_private (gobject_class, sizeof (GtkSpinnerPrivate));
gobject_class->dispose = gtk_spinner_dispose;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]