Commit c13cb208 authored by Michael Meeks's avatar Michael Meeks Committed by Michael Meeks

return non-filenames as NULL.

2000-06-26  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-bonobo.c (get_file_name): return non-filenames
	as NULL.
parent d832267d
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
2000-06-26 Michael Meeks <michael@helixcode.com>
* src/sheet-object-bonobo.c (get_file_name): return non-filenames
as NULL.
2000-06-26 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
......
......@@ -54,7 +54,8 @@ static char *
get_file_name (void)
{
GtkFileSelection *fs;
gchar *filename;
char *filename;
char *basename;
fs = GTK_FILE_SELECTION (gtk_file_selection_new ("Select filename"));
......@@ -68,8 +69,14 @@ get_file_name (void)
gtk_widget_show (GTK_WIDGET (fs));
gtk_main ();
filename = g_strdup (gtk_file_selection_get_filename (fs));
filename = gtk_file_selection_get_filename (fs);
if (!(basename = g_basename (filename)) ||
basename [0] == '\0')
filename = NULL;
else
filename = g_strdup (filename);
gtk_object_destroy (GTK_OBJECT (fs));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment