[gnome-control-center] bluetooth: Move class_init to end of file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] bluetooth: Move class_init to end of file
- Date: Wed, 14 Nov 2018 10:37:49 +0000 (UTC)
commit 14f20f3784197aaaa58e82badab44b9cb77a502c
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Nov 13 15:13:16 2018 +1300
bluetooth: Move class_init to end of file
As specified in docs/HACKING.md and removes the need for function prototypes.
panels/bluetooth/cc-bluetooth-panel.c | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/panels/bluetooth/cc-bluetooth-panel.c b/panels/bluetooth/cc-bluetooth-panel.c
index 8b5197bbc..a2e947fe6 100644
--- a/panels/bluetooth/cc-bluetooth-panel.c
+++ b/panels/bluetooth/cc-bluetooth-panel.c
@@ -57,27 +57,12 @@ struct _CcBluetoothPanel {
CC_PANEL_REGISTER (CcBluetoothPanel, cc_bluetooth_panel)
-static void cc_bluetooth_panel_finalize (GObject *object);
-static void cc_bluetooth_panel_constructed (GObject *object);
-
static const char *
cc_bluetooth_panel_get_help_uri (CcPanel *panel)
{
return "help:gnome-help/bluetooth";
}
-static void
-cc_bluetooth_panel_class_init (CcBluetoothPanelClass *klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
- CcPanelClass *panel_class = CC_PANEL_CLASS (klass);
-
- object_class->constructed = cc_bluetooth_panel_constructed;
- object_class->finalize = cc_bluetooth_panel_finalize;
-
- panel_class->get_help_uri = cc_bluetooth_panel_get_help_uri;
-}
-
static void
cc_bluetooth_panel_finalize (GObject *object)
{
@@ -273,6 +258,18 @@ panel_changed (CcBluetoothPanel *self,
}
}
+static void
+cc_bluetooth_panel_class_init (CcBluetoothPanelClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ CcPanelClass *panel_class = CC_PANEL_CLASS (klass);
+
+ object_class->constructed = cc_bluetooth_panel_constructed;
+ object_class->finalize = cc_bluetooth_panel_finalize;
+
+ panel_class->get_help_uri = cc_bluetooth_panel_get_help_uri;
+}
+
static void
cc_bluetooth_panel_init (CcBluetoothPanel *self)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]