[gnome-control-center] universal-access: Fix initial state of DPI dropdown
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] universal-access: Fix initial state of DPI dropdown
- Date: Mon, 28 Feb 2011 16:25:55 +0000 (UTC)
commit 69e7f00833a402acd0208a7d5691f37b9aa57a72
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 28 16:02:59 2011 +0000
universal-access: Fix initial state of DPI dropdown
And handle the special "0.0" DPI.
panels/universal-access/cc-ua-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index b39bcd5..f6d5632 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -402,6 +402,8 @@ dpi_notify_cb (GSettings *settings,
/* get current value from screen */
x_dpi = get_dpi_from_x_server ();
+ if (conf_value == 0.0)
+ conf_value = x_dpi;
/* find the closest match in the combobox model */
distance = 1e6;
@@ -572,6 +574,7 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
{
CcUaPanelPrivate *priv = self->priv;
+ dpi_notify_cb (priv->font_settings, "dpi", self);
g_signal_connect (priv->font_settings, "changed", G_CALLBACK (dpi_notify_cb), self);
g_signal_connect (WID (priv->builder, "seeing_contrast_combobox"), "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]