[gtk+/portal] portal print fixes



commit 35b126ac00e411c0d74e5691712938af10c39033
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 6 22:20:23 2016 -0400

    portal print fixes
    
    The conversion to the new print portal api had some typos
    (like the inevitable 'destkop'). Also, mark window titles
    for translation.

 gtk/gtkprintoperation-portal.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkprintoperation-portal.c b/gtk/gtkprintoperation-portal.c
index cda3d96..8ea73b6 100644
--- a/gtk/gtkprintoperation-portal.c
+++ b/gtk/gtkprintoperation-portal.c
@@ -36,6 +36,7 @@
 #include "gtkpagesetup.h"
 #include "gtkprintbackend.h"
 #include "gtkshow.h"
+#include "gtkintl.h"
 
 typedef struct {
   GtkPrintOperation *op;
@@ -214,7 +215,7 @@ portal_job_complete (GtkPrintJob  *job,
                                        "Print",
                                        g_variant_new ("(ssh@a{sv})",
                                                       "", /* window */
-                                                      "", /* title */
+                                                      _("Print"), /* title */
                                                       idx,
                                                       g_variant_builder_end (&opt_builder)),
                                        G_DBUS_CALL_FLAGS_NONE,
@@ -473,7 +474,7 @@ gtk_print_operation_portal_run_dialog (GtkPrintOperation *op,
                                                  NULL,
                                                  "org.freedesktop.portal.Desktop",
                                                  "/org/freedesktop/portal/desktop",
-                                                 "org.freedestkop.portal.Print",
+                                                 "org.freedesktop.portal.Print",
                                                  NULL,
                                                  NULL);
   portal->op = g_object_ref (op);
@@ -511,9 +512,9 @@ gtk_print_operation_portal_run_dialog (GtkPrintOperation *op,
 
   g_dbus_proxy_call (portal->proxy,
                      "PreparePrint",
-                     g_variant_new ("ss@a{sv}@a{sv}@a{sv})",
+                     g_variant_new ("(ss@a{sv}@a{sv}@a{sv})",
                                     "", /* window */
-                                    "Print Test",
+                                    _("Print"), /* title */
                                     settings,
                                     setup,
                                     options),
@@ -555,7 +556,7 @@ gtk_print_operation_portal_run_dialog_async (GtkPrintOperation          *op,
                                                  NULL,
                                                  "org.freedesktop.portal.Desktop",
                                                  "/org/freedesktop/portal/desktop",
-                                                 "org.freedestkop.portal.Print",
+                                                 "org.freedesktop.portal.Print",
                                                  NULL,
                                                  NULL);
   portal->op = g_object_ref (op);
@@ -593,7 +594,7 @@ gtk_print_operation_portal_run_dialog_async (GtkPrintOperation          *op,
                      "PreparePrint",
                      g_variant_new ("ss@a{sv}@a{sv}@a{sv})",
                                     "", /* window */
-                                    "Print Test",
+                                    _("Print"), /* title */
                                     settings,
                                     setup,
                                     options),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]