mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1573'
This commit is contained in:
commit
a61f222411
|
@ -227,8 +227,8 @@ void SystemTrayIcon::setContextMenu(QMenu* menu)
|
|||
g_signal_connect(item, "activate", G_CALLBACK(callback), a);
|
||||
gtk_widget_show(item);
|
||||
}
|
||||
void (*callbackMenu)(StatusNotifier*, gint, gint, gpointer) =
|
||||
[](StatusNotifier*, gint, gint, gpointer data)
|
||||
void (*callbackMenu)(GtkMenu*, gint, gint, gpointer) =
|
||||
[](GtkMenu*, gint, gint, gpointer data)
|
||||
{
|
||||
gtk_widget_show_all(((SystemTrayIcon*)data)->gtkMenu);
|
||||
gtk_menu_popup(GTK_MENU(((SystemTrayIcon*)data)->gtkMenu), 0, 0, 0, 0, 3, gtk_get_current_event_time());
|
||||
|
|
Loading…
Reference in New Issue
Block a user