[gtk/wip/matthiasc/popup2: 330/353] window: Implement GtkRoot::default-widget
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 330/353] window: Implement GtkRoot::default-widget
- Date: Sun, 7 Apr 2019 16:51:06 +0000 (UTC)
commit 0075a7efee1cc88d59747c829af7a344994dbf6f
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 272f2b1e5e..9daba0f42b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2038,6 +2038,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;
@@ -2150,6 +2153,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]