From: Ross Burton Date: Sat, 12 May 2007 11:32:01 +0000 (+0000) Subject: Respect the screen when opening help (#437866). X-Git-Tag: EVINCE_0_9_0~8 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=e201a8febb351c61a8e7714c2dbc83173575c8c6;p=evince.git Respect the screen when opening help (#437866). 2007-05-12 Ross Burton * shell/ev-window.c: Respect the screen when opening help (#437866). svn path=/trunk/; revision=2451 --- diff --git a/ChangeLog b/ChangeLog index 98c80839..843568b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-12 Ross Burton + + * shell/ev-window.c: + Respect the screen when opening help (#437866). + 2007-05-11 Carlos Garcia Campos * data/evince-ui.xml: diff --git a/shell/ev-window.c b/shell/ev-window.c index 079cb1c3..9615c9ab 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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);