[Xfce4-commits] <xfce4-indicator-plugin:master> simplify so check
Mark Trompell
noreply at xfce.org
Thu Feb 17 08:30:22 CET 2011
Updating branch refs/heads/master
to a969bbde5814f06b9356fd99321d6712fefdc49f (commit)
from 78780859d2357dd573ac13456c152c114c0fecc2 (commit)
commit a969bbde5814f06b9356fd99321d6712fefdc49f
Author: Mark Trompell <mark at foresightlinux.org>
Date: Fri Jun 5 13:40:06 2009 +0200
simplify so check
panel-plugin/indicator.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 3c38ca9..a588b80 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -318,12 +318,15 @@ load_module (const gchar * name, GtkWidget * menu)
guint name_len = strlen(name);
g_return_val_if_fail(name_len > suffix_len, FALSE);
-
+ if (!g_str_has_suffix(name,G_MODULE_SUFFIX))
+ return FALSE;
+/*
int i;
for (i = 0; i < suffix_len; i++) {
if (name[(name_len - suffix_len) + i] != (G_MODULE_SUFFIX)[i])
return FALSE;
}
+ */
g_debug("Loading Module: %s", name);
gchar * fullpath = g_build_filename(INDICATOR_DIR, name, NULL);
More information about the Xfce4-commits
mailing list