]> www.fi.muni.cz Git - evince.git/commitdiff
Respect the screen when opening help (#437866).
authorRoss Burton <ross@openedhand.com>
Sat, 12 May 2007 11:32:01 +0000 (11:32 +0000)
committerRoss Burton <rburton@src.gnome.org>
Sat, 12 May 2007 11:32:01 +0000 (11:32 +0000)
2007-05-12  Ross Burton  <ross@openedhand.com>

* shell/ev-window.c:
Respect the screen when opening help (#437866).

svn path=/trunk/; revision=2451

ChangeLog
shell/ev-window.c

index 98c80839b5cf4e6734ab66d41ce145edd1ba90d8..843568b1b2db3ac06ebf1ac194b6c5b0fedd83b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-12  Ross Burton  <ross@openedhand.com>
+
+       * shell/ev-window.c:
+       Respect the screen when opening help (#437866).
+
 2007-05-11  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * data/evince-ui.xml:
index 079cb1c376acce35e66b677855711293d9c97ecb..9615c9ab4a52ed6e6ac2f370a22c46406a14f134 100644 (file)
@@ -3168,6 +3168,7 @@ static void
 ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
 {
        GError *error = NULL;
+       GdkScreen *screen;
        char *command;
        const char *lang;
        char *uri = NULL;
@@ -3201,7 +3202,8 @@ ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
        command = g_strconcat ("gnome-help ghelp://", uri,  NULL);
        g_free (uri);
        
-       g_spawn_command_line_async (command, &error);
+       screen = gtk_widget_get_screen (GTK_WIDGET (ev_window));
+       gdk_spawn_command_line_on_screen (screen, command, &error);
        if (error != NULL) {
                g_warning (error->message);
                g_error_free (error);