[retro-gtk/wip/aplazas/controller] core: Make 'is-initiated' prop read-only



commit a5e3e0ccd3a9f4ad998f2268d23532d37405e907
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Oct 11 20:05:03 2017 +0200

    core: Make 'is-initiated' prop read-only
    
    It should be set only by the core.

 retro-gtk/retro-core.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index 0007ad8..2e0738e 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -187,10 +187,6 @@ retro_core_get_property (GObject    *object,
     g_value_set_string (value, retro_core_get_save_directory (self));
 
     break;
-  case PROP_IS_INITIATED:
-    g_value_set_boolean (value, retro_core_get_is_initiated (self));
-
-    break;
   case PROP_GAME_LOADED:
     g_value_set_boolean (value, retro_core_get_game_loaded (self));
 
@@ -351,7 +347,7 @@ retro_core_class_init (RetroCoreClass *klass)
                           "Is initiated",
                           "Whether the core has been initiated",
                           FALSE,
-                          G_PARAM_READWRITE |
+                          G_PARAM_READABLE |
                           G_PARAM_STATIC_NAME |
                           G_PARAM_STATIC_NICK |
                           G_PARAM_STATIC_BLURB);


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