diff options
author | Ross Burton <ross@linux.intel.com> | 2010-02-25 16:00:36 +0000 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2010-04-15 16:40:01 +0100 |
commit | 4cfaa8c319fe3a8c316e3374ebbed282fd5f6e95 (patch) | |
tree | 12676cf7be2996f6f0fef55afb356448ec54ba31 /moblin | |
parent | ff14fef9ec285bd2445c759216efb770677dad9a (diff) | |
download | gnome-bluetooth-4cfaa8c319fe3a8c316e3374ebbed282fd5f6e95.tar.gz |
Make the visible button insensitive if we have no BT
Diffstat (limited to 'moblin')
-rw-r--r-- | moblin/moblin-panel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c index 50189f3f..46056b1a 100644 --- a/moblin/moblin-panel.c +++ b/moblin/moblin-panel.c @@ -300,15 +300,18 @@ powerswitch_state_changed_cb (BluetoothPowerswitch *powerswitch, mx_gtk_light_switch_set_active (MX_GTK_LIGHT_SWITCH (priv->power_switch), FALSE); gtk_widget_set_sensitive (priv->power_switch, TRUE); + gtk_widget_set_sensitive (priv->visible_button, FALSE); gtk_widget_set_sensitive (priv->add_new_button, FALSE); gtk_widget_set_sensitive (priv->send_button, FALSE); } else if (state == POWERSWITCH_STATE_ON) { mx_gtk_light_switch_set_active (MX_GTK_LIGHT_SWITCH (priv->power_switch), TRUE); gtk_widget_set_sensitive (priv->power_switch, TRUE); + gtk_widget_set_sensitive (priv->visible_button, TRUE); gtk_widget_set_sensitive (priv->add_new_button, TRUE); enable_send_file (self); } else if (state == POWERSWITCH_STATE_NO_ADAPTER) { gtk_widget_set_sensitive (priv->power_switch, FALSE); + gtk_widget_set_sensitive (priv->visible_button, FALSE); gtk_widget_set_sensitive (priv->add_new_button, FALSE); gtk_widget_set_sensitive (priv->send_button, FALSE); } else { |