forked from AuroraMiddleware/gtk
modelbutton: Emit ::clicked() before closing the popover
The clicked handler might still need the popover.
This commit is contained in:
parent
4851081a77
commit
57f913b753
@ -971,6 +971,8 @@ 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);
|
||||
@ -991,7 +993,6 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user