pidgin/win32/MinimizeToTray.h

Wed, 10 Oct 2018 14:39:23 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Wed, 10 Oct 2018 14:39:23 -0500
changeset 39253
b0f02ccb06ae
parent 15435
4b933b06d75e
child 18068
b6554e3c8224
permissions
-rw-r--r--

pidgindebug: Provide fallbacks for Gtk < 3.22 functionality

gtk_popover_popup() and gtk_menu_popup_at_widget() snuck their way
into the Pidgin debug window code. This patch uses gtk_widget_show()
as a fallback for the former, which skips the transition, but should
work, and gtk_menu_popup_at_pointer() for the latter, which we have
a compat function for. It's not quite the same functionality, but
it should fix the build with Gtk < 3.22 and should be good enough for
anyone running that old of a Gtk version.

#ifndef _MINIMIZE_TO_TRAY_H_
#define _MINIMIZE_TO_TRAY_H_

void MinimizeWndToTray(HWND hWnd);
void RestoreWndFromTray(HWND hWnd);

#endif /* _MINIMIZE_TO_TRAY_H_ */

mercurial