[gnome-control-center] display: Remove old radio-timey code



commit 8f614133ea72629c8f18182ad8acc5e4f5a8b0ee
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 4 03:35:12 2011 +0000

    display: Remove old radio-timey code
    
    There's no radio button to switch to off now.

 panels/display/xrandr-capplet.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index 62a71ad..f3a1c52 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -539,13 +539,11 @@ rebuild_on_off_radios (App *app)
 {
   gboolean sensitive;
   gboolean on_active;
-  gboolean off_active;
 
   g_signal_handlers_block_by_func (app->monitor_switch, G_CALLBACK (monitor_switch_active_cb), app);
 
   sensitive = FALSE;
   on_active = FALSE;
-  off_active = FALSE;
 
   if (!gnome_rr_config_get_clone (app->current_configuration) && app->current_output)
     {
@@ -555,7 +553,6 @@ rebuild_on_off_radios (App *app)
         sensitive = FALSE;
 
       on_active = gnome_rr_output_info_is_active (app->current_output);
-      off_active = !on_active;
     }
 
   gtk_widget_set_sensitive (app->monitor_switch, sensitive);



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