[Xfce4-commits] [apps/ristretto] 02/02: Refine previous commit
noreply at xfce.org
noreply at xfce.org
Mon Jul 1 20:22:20 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit 673bfaf9ae93962386e0ac399720d618122ade10
Author: Igor <f2404 at yandex.ru>
Date: Mon Jul 1 14:22:12 2019 -0400
Refine previous commit
---
src/xfce_wallpaper_manager.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/xfce_wallpaper_manager.c b/src/xfce_wallpaper_manager.c
index e7f6ea6..3105448 100644
--- a/src/xfce_wallpaper_manager.c
+++ b/src/xfce_wallpaper_manager.c
@@ -77,7 +77,7 @@ configure_monitor_chooser_pixbuf (
RsttoXfceWallpaperManager *manager );
static gchar *
-get_human_monitor_name (gchar *prop_name);
+get_human_monitor_name (const gchar *prop_name);
static gchar *
retrieve_monitor_name (gint monitor_id);
@@ -125,7 +125,7 @@ enum
};
static gchar *
-get_human_monitor_name (gchar *prop_name)
+get_human_monitor_name (const gchar *prop_name)
{
GRegex *regex;
GMatchInfo *info;
@@ -148,10 +148,10 @@ static gchar *
retrieve_monitor_name (gint monitor_id)
{
GDBusProxy *proxy;
- GError *err;
+ GError *err = NULL;
GVariant *variant;
GVariantIter *iter;
- gchar *key, *monitor_name, *result;
+ gchar *key, *monitor_name = NULL, *result;
proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
@@ -162,7 +162,7 @@ retrieve_monitor_name (gint monitor_id)
NULL, &err);
if (proxy == NULL)
{
- g_warning ("Could not access to the D-Bus interface: %s",
+ g_warning ("Could not get access to the D-Bus interface: %s",
err->message);
g_error_free (err);
}
@@ -176,7 +176,7 @@ retrieve_monitor_name (gint monitor_id)
-1, NULL, &err);
if (variant == NULL)
{
- g_warning ("Can't invoke the method: %s", err->message);
+ g_warning ("Method failed: %s", err->message);
g_error_free (err);
}
else
@@ -197,7 +197,7 @@ retrieve_monitor_name (gint monitor_id)
if (monitor_name)
{
- result = g_strdup_printf ("%s", monitor_name);
+ result = g_strdup (monitor_name);
g_free (monitor_name);
}
else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list