[gnome-todo] inbox-panel: Cleanup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] inbox-panel: Cleanup
- Date: Sat, 2 May 2020 02:12:26 +0000 (UTC)
commit 7fb20ca5dfa715a1a5a3c7953c018898f5d69cf2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri May 1 11:27:27 2020 -0300
inbox-panel: Cleanup
plugins/inbox-panel/gtd-plugin-inbox-panel.c | 136 ---------------------
...d-plugin-inbox-panel.h => inbox-panel-plugin.c} | 26 ++--
.../{inbox-panel.plugin.in => inbox-panel.plugin} | 2 +-
plugins/inbox-panel/meson.build | 10 +-
4 files changed, 14 insertions(+), 160 deletions(-)
---
diff --git a/plugins/inbox-panel/gtd-plugin-inbox-panel.h b/plugins/inbox-panel/inbox-panel-plugin.c
similarity index 68%
rename from plugins/inbox-panel/gtd-plugin-inbox-panel.h
rename to plugins/inbox-panel/inbox-panel-plugin.c
index 07bf735..abfb208 100644
--- a/plugins/inbox-panel/gtd-plugin-inbox-panel.h
+++ b/plugins/inbox-panel/inbox-panel-plugin.c
@@ -1,4 +1,4 @@
-/* gtd-plugin-inbox-panel.h
+/* gtd-plugin-inbox-panel.c
*
* Copyright 2020 Georges Basile Stavracas Neto <georges stavracas gmail com>
*
@@ -18,19 +18,15 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
-
-#pragma once
+#define G_LOG_DOMAIN "GtdPluginInboxPanel"
#include "gnome-todo.h"
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-#define GTD_TYPE_PLUGIN_INBOX_PANEL (gtd_plugin_inbox_panel_get_type())
-
-G_DECLARE_FINAL_TYPE (GtdPluginInboxPanel, gtd_plugin_inbox_panel, GTD, PLUGIN_INBOX_PANEL,
PeasExtensionBase)
-
-G_MODULE_EXPORT void gtd_plugin_inbox_panel_register_types (PeasObjectModule *module);
-
-G_END_DECLS
+#include "gtd-inbox-panel.h"
+
+G_MODULE_EXPORT void
+inbox_panel_plugin_register_types (PeasObjectModule *module)
+{
+ peas_object_module_register_extension_type (module,
+ GTD_TYPE_PANEL,
+ GTD_TYPE_INBOX_PANEL);
+}
diff --git a/plugins/inbox-panel/inbox-panel.plugin.in b/plugins/inbox-panel/inbox-panel.plugin
similarity index 86%
rename from plugins/inbox-panel/inbox-panel.plugin.in
rename to plugins/inbox-panel/inbox-panel.plugin
index e40b7c5..f2d35b7 100644
--- a/plugins/inbox-panel/inbox-panel.plugin.in
+++ b/plugins/inbox-panel/inbox-panel.plugin
@@ -10,5 +10,5 @@ Hidden = true
Builtin = true
License = GPL
Loader = C
-Embedded = gtd_plugin_inbox_panel_register_types
+Embedded = inbox_panel_plugin_register_types
Depends =
diff --git a/plugins/inbox-panel/meson.build b/plugins/inbox-panel/meson.build
index 9c874fa..0c0c108 100644
--- a/plugins/inbox-panel/meson.build
+++ b/plugins/inbox-panel/meson.build
@@ -1,8 +1,8 @@
-plugins_ldflags += ['-Wl,--undefined=gtd_plugin_inbox_panel_register_types']
+plugins_ldflags += ['-Wl,--undefined=inbox_panel_plugin_register_types']
sources = files(
'gtd-inbox-panel.c',
- 'gtd-plugin-inbox-panel.c'
+ 'inbox-panel-plugin.c'
)
plugins_libs += static_library(
@@ -11,9 +11,3 @@ plugins_libs += static_library(
include_directories: plugins_incs,
dependencies: gnome_todo_deps
)
-
-plugins_confs += configure_file(
- input: 'inbox-panel.plugin.in',
- output: 'inbox-panel.plugin',
- configuration: plugins_conf
-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]