]> www.fi.muni.cz Git - evince.git/commitdiff
Use ev_application_open_uri_at_dest instead of ev_application_open_uri
authorEduardo Lima <eduardo.lima@indt.org.br>
Mon, 30 Apr 2007 15:16:07 +0000 (15:16 +0000)
committerEduardo de Barros Lima <eblima@src.gnome.org>
Mon, 30 Apr 2007 15:16:07 +0000 (15:16 +0000)
2007-04-30  Eduardo Lima <eduardo.lima@indt.org.br>

    * shell/ev-window.c (ev_window_cmd_recent_file_activate): Use
    ev_application_open_uri_at_dest instead of ev_application_open_uri
    preventing new document always being opened in a new window even if there
    is an empty window.

svn path=/trunk/; revision=2429

ChangeLog
shell/ev-window.c

index fa91dddbb3df656b2c4189c4479c1aae6c51e89d..c7e6c2af9994ddf91712b19bdbdd425c6978ebc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-04-30  Eduardo Lima <eduardo.lima@indt.org.br>
+
+       * shell/ev-window.c (ev_window_cmd_recent_file_activate): Use
+       ev_application_open_uri_at_dest instead of ev_application_open_uri
+       preventing new document always being opened in a new window even if there
+       is an empty window.
+
 2007-04-29  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * cut-n-paste/recent-files/egg-recent-view-uimanager.c:
index 770c916a523f0763f584f4fcfc3a3302ed21c52b..e883f4fdb1c6355ad6b402aa0ab710193f41a5e0 100644 (file)
@@ -1684,8 +1684,10 @@ ev_window_cmd_recent_file_activate (GtkAction *action,
 
        uri = egg_recent_item_get_uri (item);
 
-       ev_application_open_uri (EV_APP, uri, NULL,
-                                GDK_CURRENT_TIME, NULL);
+       ev_application_open_uri_at_dest (EV_APP, uri,
+                                        gtk_window_get_screen (GTK_WINDOW (ev_window)),
+                                        NULL, 0, FALSE,
+                                        GDK_CURRENT_TIME);
        
        g_free (uri);
 }