From: Nickolay V. Shmyrev Date: Mon, 28 Aug 2006 00:35:53 +0000 (+0000) Subject: Implement Close named action. Patch by Carlos Garcia Campos. X-Git-Tag: EVINCE_0_6_0~17 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=630b54e8cd688dc0af01f73ca90169f270823d1d;p=evince.git Implement Close named action. Patch by Carlos Garcia Campos. 2006-08-28 Nickolay V. Shmyrev * shell/ev-window.c: (ev_window_xfer_job_cb), (do_action_named): Implement Close named action. Patch by Carlos Garcia Campos. --- diff --git a/ChangeLog b/ChangeLog index 98ab3e97..99fa531f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-28 Nickolay V. Shmyrev + + * shell/ev-window.c: (ev_window_xfer_job_cb), (do_action_named): + Implement Close named action. Patch by Carlos Garcia Campos. + 2006-08-28 Nickolay V. Shmyrev * shell/ev-pixbuf-cache.c: (copy_job_to_job_info): diff --git a/shell/ev-window.c b/shell/ev-window.c index 52f25767..cbd504ca 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -963,7 +963,7 @@ ev_window_xfer_job_cb (EvJobXfer *job, if (ev_window->priv->document) g_object_unref (ev_window->priv->document); ev_window->priv->document = g_object_ref (document); - + ev_window_setup_document (ev_window); ev_window_add_recent (ev_window, ev_window->priv->uri); @@ -3831,6 +3831,8 @@ do_action_named (EvWindow *window, EvLinkAction *action) ev_window_cmd_focus_page_selector (NULL, window); } else if (g_ascii_strcasecmp (name, "Find") == 0) { ev_window_cmd_edit_find (NULL, window); + } else if (g_ascii_strcasecmp (name, "Close") == 0) { + ev_window_cmd_file_close_window (NULL, window); } else { g_warning ("Unimplemented named action: %s, please post a " "bug report in Evince bugzilla "