region: Add weak ref for GSettings object
This commit is contained in:
parent
87baf75e9c
commit
2ded577f3d
1 changed files with 1 additions and 0 deletions
|
@ -120,5 +120,6 @@ setup_formats (GtkBuilder *builder)
|
||||||
gtk_combo_box_set_active_id (GTK_COMBO_BOX (combo), current_lang);
|
gtk_combo_box_set_active_id (GTK_COMBO_BOX (combo), current_lang);
|
||||||
g_free (current_lang);
|
g_free (current_lang);
|
||||||
|
|
||||||
|
g_object_weak_ref (G_OBJECT (combo), (GWeakNotify) g_object_unref, locale_settings);
|
||||||
g_settings_bind (locale_settings, "region", combo, "active-id", G_SETTINGS_BIND_DEFAULT);
|
g_settings_bind (locale_settings, "region", combo, "active-id", G_SETTINGS_BIND_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue