[vinagre] Remove unnecessary Win32-specific path checks



commit 6d2f01959e4ca733da1af48f3adc302987759b3d
Author: David King <amigadave amigadave com>
Date:   Thu Jun 30 20:34:18 2011 +0200

    Remove unnecessary Win32-specific path checks
    
    On Windows, g_get_system_data_dirs() returns the data directory inside
    the installation folder for the application, making the Win32-specific
    path checks in Vinagre.Dirs.get_package_data_file() unnecessary.

 vinagre/vinagre-dirs.vala |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/vinagre/vinagre-dirs.vala b/vinagre/vinagre-dirs.vala
index e9fbd80..9f9e3c8 100644
--- a/vinagre/vinagre-dirs.vala
+++ b/vinagre/vinagre-dirs.vala
@@ -28,11 +28,6 @@ namespace Vinagre.Dirs {
     }
 
     public string get_package_data_file (string filename) {
-#if G_OS_WIN32
-        return Path.build_filename (
-            Win32.get_package_installation_directory_of_module (null), "share",
-            Config.PACKAGE_TARNAME, filename);
-#else
         /* Check the compiled-in path first, so that if Vinagre is installed in
          * a custom prefix and the standard prefix, the custom prefix is
          * checked first. */
@@ -51,6 +46,5 @@ namespace Vinagre.Dirs {
         // Filename could not be found!
         error ("Data file â%sâ could not be found in system data directories.",
             filename);
-#endif
     }
 }



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