[gtk/wip/matthiasc/shortcut-2: 2/6] modelbutton: Make activatable



commit f0217ad62db7f9c88a08834f2e6a8cc0fe79b2ef
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 23 23:03:29 2020 -0400

    modelbutton: Make activatable
    
    This is necessary to make keynav in popover menus
    work as expected.

 gtk/gtkmodelbutton.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 54b1bf34b8..1e16226f5b 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -1186,6 +1186,8 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
                                           NULL,
                                           G_TYPE_NONE, 0);
 
+  widget_class->activate_signal = signals[SIGNAL_CLICKED];
+
   gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_PUSH_BUTTON);
   gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
   gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), I_("modelbutton"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]