Skip to content

Commit

Permalink
Fix: not showing menu for keybinding.
Browse files Browse the repository at this point in the history
  • Loading branch information
thegala committed Feb 2, 2020
1 parent fac69ff commit d8162ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,14 @@ GtkWidget *create_parcellite_menu(guint button, guint activate_time)
gtk_menu_shell_append((GtkMenuShell*)menu, menu_item);
/* Popup the menu... */
gtk_widget_show_all(menu);
gtk_menu_popup((GtkMenu*)menu, NULL, NULL, NULL, NULL, button, activate_time);
if(activate_time == 0)
{
gtk_menu_popup((GtkMenu*)menu, NULL, NULL, NULL, NULL, button, NULL);
}
else
{
gtk_menu_popup((GtkMenu*)menu, NULL, NULL, NULL, NULL, button, activate_time);
}
return menu;
}

Expand Down

0 comments on commit d8162ab

Please sign in to comment.