]> Pileus Git - ~andy/gtk/commitdiff
Translate the default job name, and don't utf8-validate the job name in
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Apr 2007 05:08:26 +0000 (05:08 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Apr 2007 05:08:26 +0000 (05:08 +0000)
2007-04-30  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkprintoperation.c: Translate the default job
        name, and don't utf8-validate the job name in the
        setter.  (#421993, Morten Welinder)

svn path=/trunk/; revision=17726

ChangeLog
gtk/gtkprintoperation.c

index 254adfd78427881a38238aabd4b58caf77e98f7e..356caf6c705b9466bf1a3a55462e1cb3437122ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-30  Matthias Clasen <mclasen@redhat.com>
+       
+       * gtk/gtkprintoperation.c: Translate the default job
+       name, and don't utf8-validate the job name in the
+       setter.  (#421993, Morten Welinder)
+
 2007-04-30  Matthias Clasen <mclasen@redhat.com>
 
        * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
index fe92a5cf6dbe678386e7e4d8f2a205f133787ba5..1b35e9d5b40ee468a0b51828c538604cbd8e3677 100644 (file)
@@ -164,7 +164,11 @@ gtk_print_operation_init (GtkPrintOperation *operation)
   priv->unit = GTK_UNIT_PIXEL;
 
   appname = g_get_application_name ();
-  priv->job_name = g_strdup_printf ("%s job #%d", appname, ++job_nr);
+  /* translators: this string is the default job title for print
+   * jobs. %s gets replaced by the application name, %d gets replaced
+   * by the job number.
+   */
+  priv->job_name = g_strdup_printf (_("%s job #%d"), appname, ++job_nr);
 }
 
 static void
@@ -1297,7 +1301,7 @@ gtk_print_operation_set_job_name (GtkPrintOperation *op,
   GtkPrintOperationPrivate *priv;
 
   g_return_if_fail (GTK_IS_PRINT_OPERATION (op));
-  g_return_if_fail (g_utf8_validate (job_name, -1, NULL));
+  g_return_if_fail (job_name != NULL);
 
   priv = op->priv;