diff options
| author | maya <maya@pkgsrc.org> | 2018-08-01 05:34:17 +0000 |
|---|---|---|
| committer | maya <maya@pkgsrc.org> | 2018-08-01 05:34:17 +0000 |
| commit | 43b0c46b9eeb8d1f34cefa5c0b4041bca1ce894a (patch) | |
| tree | 3ca7ebe94ad26fbdc8f39f21ac3fb87b794fe65f /security/putty/patches | |
| parent | ecb2bf69846055f0c841f9de76cba1b1d4891ba5 (diff) | |
| download | pkgsrc-43b0c46b9eeb8d1f34cefa5c0b4041bca1ce894a.tar.gz | |
putty: fix build after gdk_beep became deprecated.
bump pkgrevision for paranoia.
Diffstat (limited to 'security/putty/patches')
| -rw-r--r-- | security/putty/patches/patch-unix_gtkdlg.c | 24 | ||||
| -rw-r--r-- | security/putty/patches/patch-unix_gtkwin.c | 14 |
2 files changed, 36 insertions, 2 deletions
diff --git a/security/putty/patches/patch-unix_gtkdlg.c b/security/putty/patches/patch-unix_gtkdlg.c new file mode 100644 index 00000000000..838fdf6aeee --- /dev/null +++ b/security/putty/patches/patch-unix_gtkdlg.c @@ -0,0 +1,24 @@ +$NetBSD: patch-unix_gtkdlg.c,v 1.1 2018/08/01 05:34:18 maya Exp $ + +gdk_beep deprecated, replace with gdk_display_beep. + +--- unix/gtkdlg.c.orig 2017-04-24 13:52:45.000000000 +0000 ++++ unix/gtkdlg.c +@@ -1037,7 +1037,7 @@ void dlg_set_focus(union control *ctrl, + */ + void dlg_beep(void *dlg) + { +- gdk_beep(); ++ gdk_display_beep(gdk_display_get_default()); + } + + #if !GTK_CHECK_VERSION(3,0,0) +@@ -1491,7 +1491,7 @@ static void draglist_move(struct dlgpara + if ((index < 0) || + (index == 0 && direction < 0) || + (index == g_list_length(children)-1 && direction > 0)) { +- gdk_beep(); ++ gdk_display_beep(gdk_display_get_default()); + return; + } + diff --git a/security/putty/patches/patch-unix_gtkwin.c b/security/putty/patches/patch-unix_gtkwin.c index 48c7a4b32d2..0f528a958f7 100644 --- a/security/putty/patches/patch-unix_gtkwin.c +++ b/security/putty/patches/patch-unix_gtkwin.c @@ -1,8 +1,9 @@ -$NetBSD: patch-unix_gtkwin.c,v 1.4 2017/03/17 00:11:48 maya Exp $ +$NetBSD: patch-unix_gtkwin.c,v 1.5 2018/08/01 05:34:18 maya Exp $ Make the home/end keys work on BSD servers as well as Linux ones +gdk_beep deprecated, use gdk_display_beep. ---- unix/gtkwin.c.orig 2017-02-18 17:10:15.000000000 +0000 +--- unix/gtkwin.c.orig 2017-04-24 13:52:45.000000000 +0000 +++ unix/gtkwin.c @@ -1586,13 +1586,21 @@ gint key_event(GtkWidget *widget, GdkEve use_ucsoutput = FALSE; @@ -30,3 +31,12 @@ Make the home/end keys work on BSD servers as well as Linux ones goto done; } if (code) { +@@ -2921,7 +2929,7 @@ void sys_cursor(void *frontend, int x, i + 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) |
