[retro-gtk] core: Make the init() signal into a method



commit 99e3a3c546d200ca730900c3f66b0e110093578c
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Jul 20 11:14:29 2017 +0200

    core: Make the init() signal into a method
    
    It is never used as a signal and will probably never be, so this helps
    to make the code simpler.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777489

 demos/retro-demo.c  |    2 +-
 retro-gtk/core.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/retro-demo.c b/demos/retro-demo.c
index a2a216c..225b740 100644
--- a/demos/retro-demo.c
+++ b/demos/retro-demo.c
@@ -44,7 +44,7 @@ retro_demo_open (GApplication  *application,
   if (self->core == NULL)
     return;
 
-  g_signal_emit_by_name (self->core, "init");
+  retro_core_init (self->core);
 
   g_application_activate (application);
 }
diff --git a/retro-gtk/core.vala b/retro-gtk/core.vala
index bb63bcf..c55eb74 100644
--- a/retro-gtk/core.vala
+++ b/retro-gtk/core.vala
@@ -255,7 +255,7 @@ public class Core : Object {
         *
         * Must be called before loading a game and running the core.
         */
-       public virtual signal void init () {
+       public void init () {
                set_environment_interface ();
                push_cb_data ();
                module.init ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]