From bde20b7777d4230eca9fb8a7a7bd9efe700e78e9 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Mon, 18 Apr 2005 22:28:07 +0000 Subject: [PATCH] Fix build error and small problem on application exit --- ChangeLog | 7 +++++++ shell/ev-application.c | 4 ++++ shell/ev-document-types.c | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d827d3ab..1555090b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-04-19 Nickolay V. Shmyrev + + * shell/ev-application.c: (ev_application_open): + * shell/ev-document-types.c: + + Fix build error and small problem with application exit + 2005-04-19 Nickolay V. Shmyrev * thumbnailer/Makefile.am: diff --git a/shell/ev-application.c b/shell/ev-application.c index e24e8238..43c40680 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -200,6 +200,10 @@ ev_application_open (EvApplication *application, GError *err) ev_window_open (ev_window, uri); gtk_widget_show (GTK_WIDGET (ev_window)); g_free (uri); + + } else { + if (!GTK_WIDGET_VISIBLE (ev_window)) + gtk_widget_destroy (GTK_WIDGET (ev_window)); } gtk_widget_destroy (GTK_WIDGET (chooser)); diff --git a/shell/ev-document-types.c b/shell/ev-document-types.c index cc7734f1..2d64594d 100644 --- a/shell/ev-document-types.c +++ b/shell/ev-document-types.c @@ -55,7 +55,7 @@ const EvDocumentType document_types[] = { #ifdef ENABLE_DJVU /* djvu: */ - {"image/vnd.djvu", djvu_document_get_type), + {"image/vnd.djvu", djvu_document_get_type}, #endif #ifdef ENABLE_DVI -- 2.43.5