[gnome-initial-setup] Avoid a critical warning when changing language
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Avoid a critical warning when changing language
- Date: Sat, 17 Nov 2012 01:12:32 +0000 (UTC)
commit c6ff46a8a44c937a58a5ca37efa687d45b787266
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 16 20:01:37 2012 -0500
Avoid a critical warning when changing language
nm_client_get_devices is transfer-none, so we have to take a ref
if we later want to unref.
.../pages/network/gis-network-page.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/network/gis-network-page.c b/gnome-initial-setup/pages/network/gis-network-page.c
index a1064fa..229d08f 100644
--- a/gnome-initial-setup/pages/network/gis-network-page.c
+++ b/gnome-initial-setup/pages/network/gis-network-page.c
@@ -654,7 +654,7 @@ gis_network_page_constructed (GObject *object)
if (nm_device_get_device_type (device) == NM_DEVICE_TYPE_WIFI) {
/* FIXME deal with multiple, dynamic devices */
- priv->nm_device = device;
+ priv->nm_device = g_object_ref (device);
g_signal_connect (G_OBJECT (device), "notify::state",
G_CALLBACK (device_state_changed), page);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]