summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-18 11:53:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-18 11:55:19 -0400
commit76d80ef516ed3cdcc8a8d92b2a5b599f4726e0b4 (patch)
tree0f8fcd8995a7619e19bd44cd198cea3e13626a59
parent287d80bd36b1d3a717a45c19486e48c45b59b3c6 (diff)
downloadgtk+-76d80ef516ed3cdcc8a8d92b2a5b599f4726e0b4.tar.gz
inspector: Add focus handling to the property editor
We want to focus the actual control here.
-rw-r--r--gtk/inspector/prop-editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index c557e4206f..5ce78cec3a 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -1741,12 +1741,16 @@ static void
gtk_inspector_prop_editor_class_init (GtkInspectorPropEditorClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->constructed = constructed;
object_class->finalize = finalize;
object_class->get_property = get_property;
object_class->set_property = set_property;
+ widget_class->focus = gtk_widget_focus_child;
+ widget_class->grab_focus = gtk_widget_grab_focus_child;
+
signals[SHOW_OBJECT] =
g_signal_new ("show-object",
G_TYPE_FROM_CLASS (object_class),