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

Re: gEDA-user: current working file name in gschemrc



Hi Kai-Martin Knaak,

(depending on your email system, some lines in the
code below may be just a long single line. So I am
re-sending with the fix for this. Hope it
comes out ok now)

Oh, I remember there is a bug in the gschem/src/g_funcs.c file.
You may want to change the "get_selected_filename" function
in "g_funcs.c" file, around line number 299, as follows:

/* ===================================================================== */
SCM get_selected_filename(GSCHEM_TOPLEVEL *w_current)
{
gchar* s; /* Added */
 SCM return_value;

 exit_if_null(w_current);
s = g_strdup(w_current->toplevel->page_current->page_filename); /* Changed */ return_value = scm_makfrom0str (s); /* Changed */ g_free (s); /* Added */ return return_value; /* Changed */
}
/* ===================================================================== */

The above change made the (get_selected_filename) work for me.

Hope it helps.

Best Regards,
Paul Tan



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