[gnome-bluetooth/wip/fixes] chooser-button: no need to keep a static parent_class var



commit 8eb2482fda58c3d661744e9234309d32878799d6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Dec 18 20:39:54 2014 +0100

    chooser-button: no need to keep a static parent_class var

 lib/bluetooth-chooser-button.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/lib/bluetooth-chooser-button.c b/lib/bluetooth-chooser-button.c
index 620d33a..4c03a69 100644
--- a/lib/bluetooth-chooser-button.c
+++ b/lib/bluetooth-chooser-button.c
@@ -66,8 +66,6 @@ static int signals[LAST_SIGNAL] = { 0 };
 static void    bluetooth_chooser_button_class_init     (BluetoothChooserButtonClass * klass);
 static void    bluetooth_chooser_button_init           (BluetoothChooserButton      * button);
 
-static GtkButtonClass *parent_class;
-
 G_DEFINE_TYPE(BluetoothChooserButton, bluetooth_chooser_button, GTK_TYPE_BUTTON);
 
 #define DEFAULT_STR N_("Click to select deviceā€¦")
@@ -269,7 +267,7 @@ bluetooth_chooser_button_finalize (GObject *object)
                button->chooser = NULL;
        }
 
-       G_OBJECT_CLASS (parent_class)->finalize (object);
+       G_OBJECT_CLASS (bluetooth_chooser_button_parent_class)->finalize (object);
 }
 
 static void
@@ -318,8 +316,6 @@ bluetooth_chooser_button_class_init (BluetoothChooserButtonClass *klass)
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
        GtkButtonClass *button_class = GTK_BUTTON_CLASS (klass);
 
-       parent_class = g_type_class_peek_parent (klass);
-
        object_class->finalize = bluetooth_chooser_button_finalize;
        object_class->set_property = bluetooth_chooser_button_set_property;
        object_class->get_property = bluetooth_chooser_button_get_property;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]