inspector: Fix initial state of dark switch

Noticed while debugging a totem problem.
This commit is contained in:
Matthias Clasen 2014-09-14 08:36:41 -04:00
parent ba086f978b
commit 3ad8bae1c4

View File

@ -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)
{