[retro-gtk/wip/aplazas/controller] core: Make 'filename' prop read-only
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/controller] core: Make 'filename' prop read-only
- Date: Wed, 11 Oct 2017 19:58:00 +0000 (UTC)
commit 56a8c13605e3bcb76fe141ecf7e5357ea0e7ce43
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Oct 11 20:04:00 2017 +0200
core: Make 'filename' prop read-only
It can't be changed after construction.
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 fed0d9e..0007ad8 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -175,10 +175,6 @@ retro_core_get_property (GObject *object,
g_value_set_uint (value, retro_core_get_api_version (self));
break;
- case PROP_FILENAME:
- g_value_set_string (value, retro_core_get_filename (self));
-
- break;
case PROP_SYSTEM_DIRECTORY:
g_value_set_string (value, retro_core_get_system_directory (self));
@@ -294,7 +290,7 @@ retro_core_class_init (RetroCoreClass *klass)
"Filename",
"The module filename",
NULL,
- 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]