From 2eecd9167f17b9b0506675a9dc05dff487779afa Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 26 Aug 2005 02:34:30 +0000 Subject: Add 'timestamp' argument to ev_application_open_window and 2005-08-25 Ryan Lortie * shell/ev-application-service.xml: Add 'timestamp' argument to ev_application_open_window and ev_application_open_uri methods. * shell/ev-application.h: Add 'timestamp' argument to ev_application_open_window, ev_application_open_uri, and ev_application_open_uri_list functions. * shell/ev-application.c (ev_application_open_window, ev_application_open_uri, ev_application_open_uri_list): Change functions that show/present windows to use a timestamp if one is passed in. * shell/ev-window.c (ev_window_cmd_file_open, ev_window_cmd_recent_file_activate, drag_data_received_cb): * shell/main.c (load_files): Modify calls to ev_application to include GDK_CURRENT_TIME as timestamp. * shell/main.c (load_files_remote): Obtain timestamp for client instance from GDK and pass to server instance so new windows are focused properly. Fix dbus_g_proxy_call() calls by including second G_TYPE_INVALID. Closes bug #314475. --- (limited to 'shell/ev-window.c') diff --git a/shell/ev-window.c b/shell/ev-window.c index c634a07..8ab8da5 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1102,7 +1102,7 @@ ev_window_cmd_file_open (GtkAction *action, EvWindow *window) folder = gtk_file_chooser_get_current_folder_uri (GTK_FILE_CHOOSER (chooser)); - ev_application_open_uri_list (EV_APP, uris); + ev_application_open_uri_list (EV_APP, uris, GDK_CURRENT_TIME); g_slist_foreach (uris, (GFunc)g_free, NULL); g_slist_free (uris); @@ -1126,7 +1126,7 @@ ev_window_cmd_recent_file_activate (GtkAction *action, uri = egg_recent_item_get_uri (item); - ev_application_open_uri (EV_APP, uri, NULL, NULL); + ev_application_open_uri (EV_APP, uri, NULL, GDK_CURRENT_TIME, NULL); g_free (uri); } @@ -3051,7 +3051,7 @@ drag_data_received_cb (GtkWidget *widget, GdkDragContext *context, gnome_vfs_uri_list_free (uri_list); - ev_application_open_uri_list (EV_APP, uris); + ev_application_open_uri_list (EV_APP, uris, 0); g_slist_free (uris); -- cgit v0.9.1