public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add ability to start wizard from properties
@ 2008-09-28 17:47 Mario_Limonciello
  2008-09-29  8:45 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Mario_Limonciello @ 2008-09-28 17:47 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hi:

When packaged, generally the Bluetooth properties application is added to the Preferences menu as a configuration tool for Bluetooth.  This leaves a gap in the experience since there is no way to configure "New" devices by following that flow.  This patch adds a button to the UI that will spawn the wizard to allow users to pair.

Regards

Mario Limonciello 
Dell | Linux Engineering 
Mario_Limonciello@Dell.com 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 07_add_wizard_preferences.patch --]
[-- Type: text/x-patch; name="07_add_wizard_preferences.patch", Size: 1202 bytes --]

diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.5/properties/main.c bluez-gnome-1.5.new/properties/main.c
--- bluez-gnome-1.5/properties/main.c	2008-08-24 11:05:50.000000000 -0500
+++ bluez-gnome-1.5.new/properties/main.c	2008-09-28 12:19:46.000000000 -0500
@@ -51,6 +51,16 @@
 	gtk_main_quit();
 }
 
+static void wizard_callback(GObject *widget, gpointer user_data)
+{
+        const char *command = "bluetooth-wizard";
+
+        if (!g_spawn_command_line_async(command, NULL))
+                g_printerr("Couldn't execute command: %s\n", command);
+
+	close_callback(widget,user_data);
+}
+
 static GtkWidget *create_window(GtkWidget *notebook)
 {
 	GtkWidget *window;
@@ -76,6 +86,11 @@
 	gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox), GTK_BUTTONBOX_END);
 	gtk_box_pack_start(GTK_BOX(vbox), buttonbox, FALSE, FALSE, 0);
 
+	button = gtk_button_new_with_mnemonic(_("Setup _New Device"));
+	gtk_container_add(GTK_CONTAINER(buttonbox), button);
+	g_signal_connect(G_OBJECT(button), "clicked",
+					G_CALLBACK(wizard_callback), window);
+
 	button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
 	gtk_container_add(GTK_CONTAINER(buttonbox), button);
 	g_signal_connect(G_OBJECT(button), "clicked",

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add ability to start wizard from properties
  2008-09-28 17:47 [PATCH] Add ability to start wizard from properties Mario_Limonciello
@ 2008-09-29  8:45 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2008-09-29  8:45 UTC (permalink / raw)
  To: Mario_Limonciello; +Cc: linux-bluetooth

Hi Mario,

> When packaged, generally the Bluetooth properties application is added to the Preferences menu as a configuration tool for Bluetooth.  This leaves a gap in the experience since there is no way to configure "New" devices by following that flow.  This patch adds a button to the UI that will spawn the wizard to allow users to pair.

I fixed this differently in the current GIT tree.

Regards

Marcel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-29  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 17:47 [PATCH] Add ability to start wizard from properties Mario_Limonciello
2008-09-29  8:45 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox