[gnome-control-center] screen: Hide brightness heading when unused
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] screen: Hide brightness heading when unused
- Date: Wed, 31 Aug 2011 08:38:17 +0000 (UTC)
commit 9410bea42f4cae138ab813c383e5eca326e80ea9
Author: Bastien Nocera <hadess hadess net>
Date: Mon Aug 29 12:51:25 2011 +0100
screen: Hide brightness heading when unused
Trying to just hide the widget will cause some severely bizarre
display problems, so just set the heading to be empty instead
for now.
We should probably look at another way of handling this case.
https://bugzilla.gnome.org/show_bug.cgi?id=657606
panels/screen/cc-screen-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/screen/cc-screen-panel.c b/panels/screen/cc-screen-panel.c
index a6cc81f..3b3ffaa 100644
--- a/panels/screen/cc-screen-panel.c
+++ b/panels/screen/cc-screen-panel.c
@@ -253,6 +253,9 @@ get_brightness_cb (GObject *source_object, GAsyncResult *res, gpointer user_data
{
gtk_widget_hide (WID ("screen_brightness_hscale"));
gtk_widget_hide (WID ("screen_auto_reduce_checkbutton"));
+ /* FIXME: This needs a proper fix:
+ * https://bugzilla.gnome.org/show_bug.cgi?id=657606 */
+ gtk_label_set_text (GTK_LABEL (WID ("brightness-section-heading")), "");
g_warning ("Error getting brightness: %s", error->message);
g_error_free (error);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]