[gtk/wip/matthiasc/popup4: 11/106] window: Implement GtkRoot::default-widget
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 11/106] window: Implement GtkRoot::default-widget
- Date: Wed, 24 Apr 2019 11:38:12 +0000 (UTC)
commit 3a9dbe2038f4f43400b571488f8bfe47c4baf6db
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 3 19:58:29 2019 -0500
window: Implement GtkRoot::default-widget
Implement the ::default-widget property.
gtk/gtkwindow.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2fc2b15e19..3356e1fa73 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1994,6 +1994,9 @@ gtk_window_set_property (GObject *object,
case LAST_ARG + GTK_ROOT_PROP_FOCUS_WIDGET:
gtk_window_set_focus (window, g_value_get_object (value));
break;
+ case LAST_ARG + GTK_ROOT_PROP_DEFAULT_WIDGET:
+ gtk_window_set_default (window, g_value_get_object (value));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -2094,6 +2097,9 @@ gtk_window_get_property (GObject *object,
case LAST_ARG + GTK_ROOT_PROP_FOCUS_WIDGET:
g_value_set_object (value, gtk_window_get_focus (window));
break;
+ case LAST_ARG + GTK_ROOT_PROP_DEFAULT_WIDGET:
+ g_value_set_object (value, gtk_window_get_default_widget (window));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]