[glib] GNetworkMonitor: Rename "network-changed" signal argument
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GNetworkMonitor: Rename "network-changed" signal argument
- Date: Tue, 9 Jan 2018 16:24:46 +0000 (UTC)
commit 181d1c3052b64887b868d8d0746affc026480c51
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 14 23:17:37 2017 +0100
GNetworkMonitor: Rename "network-changed" signal argument
Because the argument being called "available" and the property being
called "network-available" is confusing.
Also remove the details of what that value means, as it's already
described in the property, and duplicating the explanation makes it look
like it might have a different meaning.
https://bugzilla.gnome.org/show_bug.cgi?id=792370
gio/gnetworkmonitor.c | 8 ++------
gio/gnetworkmonitor.h | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gio/gnetworkmonitor.c b/gio/gnetworkmonitor.c
index b38f408..657c704 100644
--- a/gio/gnetworkmonitor.c
+++ b/gio/gnetworkmonitor.c
@@ -309,13 +309,9 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface)
/**
* GNetworkMonitor::network-changed:
* @monitor: a #GNetworkMonitor
- * @available: the current value of #GNetworkMonitor:network-available
+ * @network_available: the current value of #GNetworkMonitor:network-available
*
- * Emitted when the network configuration changes. If @available is
- * %TRUE, then some hosts may be reachable that were not reachable
- * before, while others that were reachable before may no longer be
- * reachable. If @available is %FALSE, then no remote hosts are
- * reachable.
+ * Emitted when the network configuration changes.
*
* Since: 2.32
*/
diff --git a/gio/gnetworkmonitor.h b/gio/gnetworkmonitor.h
index c863fbf..dcaeaad 100644
--- a/gio/gnetworkmonitor.h
+++ b/gio/gnetworkmonitor.h
@@ -48,7 +48,7 @@ struct _GNetworkMonitorInterface {
GTypeInterface g_iface;
void (*network_changed) (GNetworkMonitor *monitor,
- gboolean available);
+ gboolean network_available);
gboolean (*can_reach) (GNetworkMonitor *monitor,
GSocketConnectable *connectable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]