[network-manager-applet/bg/bgo776384: 1/3] fixme: reproducer
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/bg/bgo776384: 1/3] fixme: reproducer
- Date: Thu, 29 Dec 2016 23:02:07 +0000 (UTC)
commit 8ee18043a0fb14f8799fba0afc0da20313ddf578
Author: Beniamino Galvani <bgalvani redhat com>
Date: Thu Dec 29 23:59:38 2016 +0100
fixme: reproducer
src/applet.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index f3a4a1e..5b013d1 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2396,7 +2396,7 @@ mm_new_ready (GDBusConnection *connection,
}
}
-static void
+static gboolean
mm1_client_setup (NMApplet *applet)
{
GDBusConnection *system_bus;
@@ -2414,6 +2414,8 @@ mm1_client_setup (NMApplet *applet)
g_warning ("Error connecting to system D-Bus: %s", error->message);
g_clear_error (&error);
}
+
+ return FALSE;
}
#endif /* WITH_WWAN */
@@ -3260,7 +3262,7 @@ applet_startup (GApplication *app, gpointer user_data)
g_assert (applet->bt_class);
#if WITH_WWAN
- mm1_client_setup (applet);
+ g_idle_add ((GSourceFunc) mm1_client_setup, applet);
#endif
if (applet->status_icon) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]