[gnome-panel] libgnome-panel: remove incorrect warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libgnome-panel: remove incorrect warning
- Date: Wed, 15 Apr 2020 22:11:33 +0000 (UTC)
commit 85750eefe68a7eb0f4f23fbb2dece473ea526839
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Apr 15 23:05:10 2020 +0300
libgnome-panel: remove incorrect warning
Modules are not required to have applets. Remove this incorrect
warning and make sure we have non-NULL applet_ids array.
libgnome-panel/gp-module.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libgnome-panel/gp-module.c b/libgnome-panel/gp-module.c
index 509979217..a4a29c031 100644
--- a/libgnome-panel/gp-module.c
+++ b/libgnome-panel/gp-module.c
@@ -323,11 +323,8 @@ gp_module_new_from_path (const gchar *path)
return NULL;
}
- if (module->applet_ids == NULL || module->applet_ids[0] == NULL)
- {
- g_warning ("Module '%s' does not have valid applets", module->path);
- return NULL;
- }
+ if (module->applet_ids == NULL)
+ module->applet_ids = g_new0 (char *, 1);
return module;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]