Commit 3ceccac0 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Support new plugin interface.


1999-12-31  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_import) : Support new plugin interface.
parent cf47b02a
1999-12-31 Jody Goldberg <jgoldberg@home.com>
* src/file.c (workbook_import) : Support new plugin interface.
1999-12-31 Miguel de Icaza <miguel@gnu.org>
* src/corba-workbook.c (workbook_corba_setup): Create the corba
......
1999-12-31 Jody Goldberg <jgoldberg@home.com>
* src/file.c (workbook_import) : Support new plugin interface.
1999-12-31 Miguel de Icaza <miguel@gnu.org>
* src/corba-workbook.c (workbook_corba_setup): Create the corba
......
......@@ -328,19 +328,23 @@ workbook_import (Workbook *parent, const char *filename)
if (ret == 0 && clist->selection) {
FileOpener *fo;
int sel_row;
char *error;
sel_row = GPOINTER_TO_INT (clist->selection->data);
fo = gtk_clist_get_row_data (clist, sel_row);
wb = workbook_new ();
if (!fo->open (wb, filename)){
error = fo->open (wb, filename);
if (error != NULL) {
#ifdef ENABLE_BONOBO
gnome_object_destroy (GNOME_OBJECT (wb));
#else
gtk_object_destroy (GTK_OBJECT (wb));
#endif
wb = NULL;
file_error_message (N_("Could not import file %s"),
filename, error);
} else {
workbook_mark_clean (wb);
/* We will want to change the name before saving */
......
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