From: Eduardo Lima Date: Mon, 30 Apr 2007 15:16:07 +0000 (+0000) Subject: Use ev_application_open_uri_at_dest instead of ev_application_open_uri X-Git-Tag: EVINCE_0_9_0~29 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=4503ce8e24756884b0992c0717dc127d67d9f981;p=evince.git Use ev_application_open_uri_at_dest instead of ev_application_open_uri 2007-04-30 Eduardo Lima * 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 --- diff --git a/ChangeLog b/ChangeLog index fa91dddb..c7e6c2af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-30 Eduardo Lima + + * 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 * cut-n-paste/recent-files/egg-recent-view-uimanager.c: diff --git a/shell/ev-window.c b/shell/ev-window.c index 770c916a..e883f4fd 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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); }