Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-18 22:28:07 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-18 22:28:07 (GMT)
commitbde20b7777d4230eca9fb8a7a7bd9efe700e78e9 (patch)
tree8589995c920f3370bd20ab76ac70eed415482b71 /shell/ev-application.c
parent1a8a7520ef13e6d7a2f38e11e80c01cf76825d50 (diff)
Fix build error and small problem on application exit
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r--shell/ev-application.c4
1 files changed, 4 insertions, 0 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));