comparison src/clipboard.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents bce848ec8b1b
children 41e0dcf38521
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
1538 } 1538 }
1539 1539
1540 /* 1540 /*
1541 * Property callback to get a timestamp for XtOwnSelection. 1541 * Property callback to get a timestamp for XtOwnSelection.
1542 */ 1542 */
1543 # if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) || defined(PROTO)
1543 static void 1544 static void
1544 clip_x11_timestamp_cb( 1545 clip_x11_timestamp_cb(
1545 Widget w, 1546 Widget w,
1546 XtPointer n UNUSED, 1547 XtPointer n UNUSED,
1547 XEvent *event, 1548 XEvent *event,
1590 x11_setup_selection(Widget w) 1591 x11_setup_selection(Widget w)
1591 { 1592 {
1592 XtAddEventHandler(w, PropertyChangeMask, False, 1593 XtAddEventHandler(w, PropertyChangeMask, False,
1593 /*(XtEventHandler)*/clip_x11_timestamp_cb, (XtPointer)NULL); 1594 /*(XtEventHandler)*/clip_x11_timestamp_cb, (XtPointer)NULL);
1594 } 1595 }
1596 # endif
1595 1597
1596 static void 1598 static void
1597 clip_x11_request_selection_cb( 1599 clip_x11_request_selection_cb(
1598 Widget w UNUSED, 1600 Widget w UNUSED,
1599 XtPointer success, 1601 XtPointer success,