[retro-gtk] retro-core: Remove return result from shutdown signal
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-core: Remove return result from shutdown signal
- Date: Mon, 20 Jan 2020 10:18:23 +0000 (UTC)
commit 67ec368c4b731b9463effc66da98b819d85197ff
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jan 6 19:06:08 2020 +0500
retro-core: Remove return result from shutdown signal
Same as the previous commit. This will be done async later, so always
assume TRUE.
retro-gtk/retro-core.c | 4 +---
retro-gtk/retro-environment.c | 5 ++---
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index e49d917..d2ce107 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -503,14 +503,12 @@ retro_core_class_init (RetroCoreClass *klass)
* The ::shutdown signal is emitted when the core shut down.
*
* The core must be released or re-started in order to function anew.
- *
- * Returns: whether the request got fulfilled
*/
signals[SIG_SHUTDOWN_SIGNAL] =
g_signal_new ("shutdown", RETRO_TYPE_CORE, G_SIGNAL_RUN_LAST,
0, NULL, NULL,
NULL,
- G_TYPE_BOOLEAN,
+ G_TYPE_NONE,
0);
/**
diff --git a/retro-gtk/retro-environment.c b/retro-gtk/retro-environment.c
index 0791563..64c8c94 100644
--- a/retro-gtk/retro-environment.c
+++ b/retro-gtk/retro-environment.c
@@ -424,10 +424,9 @@ set_variables (RetroCore *self,
static gboolean
shutdown (RetroCore *self)
{
- gboolean result = FALSE;
- g_signal_emit_by_name (self, "shutdown", &result);
+ g_signal_emit_by_name (self, "shutdown");
- return result;
+ return TRUE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]