mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 20:42:48 -05:00
Use gdk_display_beep() in place of obsolete gdk_beep().
Except in GTK1 (which doesn't have the former), via a gtkcompat.h workaround. Up-to-date GTK3 has deprecated gdk_beep(), causing build failures due to the default -Werror setting.
This commit is contained in:
@ -3349,7 +3349,7 @@ void sys_cursor(void *frontend, int x, int y)
|
||||
void do_beep(void *frontend, int mode)
|
||||
{
|
||||
if (mode == BELL_DEFAULT)
|
||||
gdk_beep();
|
||||
gdk_display_beep(gdk_display_get_default());
|
||||
}
|
||||
|
||||
int char_width(Context ctx, int uc)
|
||||
|
Reference in New Issue
Block a user