mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Remove StatusNotifier dependency
This commit is contained in:
parent
66cb02d1c3
commit
f88f8dc3cb
|
@ -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