[gnome-control-center] region: Add weak ref for GSettings object
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Add weak ref for GSettings object
- Date: Fri, 17 Jun 2011 09:07:31 +0000 (UTC)
commit 2ded577f3dbc534b7ff17fcbad57f257dc1fbb1e
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Fri Jun 17 11:07:04 2011 +0200
region: Add weak ref for GSettings object
panels/region/gnome-region-panel-formats.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-formats.c b/panels/region/gnome-region-panel-formats.c
index 55c77e4..bc5940d 100644
--- a/panels/region/gnome-region-panel-formats.c
+++ b/panels/region/gnome-region-panel-formats.c
@@ -120,5 +120,6 @@ setup_formats (GtkBuilder *builder)
gtk_combo_box_set_active_id (GTK_COMBO_BOX (combo), 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]