[recipes] Check for the right portal interface for printing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Check for the right portal interface for printing
- Date: Mon, 20 Mar 2017 17:03:53 +0000 (UTC)
commit ef1f1a2ef358f18778ccbefc49b0ddcaccf91674
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 20 17:02:49 2017 +0000
Check for the right portal interface for printing
I should have looked this up, instead of writing the name
from memory.
src/gr-recipe-printer.c | 2 +-
src/gr-shopping-list-printer.c | 2 +-
src/gr-utils.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gr-recipe-printer.c b/src/gr-recipe-printer.c
index c37a89e..5801cf8 100644
--- a/src/gr-recipe-printer.c
+++ b/src/gr-recipe-printer.c
@@ -431,7 +431,7 @@ gr_recipe_printer_print (GrRecipePrinter *printer,
{
GtkPrintOperation *operation;
- if (in_flatpak_sandbox () && !portal_available (printer->window, "org.freedesktop.portal.Printing"))
+ if (in_flatpak_sandbox () && !portal_available (printer->window, "org.freedesktop.portal.Print"))
return;
printer->recipe = g_object_ref (recipe);
diff --git a/src/gr-shopping-list-printer.c b/src/gr-shopping-list-printer.c
index f156c8f..61fd896 100644
--- a/src/gr-shopping-list-printer.c
+++ b/src/gr-shopping-list-printer.c
@@ -320,7 +320,7 @@ gr_shopping_list_printer_print (GrShoppingListPrinter *printer,
GtkPrintOperation *operation;
if (in_flatpak_sandbox () &&
- !portal_available (GTK_WINDOW (printer->window), "org.freedesktop.portal.Printing"))
+ !portal_available (GTK_WINDOW (printer->window), "org.freedesktop.portal.Print"))
return;
printer->recipes = g_list_copy_deep (recipes, (GCopyFunc)g_object_ref, NULL);
diff --git a/src/gr-utils.c b/src/gr-utils.c
index 5b75378..7497836 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -457,7 +457,7 @@ portal_available (GtkWindow *window,
if (strcmp (interface, "org.freedesktop.portal.FileChooser") == 0)
message1 = _("Missing the desktop portal needed to open files from inside a Flatpak
sandbox.");
- else if (strcmp (interface, "org.freedestkop.portal.Printing") == 0)
+ else if (strcmp (interface, "org.freedestkop.portal.Print") == 0)
message1 = _("Missing the desktop portal needed to print from inside a Flatpak sandbox.");
else if (strcmp (interface, "org.freedesktop.portal.OpenURI") == 0)
message1 = _("Missing the desktop portal needed to open URLs from inside a Flatpak
sandbox.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]