mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
Fixed showing popup menu on RMB at tray icon (#1210)
This commit is contained in:
parent
01368932b0
commit
79d3133ebc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ static void popup(GtkStatusIcon* self, guint button, guint when, gpointer data U
|
||||||
GtkWidget* w = gtr_action_get_widget("/icon-popup");
|
GtkWidget* w = gtr_action_get_widget("/icon-popup");
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION(3, 22, 0)
|
#if GTK_CHECK_VERSION(3, 22, 0)
|
||||||
gtk_menu_popup_at_widget(GTK_MENU(w), GTK_WIDGET(self), GDK_GRAVITY_SOUTH, GDK_GRAVITY_NORTH, NULL);
|
gtk_menu_popup_at_pointer(GTK_MENU(w), NULL);
|
||||||
#else
|
#else
|
||||||
gtk_menu_popup(GTK_MENU(w), NULL, NULL, gtk_status_icon_position_menu, self, button, when);
|
gtk_menu_popup(GTK_MENU(w), NULL, NULL, gtk_status_icon_position_menu, self, button, when);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue