summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-11-13 23:34:34 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:15 +0100
commit306cbb69e9de3f9344fb190d904f9d6eef14d21c (patch)
tree36a02cd426bd2a12106bcc96d07a213e3171ccb3 /plugin
parentf26021aff218703732250c8f1f4b726718713f53 (diff)
downloadfribid-306cbb69e9de3f9344fb190d904f9d6eef14d21c.tar.gz
fribid-306cbb69e9de3f9344fb190d904f9d6eef14d21c.tar.bz2
fribid-306cbb69e9de3f9344fb190d904f9d6eef14d21c.zip
Better plugin info in about:plugins
Diffstat (limited to 'plugin')
-rw-r--r--plugin/npmain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/npmain.c b/plugin/npmain.c
index b23d534..4bbadde 100644
--- a/plugin/npmain.c
+++ b/plugin/npmain.c
@@ -29,6 +29,7 @@
#include <npapi.h>
#include <npruntime.h>
+#include "../common/defines.h"
#include "plugin.h"
#include "npobject.h"
@@ -51,10 +52,10 @@ NPError NPP_Destroy(NPP instance, NPSavedData **save) {
NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
switch (variable) {
case NPPVpluginNameString:
- *((const char**)value) = "FriBID e-legitimation";
+ *((const char**)value) = PACKAGENAME;
return NPERR_NO_ERROR;
case NPPVpluginDescriptionString:
- *((const char**)value) = "Insticksmodul för FriBID e-legitimation";
+ *((const char**)value) = PACKAGENAME " version " PACKAGEVERSION;
return NPERR_NO_ERROR;
case NPPVpluginScriptableNPObject:
*((NPObject**)value) = (NPObject*)instance->pdata;