From: Carlos Garcia Campos Date: Sun, 25 May 2008 16:39:13 +0000 (+0000) Subject: Use the window title as print job name instead of just "evince-print". X-Git-Tag: EVINCE_2_23_4~10 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a2fef76cd3e414028d5af037a3ff1913a3fdb7d3;p=evince.git Use the window title as print job name instead of just "evince-print". 2008-05-25 Carlos Garcia Campos * shell/ev-window.c: (ev_window_print_send), (ev_window_do_preview_print): Use the window title as print job name instead of just "evince-print". Fixes bug #534493. svn path=/trunk/; revision=3042 --- diff --git a/ChangeLog b/ChangeLog index 8eaf21fe..b212d660 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-25 Carlos Garcia Campos + + * shell/ev-window.c: (ev_window_print_send), + (ev_window_do_preview_print): + + Use the window title as print job name instead of just + "evince-print". Fixes bug #534493. + 2008-05-19 Frederic Peters * libdocument/Makefile.am: fixed typo in ev-debug.h filename. diff --git a/shell/ev-window.c b/shell/ev-window.c index dd05d662..3b72a8f7 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2228,7 +2228,7 @@ ev_window_print_send (EvWindow *window, GtkPrintJob *job; GError *error = NULL; - job = gtk_print_job_new ("evince-print", + job = gtk_print_job_new (gtk_window_get_title (GTK_WINDOW (window)), window->priv->printer, settings, window->priv->print_page_setup); @@ -3330,7 +3330,7 @@ ev_window_do_preview_print (EvWindow *window) page_setup = gtk_page_setup_new (); - job = gtk_print_job_new ("evince-print", + job = gtk_print_job_new (gtk_window_get_title (GTK_WINDOW (window)), priv->printer, priv->print_settings, page_setup);