Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-application.c4
-rw-r--r--shell/ev-document-types.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index e24e823..43c4068 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 cc7734f..2d64594 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