aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-21 15:01:19 -0500
committerTed Gould <ted@canonical.com>2009-04-21 15:01:19 -0500
commitae2689289232bb1237f7d37e591fc8c610d069e1 (patch)
treebfe0aa916724cf8a689136833b1e328220bc3047 /src
parent4023d350d22120cd8405307f0e0465bdb95fbae6 (diff)
downloadlibayatana-indicator-ae2689289232bb1237f7d37e591fc8c610d069e1.tar.gz
libayatana-indicator-ae2689289232bb1237f7d37e591fc8c610d069e1.tar.bz2
libayatana-indicator-ae2689289232bb1237f7d37e591fc8c610d069e1.zip
Putting in and checking version information to ensure we all agree about the header version
Diffstat (limited to 'src')
-rw-r--r--src/applet-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index 795c2fb..e28009d 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -80,6 +80,10 @@ load_module (const gchar * name, GtkWidget * menu)
g_free(fullpath);
g_return_val_if_fail(module != NULL, FALSE);
+ gchar * version;
+ g_return_val_if_fail(g_module_symbol(module, INDICATOR_VERSION_S, (gpointer *)(&version)), FALSE);
+ g_return_val_if_fail(INDICATOR_VERSION_CHECK(version), FALSE);
+
get_label_t lget_label;
g_return_val_if_fail(g_module_symbol(module, INDICATOR_GET_LABEL_S, (gpointer *)(&lget_label)), FALSE);
g_return_val_if_fail(lget_label != NULL, FALSE);