diff -r 6f4d3ab2f2ed -r a65157d76fee pidgin/gtkwebviewtoolbar.c --- a/pidgin/gtkwebviewtoolbar.c Fri Sep 08 20:22:37 2017 -0400 +++ b/pidgin/gtkwebviewtoolbar.c Sat Sep 09 04:21:27 2017 -0400 @@ -1187,6 +1187,19 @@ update_buttons(toolbar); } +#if GTK_CHECK_VERSION(3,22,0) + +static void +pidgin_menu_clicked(GtkWidget *button, GtkMenu *menu) +{ + if (gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(button))) { + gtk_widget_show_all(GTK_WIDGET(menu)); + gtk_menu_popup_at_widget(menu, button, GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL); + } +} + +#else /* GTK+ 3.22.0 */ + /* This comes from gtkmenutoolbutton.c from gtk+ * Copyright (C) 2003 Ricardo Fernandez Pascual * Copyright (C) 2004 Paolo Borelli @@ -1223,6 +1236,8 @@ } } +#endif /* GTK+ 3.22.0 */ + static void pidgin_menu_deactivate(GtkWidget *menu, GtkToggleButton *button) {