Don't crash if end_run is not set. (#424168, Matthias Hasselmann)

2007-04-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't
        crash if end_run is not set.  (#424168, Matthias Hasselmann)



svn path=/trunk/; revision=17636
This commit is contained in:
Matthias Clasen 2007-04-25 16:28:30 +00:00 committed by Matthias Clasen
parent 75efa95acb
commit aa3f2a792a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c (preview_iface_end_preview): Don't
crash if end_run is not set. (#424168, Matthias Hasselmann)
2007-04-25 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of

View File

@ -186,8 +186,9 @@ preview_iface_end_preview (GtkPrintOperationPreview *preview)
if (op->priv->rloop)
g_main_loop_quit (op->priv->rloop);
op->priv->end_run (op, op->priv->is_sync, TRUE);
if (op->priv->end_run)
op->priv->end_run (op, op->priv->is_sync, TRUE);
g_signal_emit (op, signals[DONE], 0,
GTK_PRINT_OPERATION_RESULT_APPLY);