[retro-gtk] retro-gobject: Deprecate old module lookup functions



commit f720102dd58fc2c0b52b51747231231b00813d45
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 9 15:25:20 2016 +0200

    retro-gobject: Deprecate old module lookup functions
    
    Deprecate Retro.get_plugins_dir(), Retro.search_module() and
    Config.PROJECT_PLUGINS_DIR as they have been replaced in the previous
    commits.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769678
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769729

 retro-gobject/retro.vala       |    2 ++
 retro-gobject/vapi/config.vapi |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/retro-gobject/retro.vala b/retro-gobject/retro.vala
index 8c6976d..93643d7 100644
--- a/retro-gobject/retro.vala
+++ b/retro-gobject/retro.vala
@@ -40,10 +40,12 @@ public SystemInfo? get_system_info (string module_name) {
        return info;
 }
 
+[Version (deprecated = true, deprecated_since = "0.8")]
 public static string get_plugins_dir () {
        return Config.PROJECT_PLUGINS_DIR;
 }
 
+[Version (deprecated = true, deprecated_since = "0.8", replacement = 
"Retro.ModuleQuery.lookup_module_for_basename")]
 public string? search_module (string module_basename) {
        var envp = Environ.@get ();
        var retro_plugin_path = Environ.get_variable (envp, ENV_PLUGIN_PATH) ?? "";
diff --git a/retro-gobject/vapi/config.vapi b/retro-gobject/vapi/config.vapi
index 4cf881a..2fec407 100644
--- a/retro-gobject/vapi/config.vapi
+++ b/retro-gobject/vapi/config.vapi
@@ -8,6 +8,7 @@ namespace Config {
        public const string PROJECT_NAME;
        public const string PROJECT_API_VERSION;
        public const string PROJECT_DIR_NAME;
+       [Version (deprecated = true, deprecated_since = "0.8", replacement = "Config.RETRO_PLUGIN_PATH")]
        public const string PROJECT_PLUGINS_DIR;
        public const string RETRO_PLUGIN_PATH;
        public const string PACKAGE;


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