Commit 7a08c865 authored by Michael Meeks's avatar Michael Meeks

misc. print fixups.

parent 26b11c20
1999-09-12 Michael Meeks <michael@nuclecu.unam.mx>
* src/print-preview.c (preview_destroyed, print_preview_new): Attach signal
to the workbook and warn.
* src/print.c (sheet_print): Remove redundant print_context_close_file.
* src/embeddable-grid.c (grid_view_new): NULL a pointer.
1999-09-12 Michael Meeks <mmeeks@gnu.org>
* src/embeddable-grid.c (grid_view_activate): Hack to cope with new
private Bonobo plug, just emit a warning.
(grid_view_new): similarly hacked.
......
1999-09-12 Michael Meeks <michael@nuclecu.unam.mx>
* src/print-preview.c (preview_destroyed, print_preview_new): Attach signal
to the workbook and warn.
* src/print.c (sheet_print): Remove redundant print_context_close_file.
* src/embeddable-grid.c (grid_view_new): NULL a pointer.
1999-09-12 Michael Meeks <mmeeks@gnu.org>
* src/embeddable-grid.c (grid_view_activate): Hack to cope with new
private Bonobo plug, just emit a warning.
(grid_view_new): similarly hacked.
......
......@@ -314,7 +314,7 @@ grid_view_activate (GridView *grid_view)
GnomeView *
grid_view_new (EmbeddableGrid *eg)
{
GridView *grid_view;
GridView *grid_view = NULL;
GNOME_View corba_grid_view;
grid_view = gtk_type_new (GRID_VIEW_TYPE);
......
......@@ -309,7 +309,8 @@ create_preview_canvas (PrintPreview *pp)
static void
preview_destroyed (void *unused, PrintPreview *pp)
{
gtk_signal_disconnect (GTK_OBJECT (pp->sheet), pp->destroy_id);
g_warning ("FIXME: destroy callback needs to be for sheet destruction");
gtk_signal_disconnect (GTK_OBJECT (pp->sheet->workbook), pp->destroy_id);
gtk_object_unref (GTK_OBJECT (pp->preview));
gtk_object_unref (GTK_OBJECT (pp->metafile));
g_free (pp->toolbar);
......@@ -539,8 +540,9 @@ print_preview_new (Sheet *sheet)
create_toplevel (pp);
create_preview_canvas (pp);
g_warning ("FIXME: destroy callback needs to be for sheet destruction");
pp->destroy_id = gtk_signal_connect (
GTK_OBJECT (pp->sheet), "destroy",
GTK_OBJECT (pp->sheet->workbook), "destroy",
GTK_SIGNAL_FUNC (sheet_destroyed), pp);
{
......
......@@ -634,8 +634,6 @@ sheet_print (Sheet *sheet, gboolean preview,
}
}
gnome_print_context_close (pj->print_context);
if (preview)
print_preview_print_done (pj->preview);
else {
......
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