[gnome-initial-setup/shell/4765: 141/362] display: Re-read the configuration on toggle changes
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 141/362] display: Re-read the configuration on toggle changes
- Date: Thu, 19 Mar 2015 01:32:55 +0000 (UTC)
commit 484ef1bcf6672611413d0aefd5eac8a9f5d10df8
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Aug 8 00:35:19 2014 +0100
display: Re-read the configuration on toggle changes
Which means don't try to re-apply the same setting.
.../pages/display/gis-display-page.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/display/gis-display-page.c
b/gnome-initial-setup/pages/display/gis-display-page.c
index 643b593..e2a0a57 100644
--- a/gnome-initial-setup/pages/display/gis-display-page.c
+++ b/gnome-initial-setup/pages/display/gis-display-page.c
@@ -100,8 +100,6 @@ read_screen_config (GisDisplayPage *page)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_button),
gnome_rr_output_info_get_underscanning (output));
-
-
}
static void
@@ -112,6 +110,9 @@ toggle_overscan (GisDisplayPage *page)
gboolean value = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check));
GError *error;
+ if (value == gnome_rr_output_info_get_underscanning (priv->current_output))
+ return;
+
gnome_rr_output_info_set_underscanning (priv->current_output, value);
gnome_rr_config_sanitize (priv->current_config);
@@ -120,6 +121,8 @@ toggle_overscan (GisDisplayPage *page)
error = NULL;
gnome_rr_config_apply_persistent (priv->current_config, priv->screen, &error);
+ read_screen_config (page);
+
if (error != NULL)
{
g_warning ("Error applying configuration: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]