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



commit 57d142bca30a16d03a6e5f9da6649cd6d27625ae
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Oct 11 20:06:25 2017 +0200

    core: Make 'support-no-game' 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 9086e22..2aa90d2 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_SUPPORT_NO_GAME:
-    g_value_set_boolean (value, retro_core_get_support_no_game (self));
-
-    break;
   case PROP_FRAMES_PER_SECOND:
     g_value_set_double (value, retro_core_get_frames_per_second (self));
 
@@ -373,7 +369,7 @@ retro_core_class_init (RetroCoreClass *klass)
                           "Support no game",
                           "Whether the core supports running with no game",
                           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]