[gtk/wip/matthiasc/popup4: 12/76] window: Implement GtkRoot::default-widget
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 12/76] window: Implement GtkRoot::default-widget
- Date: Sat, 20 Apr 2019 17:32:29 +0000 (UTC)
commit c842de863a92637c5921ccbc66f34c8588b39dc8
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]