Skip to content

Commit

Permalink
Fix non modemmanager build (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
leigh123linux authored and clefebvre committed Jan 23, 2018
1 parent 6440916 commit 6a91605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions panels/network/cc-network-panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
g_signal_connect (panel->priv->client, "device-removed",
G_CALLBACK (device_removed_cb), panel);

#ifdef BUILD_MODEM
/* Setup ModemManager client */
system_bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error);
if (system_bus == NULL) {
Expand All @@ -1353,6 +1354,9 @@ cc_network_panel_init (CcNetworkPanel *panel)
}
g_object_unref (system_bus);
}
#else
panel->priv->modem_manager = NULL;
#endif

widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
"add_toolbutton"));
Expand Down

0 comments on commit 6a91605

Please sign in to comment.