[gnome-builder] sysmon: remove use of dynamic type
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sysmon: remove use of dynamic type
- Date: Thu, 14 Jun 2018 23:33:34 +0000 (UTC)
commit d41c9a8c59d3e96de888f4eb0326c47b2241ca2a
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 14 16:05:43 2018 -0700
sysmon: remove use of dynamic type
src/plugins/sysmon/gb-sysmon-addin.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/plugins/sysmon/gb-sysmon-addin.c b/src/plugins/sysmon/gb-sysmon-addin.c
index dd6bc9a48..e54f9a2db 100644
--- a/src/plugins/sysmon/gb-sysmon-addin.c
+++ b/src/plugins/sysmon/gb-sysmon-addin.c
@@ -31,9 +31,8 @@ struct _GbSysmonAddin
static void workbench_addin_iface_init (IdeWorkbenchAddinInterface *iface);
-G_DEFINE_DYNAMIC_TYPE_EXTENDED (GbSysmonAddin, gb_sysmon_addin, G_TYPE_OBJECT, 0,
- G_IMPLEMENT_INTERFACE_DYNAMIC (IDE_TYPE_WORKBENCH_ADDIN,
- workbench_addin_iface_init))
+G_DEFINE_TYPE_WITH_CODE (GbSysmonAddin, gb_sysmon_addin, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (IDE_TYPE_WORKBENCH_ADDIN, workbench_addin_iface_init))
static void
gb_sysmon_addin_load (IdeWorkbenchAddin *addin,
@@ -90,11 +89,6 @@ gb_sysmon_addin_class_init (GbSysmonAddinClass *klass)
{
}
-static void
-gb_sysmon_addin_class_finalize (GbSysmonAddinClass *klass)
-{
-}
-
static void
gb_sysmon_addin_init (GbSysmonAddin *self)
{
@@ -103,8 +97,6 @@ gb_sysmon_addin_init (GbSysmonAddin *self)
void
gb_sysmon_register_types (PeasObjectModule *module)
{
- gb_sysmon_addin_register_type (G_TYPE_MODULE (module));
-
peas_object_module_register_extension_type (module,
IDE_TYPE_WORKBENCH_ADDIN,
GB_TYPE_SYSMON_ADDIN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]