[gnome-control-center] datetime: Make 24h setting changeable without unlocking
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Make 24h setting changeable without unlocking
- Date: Fri, 11 Mar 2011 13:16:59 +0000 (UTC)
commit 639e87724e7d991660c2a06617e2ba0ba4ed8ef3
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 11 13:16:03 2011 +0000
datetime: Make 24h setting changeable without unlocking
https://bugzilla.gnome.org/show_bug.cgi?id=643891
panels/datetime/cc-datetime-panel.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index ce82778..e753cbd 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -749,13 +749,14 @@ on_permission_changed (GPermission *permission,
{
CcDateTimePanelPrivate *priv = CC_DATE_TIME_PANEL (data)->priv;
gboolean allowed;
- GtkWidget *vbox;
allowed = g_permission_get_allowed (permission);
- vbox = (GtkWidget*) gtk_builder_get_object (priv->builder, "vbox");
-
- gtk_widget_set_sensitive (vbox, allowed);
+ /* All the widgets but the lock button and the 24h setting */
+ gtk_widget_set_sensitive (W("map-vbox"), allowed);
+ gtk_widget_set_sensitive (W("hbox2"), allowed);
+ gtk_widget_set_sensitive (W("alignment2"), allowed);
+ gtk_widget_set_sensitive (W("table1"), allowed);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]