]> www.fi.muni.cz Git - evince.git/commitdiff
Implement Close named action. Patch by Carlos Garcia Campos.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Mon, 28 Aug 2006 00:35:53 +0000 (00:35 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 28 Aug 2006 00:35:53 +0000 (00:35 +0000)
2006-08-28  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* shell/ev-window.c: (ev_window_xfer_job_cb), (do_action_named):
Implement Close named action. Patch by Carlos Garcia Campos.

ChangeLog
shell/ev-window.c

index 98ab3e9725b8f043af55ed8bcd6f83019ac3cbd8..99fa531ff9fda4dd78d26488b7b38b00005c4adb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-28  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * 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  <nshmyrev@yandex.ru>
 
        * shell/ev-pixbuf-cache.c: (copy_job_to_job_info):
index 52f257677bb6772d4dfda9c981798029f09c8b72..cbd504ca5eacb50c48741a266d7af7f47247695d 100644 (file)
@@ -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 "