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



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

    core: Make 'game-loaded' 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 2e0738e..9086e22 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_GAME_LOADED:
-    g_value_set_boolean (value, retro_core_get_game_loaded (self));
-
-    break;
   case PROP_SUPPORT_NO_GAME:
     g_value_set_boolean (value, retro_core_get_support_no_game (self));
 
@@ -362,7 +358,7 @@ retro_core_class_init (RetroCoreClass *klass)
                           "Game loaded",
                           "Whether a game has been loaded",
                           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]