[gnome-bluetooth] Add some code to the test plugin
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Add some code to the test plugin
- Date: Thu, 28 May 2009 11:00:17 -0400 (EDT)
commit 9467fde488b9454b05526abcf11994fc43a9c68d
Author: Bastien Nocera <hadess hadess net>
Date: Thu May 28 15:59:55 2009 +0100
Add some code to the test plugin
---
common/plugins/test.c | 15 ++++++++++++++-
po/POTFILES.in | 1 +
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/common/plugins/test.c b/common/plugins/test.c
index a71235d..7a9cb9f 100644
--- a/common/plugins/test.c
+++ b/common/plugins/test.c
@@ -25,19 +25,32 @@
#include <config.h>
#endif
+#include <glib/gi18n-lib.h>
+
#include <gtk/gtk.h>
#include <bluetooth-plugin.h>
static gboolean
has_config_widget (const char *bdaddr, const char **uuids)
{
+ guint i;
+
+ if (uuids == NULL)
+ return FALSE;
+ for (i = 0; uuids[i] != NULL; i++) {
+ if (g_str_equal (uuids[i], "PANU"))
+ return TRUE;
+ }
return FALSE;
}
static GtkWidget *
get_config_widgets (const char *bdaddr, const char **uuids)
{
- return NULL;
+ /* translators:
+ * This is in a test plugin, please make sure you add the "(test)" part,
+ * or leave untranslated */
+ return gtk_check_button_new_with_label (_("Access the Internet using your mobile phone (test)"));
}
static GbtPluginInfo plugin_info = {
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 910c951..b8690c1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
common/bluetooth-client.c
common/bluetooth-chooser-button.c
common/bluetooth-chooser.c
+common/plugins/test.c
applet/main.c
applet/notify.c
applet/agent.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]