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



commit 7962eadfe3913fa00c31b294086937e18ce26f0f
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 0a3e440079..1101cb348a 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -1189,6 +1189,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]