[gnome-bluetooth] chooser-button: no need to keep a static parent_class var
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] chooser-button: no need to keep a static parent_class var
- Date: Mon, 5 Jan 2015 10:33:26 +0000 (UTC)
commit cc1f3be48be9426f958eaa319cfb738f82c7726a
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
https://bugzilla.gnome.org/show_bug.cgi?id=742359
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]