3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGINGTK3COMPAT_H_
23 #define _PIDGINGTK3COMPAT_H_
26 * @section_id: pidgin-gtk3compat
27 * @short_description: <filename>gtk3compat.h</filename>
28 * @title: GTK3 version-dependent definitions
30 * This file is internal to Pidgin. Do not use!
31 * Also, any public API should not depend on this file.
36 #if !GTK_CHECK_VERSION(3,22,0)
39 gtk_menu_popup_at_pointer(GtkMenu
*menu
, const GdkEvent
*trigger_event
)
41 const GdkEventButton
*event
= (const GdkEventButton
*)trigger_event
;
42 gtk_menu_popup(menu
, NULL
, NULL
, NULL
, NULL
,
43 event
? event
->button
: 0, gdk_event_get_time(event
));
47 gtk_popover_popup(GtkPopover
*popover
)
49 gtk_widget_show(GTK_WIDGET(popover
));
53 gtk_popover_popdown(GtkPopover
*popover
)
55 gtk_widget_hide(GTK_WIDGET(popover
));
60 #endif /* _PIDGINGTK3COMPAT_H_ */