[gnome-bluetooth] Use the chooser's discovery methods in the wizard



commit 03fcb097d5eb5fae33c49926789740b7914e9b17
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 15 15:48:51 2009 +0100

    Use the chooser's discovery methods in the wizard
    
    So we can stop/start the spinner as expected. And export
    _stop_discovery ().

 lib/gnome-bluetooth.symbols |    1 +
 wizard/main.c               |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/gnome-bluetooth.symbols b/lib/gnome-bluetooth.symbols
index e6740f9..1da9a56 100644
--- a/lib/gnome-bluetooth.symbols
+++ b/lib/gnome-bluetooth.symbols
@@ -8,6 +8,7 @@ bluetooth_chooser_get_selected_device_icon
 bluetooth_chooser_get_selected_device_type
 bluetooth_chooser_get_selected_device_is_connected
 bluetooth_chooser_start_discovery
+bluetooth_chooser_stop_discovery
 bluetooth_chooser_button_get_type
 bluetooth_chooser_button_new
 bluetooth_chooser_button_available
diff --git a/wizard/main.c b/wizard/main.c
index 6778ce4..112b5a2 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -370,9 +370,9 @@ void prepare_callback(GtkWidget *assistant,
 
 	if (page == page_search) {
 		complete = set_page_search_complete ();
-		bluetooth_client_start_discovery(client);
+		bluetooth_chooser_start_discovery(selector);
 	} else {
-		bluetooth_client_stop_discovery(client);
+		bluetooth_chooser_stop_discovery(selector);
 	}
 
 	if (page == page_setup) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]