[retro-gtk] demo: Replace the CairoDisplay by a CoreView
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] demo: Replace the CairoDisplay by a CoreView
- Date: Tue, 4 Jul 2017 15:28:50 +0000 (UTC)
commit ae43592856d4bb10d69adee767ad680f38a765fe
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 4 16:40:06 2017 +0200
demo: Replace the CairoDisplay by a CoreView
This will allow to test the new CoreView widget which is expected to be
used instead of the various display and input objects.
demos/retro-demo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/retro-demo.c b/demos/retro-demo.c
index dcbacf4..ef60be7 100644
--- a/demos/retro-demo.c
+++ b/demos/retro-demo.c
@@ -14,7 +14,7 @@ struct _RetroDemoApplication
RetroCore *core;
RetroMainLoop *loop;
- RetroCairoDisplay *display;
+ RetroCoreView *view;
RetroPaPlayer *pa_player;
};
@@ -84,15 +84,15 @@ retro_demo_activate (GApplication *application)
g_signal_connect (self->core, "log", (GCallback) retro_g_log, NULL);
- self->display = retro_cairo_display_new ();
- retro_cairo_display_set_core (self->display, self->core);
+ self->view = retro_core_view_new ();
+ retro_core_view_set_core (self->view, self->core);
self->pa_player = retro_pa_player_new ();
retro_pa_player_set_core (self->pa_player, self->core);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 640, 480);
- gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (self->display));
+ gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (self->view));
gtk_widget_show_all (GTK_WIDGET (window));
gtk_application_add_window (GTK_APPLICATION (application), GTK_WINDOW (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]