[gtk/matthiasc/for-master: 25/26] mediastream: Some properties were meant to be readonly



commit 87d2e864292e8571fde4958575e469d9520c37a5
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 20 15:05:13 2020 -0400

    mediastream: Some properties were meant to be readonly
    
    These properties aren't covered by set_property(), and
    it doesn't make sense to do so. They were just declared
    as read-write by mistake.

 gtk/gtkmediastream.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmediastream.c b/gtk/gtkmediastream.c
index 1222277143..22bbd916c9 100644
--- a/gtk/gtkmediastream.c
+++ b/gtk/gtkmediastream.c
@@ -313,7 +313,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
                         P_("Error"),
                         P_("Error the stream is in"),
                         G_TYPE_ERROR,
-                        G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
+                        G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
 
   /**
    * GtkMediaStream:has-audio:
@@ -325,7 +325,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
                           P_("Has audio"),
                           P_("Whether the stream contains audio"),
                           FALSE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
+                          G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
 
   /**
    * GtkMediaStream:has-video:
@@ -337,7 +337,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
                           P_("Has video"),
                           P_("Whether the stream contains video"),
                           FALSE,
-                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
+                          G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
 
   /**
    * GtkMediaStream:playing:


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