[gnome-bluetooth/fedora-11] Fix thinko in disabling menu items
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/fedora-11] Fix thinko in disabling menu items
- Date: Wed, 16 Sep 2009 10:43:01 +0000 (UTC)
commit f2ae6aa239df221ca096cdb604f0569218d6178a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 30 15:50:22 2009 +0100
Fix thinko in disabling menu items
applet/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index c826b9d..f9ea351 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -350,8 +350,7 @@ update_menu_items (void)
if (num_adapters_present == 0)
enabled = FALSE;
else
- enabled = (num_adapters_present - num_adapters_powered) >= 0;
-
+ enabled = (num_adapters_present - num_adapters_powered) <= 0;
object = gtk_builder_get_object (xml, "send-file");
gtk_action_set_sensitive (GTK_ACTION (object),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]