[retro-gtk] retro-core: Rename start() to run()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-core: Rename start() to run()
- Date: Thu, 30 Jan 2020 09:45:48 +0000 (UTC)
commit 6b3cc1dbabf428ffc9106f309b364b5e7fc832ef
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Jan 23 19:45:53 2020 +0500
retro-core: Rename start() to run()
Match GLib's g_main_loop_run()
demos/retro-demo.c | 2 +-
retro-gtk/retro-core.c | 6 +++---
retro-gtk/retro-core.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/demos/retro-demo.c b/demos/retro-demo.c
index f584e42..e67bed0 100644
--- a/demos/retro-demo.c
+++ b/demos/retro-demo.c
@@ -104,7 +104,7 @@ retro_demo_activate (GApplication *application)
gtk_application_add_window (GTK_APPLICATION (application),
GTK_WINDOW (window));
- retro_core_start (self->core);
+ retro_core_run (self->core);
}
static void
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index aec2f04..9443515 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -675,7 +675,7 @@ restart (RetroCore *self)
return;
retro_core_stop (self);
- retro_core_start (self);
+ retro_core_run (self);
}
void
@@ -1582,14 +1582,14 @@ run_main_loop (RetroCore *self)
}
/**
- * retro_core_start:
+ * retro_core_run:
* @self: a #RetroCore
*
* Starts running the core. If the core was stopped, it will restart from this
* moment.
*/
void
-retro_core_start (RetroCore *self)
+retro_core_run (RetroCore *self)
{
gdouble fps;
GSource *source;
diff --git a/retro-gtk/retro-core.h b/retro-gtk/retro-core.h
index c9ff6b5..8bc36d4 100644
--- a/retro-gtk/retro-core.h
+++ b/retro-gtk/retro-core.h
@@ -40,7 +40,7 @@ void retro_core_set_medias (RetroCore *self,
void retro_core_set_current_media (RetroCore *self,
guint media_index,
GError **error);
-void retro_core_start (RetroCore *self);
+void retro_core_run (RetroCore *self);
void retro_core_stop (RetroCore *self);
void retro_core_reset (RetroCore *self);
void retro_core_iteration (RetroCore *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]