[dia: 19/105] #19: app/menus.c: remove hack; this fixes app/run_dia.sh.



commit b20b75af240c468b3a1faeba600f69bdb92438c9
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Thu Dec 20 00:53:21 2018 +0000

    #19: app/menus.c: remove hack; this fixes app/run_dia.sh.
    
      - The 'bug' was caused by moving the ui files to data/ui.
      - I like it when cleaning things up causes more things to be cleaned up :-)

 app/menus.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/app/menus.c b/app/menus.c
index a12bb51d..d339e839 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -832,10 +832,6 @@ build_ui_filename (const gchar* name)
   gchar* uifile;
 
   if (g_getenv ("DIA_BASE_PATH") != NULL) {
-    /* a small hack cause the final destination and the local path differ */
-    const gchar* p = strrchr (name, '/');
-    if (p != NULL)
-      name = p+1;
     uifile = g_build_filename (g_getenv ("DIA_BASE_PATH"), "data", name, NULL);
   } else
     uifile = dia_get_data_directory (name);


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