[gtk/color-picker] color picker: Don't use g_warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/color-picker] color picker: Don't use g_warning
- Date: Fri, 27 Jul 2018 12:49:36 +0000 (UTC)
commit bbf0830ab68105724d5a3c268f448974fb44fe85
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 27 12:41:32 2018 +0000
color picker: Don't use g_warning
It is not appropriate here, and breaks the tests.
gtk/gtkcolorpickerportal.c | 6 +++---
gtk/gtkcolorpickershell.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcolorpickerportal.c b/gtk/gtkcolorpickerportal.c
index 1254837d04..ca60b7d9b4 100644
--- a/gtk/gtkcolorpickerportal.c
+++ b/gtk/gtkcolorpickerportal.c
@@ -63,14 +63,14 @@ gtk_color_picker_portal_initable_init (GInitable *initable,
if (picker->portal_proxy == NULL)
{
- g_warning ("No screenshot portal: %s", (*error)->message);
+ g_debug ("No screenshot portal: %s", (*error)->message);
return FALSE;
}
owner = g_dbus_proxy_get_name_owner (picker->portal_proxy);
if (owner == NULL)
{
- g_warning ("No screenshot portal");
+ g_debug ("No screenshot portal");
g_clear_object (&picker->portal_proxy);
return FALSE;
}
@@ -81,7 +81,7 @@ gtk_color_picker_portal_initable_init (GInitable *initable,
g_variant_unref (ret);
if (version != 2)
{
- g_warning ("Screenshot portal version: %u", version);
+ g_debug ("Screenshot portal version: %u", version);
g_clear_object (&picker->portal_proxy);
return FALSE;
}
diff --git a/gtk/gtkcolorpickershell.c b/gtk/gtkcolorpickershell.c
index d57c43ae5f..d465e0ab5e 100644
--- a/gtk/gtkcolorpickershell.c
+++ b/gtk/gtkcolorpickershell.c
@@ -60,14 +60,14 @@ gtk_color_picker_shell_initable_init (GInitable *initable,
if (picker->shell_proxy == NULL)
{
- g_warning ("No shell screenshot proxy: %s", (*error)->message);
+ g_debug ("Failed to create shell screenshot proxy");
return FALSE;
}
owner = g_dbus_proxy_get_name_owner (picker->shell_proxy);
if (owner == NULL)
{
- g_warning ("No shell screenshot proxy");
+ g_debug ("org.gnome.Shell.Screenshot not provided");
g_clear_object (&picker->shell_proxy);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]