File 0001-Trivial-port-to-Soup-3.0.patch of Package roger
From: Hilko Bengen <bengen@debian.org>
Date: Tue, 6 Sep 2022 20:32:43 +0200
Subject: Trivial port to Soup 3.0
---
meson.build | 2 +-
src/roger-shell.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index ec0fe76..5804be6 100644
--- a/meson.build
+++ b/meson.build
@@ -56,7 +56,7 @@ libgs_dep = cc.find_library('gs')
libhandy_dep = dependency('libhandy-1', version: '>= 1.1.90')
libm_dep = cc.find_library('m', required: true)
librm_dep = dependency('librm', version : '>=2.2.3', fallback : ['librm', 'rm_dep'])
-libsoup_dep = dependency('libsoup-2.4')
+libsoup_dep = dependency('libsoup-3.0')
libtiff_dep = dependency('libtiff-4')
cflags = cc.get_supported_arguments(['-Werror=implicit-function-declaration',
diff --git a/src/roger-shell.c b/src/roger-shell.c
index bb5c7fb..8b51d11 100644
--- a/src/roger-shell.c
+++ b/src/roger-shell.c
@@ -92,7 +92,7 @@ app_authenticate_cb (RmObject *app,
GtkWidget *realm_label;
GtkWidget *tmp;
g_autofree char *description = NULL;
- SoupURI *uri;
+ GUri *uri;
builder = gtk_builder_new_from_resource ("/org/tabos/roger/authenticate.glade");
if (!builder) {
@@ -105,7 +105,7 @@ app_authenticate_cb (RmObject *app,
description_label = GTK_WIDGET (gtk_builder_get_object (builder, "description"));
uri = soup_message_get_uri (auth_data->msg);
- description = g_strdup_printf (_("A username and password are being requested by the site %s"), uri->host);
+ description = g_strdup_printf (_("A username and password are being requested by the site %s"), g_uri_get_host(uri));
gtk_label_set_text (GTK_LABEL (description_label), description);
realm_label = GTK_WIDGET (gtk_builder_get_object (builder, "realm"));