[network-manager-applet/jk/bluetoth-editor: 3/3] fixup! editor: Add support for editing Bluetooth connections
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/jk/bluetoth-editor: 3/3] fixup! editor: Add support for editing Bluetooth connections
- Date: Mon, 29 Sep 2014 09:13:36 +0000 (UTC)
commit ff63049aec3b2f3f7dba1319fd2435b54f217e2c
Author: Jiří Klimeš <jklimes redhat com>
Date: Mon Sep 29 10:51:28 2014 +0200
fixup! editor: Add support for editing Bluetooth connections
src/connection-editor/connection-helpers.c | 7 +++++++
src/connection-editor/page-bluetooth.c | 20 ++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c
index 1d74867..e1650ec 100644
--- a/src/connection-editor/connection-helpers.c
+++ b/src/connection-editor/connection-helpers.c
@@ -29,6 +29,7 @@
#include "page-wifi.h"
#include "page-mobile.h"
#include "page-wimax.h"
+#include "page-bluetooth.h"
#include "page-dsl.h"
#include "page-infiniband.h"
#include "page-bond.h"
@@ -123,6 +124,12 @@ get_connection_type_list (void)
data.virtual = FALSE;
g_array_append_val (array, data);
+ data.name = _("Bluetooth");
+ data.new_connection_func = bluetooth_connection_new;
+ data.setting_type = NM_TYPE_SETTING_BLUETOOTH;
+ data.virtual = FALSE;
+ g_array_append_val (array, data);
+
data.name = _("DSL");
data.new_connection_func = dsl_connection_new;
data.setting_type = NM_TYPE_SETTING_PPPOE;
diff --git a/src/connection-editor/page-bluetooth.c b/src/connection-editor/page-bluetooth.c
index b1fa0a1..dacc5dd 100644
--- a/src/connection-editor/page-bluetooth.c
+++ b/src/connection-editor/page-bluetooth.c
@@ -175,3 +175,23 @@ ce_page_bluetooth_class_init (CEPageBluetoothClass *bluetooth_class)
/* virtual methods */
parent_class->validate = validate;
}
+
+void
+bluetooth_connection_new (GtkWindow *parent,
+ const char *detail,
+ NMRemoteSettings *settings,
+ PageNewConnectionResultFunc result_func,
+ gpointer user_data)
+{
+ NMConnection *connection;
+
+ connection = ce_page_new_connection (_("Bluetooth connection %d"),
+ NM_SETTING_PPPOE_SETTING_NAME,
+ FALSE,
+ settings,
+ user_data);
+ nm_connection_add_setting (connection, nm_setting_bluetooth_new ());
+
+ (*result_func) (connection, FALSE, NULL, user_data);
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]