public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: BlueZ Hackers <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] [PATCH] wizard fixes
Date: Tue, 24 Jul 2007 17:31:30 +0100	[thread overview]
Message-ID: <1185294690.3641.145.camel@cookie.hadess.net> (raw)

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

Some small fixes for the wizard.

- Search on all the adapters, rather than just the first one
- Clean up the user-visible strings
- Translate the "Device" column

We should probably use the device selector when it's closer to ready.

-- 
Bastien Nocera <hadess@hadess.net> 

[-- Attachment #2: bluez-gnome-wizard-fixes.patch --]
[-- Type: text/x-patch, Size: 1969 bytes --]

diff --git a/wizard/main.c b/wizard/main.c
index 9175512..1d686c3 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -112,12 +112,12 @@ static void cancel_callback(GtkWidget *assistant, gpointer data)
 static void prepare_callback(GtkWidget *assistant, GtkWidget *page, gpointer data)
 {
 	if (page == page_search) {
-		bluetooth_client_discover_devices(client, "/org/bluez/hci0");
+		bluetooth_client_discover_devices(client, NULL);
 		return;
 	}
 
 	if (page == page_pairing) {
-		bluetooth_client_cancel_discovery(client, "/org/bluez/hci0");
+		bluetooth_client_cancel_discovery(client, NULL);
 
 		bluetooth_client_register_passkey_agent(client,
 					"/org/bluez/applet", address,
@@ -242,7 +242,7 @@ static void create_type(GtkWidget *assistant)
 
 	vbox = create_vbox(assistant, GTK_ASSISTANT_PAGE_CONTENT,
 				_("Device type"),
-				_("Select type of device you wanna setup"));
+				_("Select the type of device you want to setup"));
 
 	button = gtk_radio_button_new_with_label(group, _("Mouse"));
 
@@ -389,7 +389,7 @@ static void create_search(GtkWidget *assistant)
 
 	vbox = create_vbox(assistant, GTK_ASSISTANT_PAGE_CONTENT,
 				_("Device search"),
-				_("Select device you wanna setup"));
+				_("Select the device you want to setup"));
 
 	scrolled = gtk_scrolled_window_new(NULL, NULL);
 
@@ -411,7 +411,7 @@ static void create_search(GtkWidget *assistant)
 
 	column = gtk_tree_view_column_new();
 
-	gtk_tree_view_column_set_title(column, "Device");
+	gtk_tree_view_column_set_title(column, _("Device"));
 
 	renderer = gtk_cell_renderer_pixbuf_new();
 	gtk_tree_view_column_set_spacing(column, 4);
@@ -434,7 +434,7 @@ static void create_search(GtkWidget *assistant)
 					"Type", gtk_cell_renderer_text_new(),
 						type_to_text, NULL, NULL);
 
-	model = bluetooth_client_get_model_for_adapter(client, "/org/bluez/hci0");
+	model = bluetooth_client_get_model_for_adapter(client, NULL);
 
 	gtk_tree_view_set_model(GTK_TREE_VIEW(tree), model);
 

[-- Attachment #3: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2007-07-24 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24 16:31 Bastien Nocera [this message]
2007-07-24 21:18 ` [Bluez-devel] [PATCH] wizard fixes Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185294690.3641.145.camel@cookie.hadess.net \
    --to=hadess@hadess.net \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox