bluetooth: Move class_init to end of file

As specified in docs/HACKING.md and removes the need for function prototypes.
This commit is contained in:
Robert Ancell 2018-11-13 15:13:16 +13:00 committed by Bastien Nocera
parent 5c821bad71
commit 14f20f3784

View file

@ -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)
{