Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-08-31 15:31:16 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-08-31 15:31:16 (GMT)
commit2611a8f2b7a04116d9e50dece68115495f31a66e (patch)
treee5f32ce5533d25d1ba0d3e20ef5631f751e0500e /shell
parent22f03e75fd3a285e7242d6f74ba8921039c2e632 (diff)
Make sure evince starts up in the right workspace when resuming a previous
2008-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_open_window), (ev_application_open_uri_at_dest): Make sure evince starts up in the right workspace when resuming a previous session. svn path=/trunk/; revision=3132
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-application.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 8fb4871..fd43c88 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -451,7 +451,8 @@ ev_application_open_window (EvApplication *application,
}
ev_application_add_icon_path_for_screen (screen);
- gtk_widget_show (new_window);
+ if (!GTK_WIDGET_REALIZED (new_window))
+ gtk_widget_realize (new_window);
if (timestamp <= 0)
timestamp = gdk_x11_get_server_time (GTK_WIDGET (new_window)->window);
@@ -609,15 +610,16 @@ ev_application_open_uri_at_dest (EvApplication *application,
ev_window_open_uri (new_window, uri, dest, mode, search_string,
unlink_temp_file, print_settings);
- ev_document_fc_mutex_lock ();
- gtk_widget_show (GTK_WIDGET (new_window));
- ev_document_fc_mutex_unlock ();
+ if (!GTK_WIDGET_REALIZED (GTK_WIDGET (new_window)))
+ gtk_widget_realize (GTK_WIDGET (new_window));
if (timestamp <= 0)
timestamp = gdk_x11_get_server_time (GTK_WIDGET (new_window)->window);
gdk_x11_window_set_user_time (GTK_WIDGET (new_window)->window, timestamp);
-
+
+ ev_document_fc_mutex_lock ();
gtk_window_present (GTK_WINDOW (new_window));
+ ev_document_fc_mutex_unlock ();
}
/**