]> www.fi.muni.cz Git - evince.git/commitdiff
Use the window title as print job name instead of just "evince-print".
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 25 May 2008 16:39:13 +0000 (16:39 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 25 May 2008 16:39:13 +0000 (16:39 +0000)
2008-05-25  Carlos Garcia Campos  <carlosgc@gnome.org>

* 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

ChangeLog
shell/ev-window.c

index 8eaf21fef7746cb1d8c3fa4859c2e0a687f38b63..b212d66045f4e6e88f4c4371bddfcb3e7bd32260 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-05-25  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <fpeters@0d.be>
 
        * libdocument/Makefile.am: fixed typo in ev-debug.h filename.
index dd05d662d2b88ab2f871f6d8cd9c48594e8f028f..3b72a8f7b299670d2381cb511c19258f2d2a6f7b 100644 (file)
@@ -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);