[gtk-vnc] connection: simplify sharedFlag argument name



commit 63217f3b95262039d6192d51d2ac490933ab790a
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Fri Apr 2 20:19:22 2021 +0400

    connection: simplify sharedFlag argument name
    
    Lower_case is the prefered glib C style.
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 src/vncconnection.c | 6 +++---
 src/vncconnection.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index a70ece9..dcc27ff 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -1530,7 +1530,7 @@ const VncPixelFormat *vnc_connection_get_pixel_format(VncConnection *conn)
 /**
  * vnc_connection_set_shared:
  * @conn: (transfer none): the connection object
- * @sharedFlag: the new sharing state
+ * @shared: the new sharing state
  *
  * Set the shared state for the connection. A TRUE value
  * allow allow this client to co-exist with other existing
@@ -1539,14 +1539,14 @@ const VncPixelFormat *vnc_connection_get_pixel_format(VncConnection *conn)
  *
  * Returns: TRUE if the connection is ok, FALSE if it has an error
  */
-gboolean vnc_connection_set_shared(VncConnection *conn, gboolean sharedFlag)
+gboolean vnc_connection_set_shared(VncConnection *conn, gboolean shared)
 {
     VncConnectionPrivate *priv = conn->priv;
 
     if (vnc_connection_is_open(conn))
         return FALSE;
 
-    priv->sharedFlag = sharedFlag;
+    priv->sharedFlag = shared;
 
     return !vnc_connection_has_error(conn);
 }
diff --git a/src/vncconnection.h b/src/vncconnection.h
index fc2fc64..9efbf8f 100644
--- a/src/vncconnection.h
+++ b/src/vncconnection.h
@@ -236,7 +236,7 @@ gboolean vnc_connection_set_pixel_format(VncConnection *conn,
 
 const VncPixelFormat *vnc_connection_get_pixel_format(VncConnection *conn);
 
-gboolean vnc_connection_set_shared(VncConnection *conn, gboolean sharedFlag);
+gboolean vnc_connection_set_shared(VncConnection *conn, gboolean shared);
 gboolean vnc_connection_get_shared(VncConnection *conn);
 
 gboolean vnc_connection_has_error(VncConnection *conn);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]