[gnome-bluetooth] Allow to setup devices that do not support pairing
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Allow to setup devices that do not support pairing
- Date: Tue, 3 Aug 2010 14:37:08 +0000 (UTC)
commit 04c32da45caace7aa47b877df6917a101223338a
Author: Bastien Nocera <hadess hadess net>
Date: Tue Aug 3 15:35:08 2010 +0100
Allow to setup devices that do not support pairing
Such as the Parani SD100 serial port Bluetooth adapter
https://bugzilla.redhat.com/show_bug.cgi?id=580723
wizard/main.c | 3 +++
wizard/wizard.ui | 15 +++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 5bbc43a..291f30a 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -115,6 +115,7 @@ static GtkWidget *radio_auto = NULL;
static GtkWidget *radio_0000 = NULL;
static GtkWidget *radio_1111 = NULL;
static GtkWidget *radio_1234 = NULL;
+static GtkWidget *radio_none = NULL;
static GtkWidget *radio_custom = NULL;
static GtkWidget *entry_custom = NULL;
@@ -963,6 +964,7 @@ create_wizard (void)
radio_0000 = W("radio_0000");
radio_1111 = W("radio_1111");
radio_1234 = W("radio_1234");
+ radio_none = W("radio_none");
radio_custom = W("radio_custom");
entry_custom = W("entry_custom");
@@ -970,6 +972,7 @@ create_wizard (void)
g_object_set_data (G_OBJECT (radio_0000), "pin", "0000");
g_object_set_data (G_OBJECT (radio_1111), "pin", "1111");
g_object_set_data (G_OBJECT (radio_1234), "pin", "1234");
+ g_object_set_data (G_OBJECT (radio_none), "pin", "NULL");
g_object_set_data (G_OBJECT (radio_custom), "entry", entry_custom);
gtk_builder_connect_signals(builder, NULL);
diff --git a/wizard/wizard.ui b/wizard/wizard.ui
index 5dd8ee1..7459022 100644
--- a/wizard/wizard.ui
+++ b/wizard/wizard.ui
@@ -448,6 +448,21 @@
</packing>
</child>
<child>
+ <object class="GtkRadioButton" id="radio_none">
+ <property name="label" translatable="yes">Do not pair</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">radio_auto</property>
+ <signal name="toggled" handler="set_user_pincode"/>
+ </object>
+ <packing>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="spacing">12</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]