[gnome-panel] libgnome-panel: add gp_module_get_version



commit 6ef51a532ccf0ad4626facf9d26cbda6937a951e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Jan 6 01:00:12 2018 +0200

    libgnome-panel: add gp_module_get_version

 libgnome-panel/gp-module-private.h |    2 ++
 libgnome-panel/gp-module.c         |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-panel/gp-module-private.h b/libgnome-panel/gp-module-private.h
index 894a7d4..9fb6380 100644
--- a/libgnome-panel/gp-module-private.h
+++ b/libgnome-panel/gp-module-private.h
@@ -37,6 +37,8 @@ GpModule            *gp_module_new_from_path         (const gchar           *pat
 
 const gchar         *gp_module_get_id                (GpModule              *module);
 
+const gchar         *gp_module_get_version           (GpModule              *module);
+
 const gchar * const *gp_module_get_applets           (GpModule              *module);
 
 GpAppletInfo        *gp_module_get_applet_info       (GpModule              *module,
diff --git a/libgnome-panel/gp-module.c b/libgnome-panel/gp-module.c
index 468a05c..1770723 100644
--- a/libgnome-panel/gp-module.c
+++ b/libgnome-panel/gp-module.c
@@ -520,6 +520,12 @@ gp_module_set_applet_ids (GpModule *module,
   va_end (args);
 }
 
+const gchar *
+gp_module_get_version (GpModule *module)
+{
+  return module->version;
+}
+
 const gchar * const *
 gp_module_get_applets (GpModule *module)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]