[retro-gtk] core-view: Allow to be the default widget
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] core-view: Allow to be the default widget
- Date: Tue, 28 Nov 2017 11:25:03 +0000 (UTC)
commit 5f01e5c9caedd59e23338e1ffd0e381688a190bf
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Nov 28 12:19:03 2017 +0100
core-view: Allow to be the default widget
Given the importance of this widget in the softwares using it, it's to
allow it to be the default one.
retro-gtk/retro-core-view.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/retro-gtk/retro-core-view.c b/retro-gtk/retro-core-view.c
index d798007..5443972 100644
--- a/retro-gtk/retro-core-view.c
+++ b/retro-gtk/retro-core-view.c
@@ -464,6 +464,7 @@ RetroCoreView* retro_core_view_construct (GType object_type) {
static void
retro_core_view_init (RetroCoreView *self)
{
+ g_object_set ((GtkWidget*) self, "can-default", TRUE, NULL);
g_object_set ((GtkWidget*) self, "can-focus", TRUE, NULL);
self->display = g_object_ref_sink (retro_gl_display_new ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]