[gnome-power-manager/gnome-2-28] Do not hide some radio buttons depending on the current machine state
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-28] Do not hide some radio buttons depending on the current machine state
- Date: Thu, 1 Oct 2009 15:05:22 +0000 (UTC)
commit c7a1cbb27001dd3a5a49b828e9f993df1e8be16e
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 fcd2d59..9d7be12 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -638,20 +638,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]