From c7d871570f9822c6144ff17a1e0dd34f1ca62a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Apr 2020 16:43:17 +0200 Subject: [PATCH] Revert "modelbutton: Emit ::clicked() before closing the popover" This reverts commit 57f913b7533b3b27ecd17ed7629e2b473e89bcbd. --- gtk/gtkmodelbutton.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index e7ba928f01..a6501c1dd5 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -975,8 +975,6 @@ gtk_model_button_clicked (GtkGestureClick *gesture, double y, GtkModelButton *self) { - g_signal_emit (self, signals[SIGNAL_CLICKED], 0); - if (self->menu_name != NULL) { switch_menu (self); @@ -997,6 +995,7 @@ gtk_model_button_clicked (GtkGestureClick *gesture, close_menu (self); } + g_signal_emit (self, signals[SIGNAL_CLICKED], 0); if (self->action_helper) gtk_action_helper_activate (self->action_helper);