[gtk+] inspector: Fix initial state of dark switch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Fix initial state of dark switch
- Date: Sun, 14 Sep 2014 12:48:27 +0000 (UTC)
commit 3ad8bae1c450df0e4a43c78fc07d659dec08f4cc
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 14 08:36:41 2014 -0400
inspector: Fix initial state of dark switch
Noticed while debugging a totem problem.
gtk/inspector/visual.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c
index a86c997..acd3c8e 100644
--- a/gtk/inspector/visual.c
+++ b/gtk/inspector/visual.c
@@ -258,9 +258,9 @@ theme_changed (GtkComboBox *c,
static void
init_dark (GtkInspectorVisual *vis)
{
- g_object_bind_property (vis->priv->dark_switch, "active",
- gtk_settings_get_default (), "gtk-application-prefer-dark-theme",
- G_BINDING_BIDIRECTIONAL);
+ g_object_bind_property (gtk_settings_get_default (), "gtk-application-prefer-dark-theme",
+ vis->priv->dark_switch, "active",
+ G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
if (g_getenv ("GTK_THEME") != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]