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

gEDA-cvs: branch: master updated (1.1.2.20070818-127-g9d2d7b0)



The branch, master has been updated
       via  9d2d7b0042a75f0494a240ceb79e60173d2e55d7 (commit)
      from  d3d40d46285c5d0e75be9052d9f23480f9e8bff5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/src/g_rc.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 9d2d7b0042a75f0494a240ceb79e60173d2e55d7
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Tue Dec 4 16:17:59 2007 +0000

    Fix messages when parsing rc paths.
    
    Often, the full path to an rc file was being output twice in the log
    message given when parsing rc files.

:100644 100644 17d3321... e061272... M	libgeda/src/g_rc.c

=========
 Changes
=========

commit 9d2d7b0042a75f0494a240ceb79e60173d2e55d7
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Tue Dec 4 16:17:59 2007 +0000

    Fix messages when parsing rc paths.
    
    Often, the full path to an rc file was being output twice in the log
    message given when parsing rc files.

diff --git a/libgeda/src/g_rc.c b/libgeda/src/g_rc.c
index 17d3321..e061272 100644
--- a/libgeda/src/g_rc.c
+++ b/libgeda/src/g_rc.c
@@ -326,6 +326,7 @@ gint g_rc_parse_specified_rc(TOPLEVEL *toplevel, const gchar *rcname)
 {
   gint found_rc = 0;
   char *filename;
+  gchar *rcbasename;
   gchar *ok_msg;
   gchar *err_msg;
 
@@ -335,15 +336,18 @@ gint g_rc_parse_specified_rc(TOPLEVEL *toplevel, const gchar *rcname)
 
   filename = f_normalize_filename (rcname);
 
+  rcbasename = g_path_get_basename (rcname);
+
   ok_msg  = g_strdup_printf ("Read specified %s file [%%s]\n",
-                             rcname);
+                             rcbasename);
   err_msg = g_strdup_printf ("Did not find specified %s file [%%s]\n",
-                             rcname);  
+                             rcbasename);
   found_rc = g_rc_parse_general(toplevel, filename, ok_msg, err_msg);
   
   g_free(ok_msg);
   g_free(err_msg);
   g_free(filename);
+  g_free(rcbasename);
 
   return found_rc;
 }




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs