gnome-bluetooth r421 - trunk/common
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-bluetooth r421 - trunk/common
- Date: Mon, 2 Mar 2009 15:58:21 +0000 (UTC)
Author: hadess
Date: Mon Mar 2 15:58:21 2009
New Revision: 421
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=421&view=rev
Log:
Fix search button sensitivity
When no adapters are available on startup.
Modified:
trunk/common/bluetooth-chooser.c
Modified: trunk/common/bluetooth-chooser.c
==============================================================================
--- trunk/common/bluetooth-chooser.c (original)
+++ trunk/common/bluetooth-chooser.c Mon Mar 2 15:58:21 2009
@@ -143,8 +143,8 @@
g_return_if_fail (priv->show_search);
- gtk_widget_set_sensitive (GTK_WIDGET(priv->search_button), FALSE);
- bluetooth_client_start_discovery (priv->client);
+ if (bluetooth_client_start_discovery (priv->client) != FALSE)
+ gtk_widget_set_sensitive (GTK_WIDGET(priv->search_button), FALSE);
}
static char *
@@ -501,6 +501,7 @@
G_CALLBACK (device_model_row_changed), self);
} else {
gtk_widget_set_sensitive (GTK_WIDGET (tree), FALSE);
+ gtk_widget_set_sensitive (GTK_WIDGET (priv->search_button), FALSE);
}
gtk_container_add (GTK_CONTAINER(scrolled), tree);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]