[gnome-power-manager] Do not hide some radio buttons depending on the current machine state



commit 73bd434b1c65c89cedc045a460946144bcfa59d8
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 30 13:57:56 2009 +0100

    Do not hide some radio buttons depending on the current machine state
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=526075

 src/gpm-prefs-core.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 94db45d..1e5a379 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -636,20 +636,6 @@ prefs_setup_notification (GpmPrefs *prefs)
 			  G_CALLBACK (gpm_prefs_icon_radio_cb), prefs);
 	g_signal_connect (radiobutton_icon_never, "clicked",
 			  G_CALLBACK (gpm_prefs_icon_radio_cb), prefs);
-
-	if (prefs->priv->has_batteries) {
-		/* there's no use case for displaying this option */
-		gtk_widget_hide_all (radiobutton_icon_never);
-	}
-	if (prefs->priv->has_batteries == FALSE) {
-		/* Hide battery radio options if we have no batteries */
-		gtk_widget_hide_all (radiobutton_icon_charge);
-		gtk_widget_hide_all (radiobutton_icon_low);
-	}
-	if (prefs->priv->has_batteries == FALSE && prefs->priv->has_ups == FALSE) {
-		/* Hide battery present option if no ups or primary */
-		gtk_widget_hide_all (radiobutton_icon_present);
-	}
 }
 
 static void



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