[gtk+/portal] Improve warning messages
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] Improve warning messages
- Date: Thu, 7 Jul 2016 03:28:26 +0000 (UTC)
commit ce28ecf7d4bd7aa242b834800773f900fcc31d3b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 20:05:33 2016 -0400
Improve warning messages
Refer to the D-Bus interface that we were actually calling out to.
gtk/gtkapplication-dbus.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c
index 4336ec5..a604074 100644
--- a/gtk/gtkapplication-dbus.c
+++ b/gtk/gtkapplication-dbus.c
@@ -508,7 +508,9 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
{
if (!warned)
{
- g_warning ("Calling org.gnome.SessionManager.Inhibit failed: %s", error->message);
+ g_warning ("Calling %s.Inhibit failed: %s",
+ g_dbus_proxy_get_interface_name (dbus->sm_proxy),
+ error->message);
warned = TRUE;
}
g_clear_error (&error);
@@ -549,7 +551,9 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
{
if (!warned)
{
- g_warning ("Calling org.freedesktop.portal.Inhibit.Inhibit failed: %s", error->message);
+ g_warning ("Calling %s.Inhibit failed: %s",
+ g_dbus_proxy_get_interface_name (dbus->inhibit_proxy),
+ error->message);
warned = TRUE;
}
g_clear_error (&error);
@@ -625,7 +629,9 @@ gtk_application_impl_dbus_is_inhibited (GtkApplicationImpl *impl,
{
if (!warned)
{
- g_warning ("Calling IsInhibited failed: %s", error->message);
+ g_warning ("Calling %s.IsInhibited failed: %s",
+ g_dbus_proxy_get_interface_name (dbus->sm_proxy),
+ error->message);
warned = TRUE;
}
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]