Revert "modelbutton: Emit ::clicked() before closing the popover"

This reverts commit 57f913b753.
This commit is contained in:
Timm Bäder 2020-04-17 16:43:17 +02:00
parent 7caed3a462
commit c7d871570f

View File

@ -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);