[gnome-flashback] session: make gf_session_set_environment void
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] session: make gf_session_set_environment void
- Date: Sat, 17 Aug 2019 12:28:03 +0000 (UTC)
commit 2dff51af8df568a7e8092dcbcacfbde9619fc149
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Aug 17 15:19:33 2019 +0300
session: make gf_session_set_environment void
None of the callers were using the return value.
gnome-flashback/gf-session.c | 9 ++-------
gnome-flashback/gf-session.h | 2 +-
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/gnome-flashback/gf-session.c b/gnome-flashback/gf-session.c
index 4e4bdfb..9925750 100644
--- a/gnome-flashback/gf-session.c
+++ b/gnome-flashback/gf-session.c
@@ -259,10 +259,8 @@ gf_session_new (gboolean replace,
*
* Set environment variable to specified value. May only be used during the
* Session Manager initialization phase.
- *
- * Returns: %TRUE if environment was set, %FALSE otherwise.
*/
-gboolean
+void
gf_session_set_environment (GfSession *session,
const gchar *name,
const gchar *value)
@@ -283,13 +281,10 @@ gf_session_set_environment (GfSession *session,
{
g_warning ("Failed to set the environment: %s", error->message);
g_error_free (error);
-
- return FALSE;
+ return;
}
g_variant_unref (variant);
-
- return TRUE;
}
/**
diff --git a/gnome-flashback/gf-session.h b/gnome-flashback/gf-session.h
index e48eb7c..0ed69e6 100644
--- a/gnome-flashback/gf-session.h
+++ b/gnome-flashback/gf-session.h
@@ -46,7 +46,7 @@ GfSession *gf_session_new (gboolean replace,
GfSessionEndCallback end_cb,
gpointer user_data);
-gboolean gf_session_set_environment (GfSession *session,
+void gf_session_set_environment (GfSession *session,
const gchar *name,
const gchar *value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]