pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/fltk13 x11/fltk13: update to fltk-1.3.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/941caa4e1e97
branches:  trunk
changeset: 310346:941caa4e1e97
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Fri Jul 13 04:24:39 2018 +0000

description:
x11/fltk13: update to fltk-1.3.4

CHANGES IN FLTK 1.3.4                                   RELEASED: Nov 11 2016

Bug fixes and other improvements

        - Fix test/native-filechooser help display artifact (STR #3349).
        - MacOS: fix a crash when closing a fullscreen window.
        - Accept empty Fl_Pixmap in Fl_RGB_Image c'tor (STR #3348).
        - MacOS: fix drawing error when a window containing a hidden subwindow
          is changed to fullscreen (error visible with the tabs test program).
        - MacOS: fix possible crash when enabling fullscreen in test/scroll.
        - Add a snapshot of known STR's and RFE's (KNOWN_BUGS.html).

CHANGES IN FLTK 1.3.4rc3                                RELEASED: Oct 31 2016

        Bug fixes and other improvements

        - Fix string truncation in fluid (STR #2722 continued).
        - MacOS: fix a small problem where the Command-Quit menu hotkey
          may not work if Fl_Native_File_Chooser is used before any
          window is shown.

CHANGES IN FLTK 1.3.4rc2                                RELEASED: Oct 24 2016

        Bug fixes and other improvements

        - Make sure the "File Systems" menu item of Fl_File_Chooser
          lists "/" as the first mounted file system (Linux/Unix platform).
        - Added line numbers to fluid Edit -> Show Source Code viewer.
        - Improved fluid's template handling (STR #3335).

CHANGES IN FLTK 1.3.4rc1                                RELEASED: Oct 17 2016

        New features and extensions

        - Added support for Mac OS 10.11 "El Capitan" and 10.12 "Sierra".
        - Added full support of true subwindows to the Mac OS X platform.
          Window nesting to any depth is possible. An Fl_Gl_Window window or
          subwindow can contain Fl_Window's as subwindows.
        - Fluid now supports external editors (STR#3213)
          See: Edit -> GUI Settings -> Use external editor
        - Added method Fl_Widget::is_label_copied().
        - Added methods Fl_Copy_Surface::w(), Fl_Copy_Surface::h(),
          and Fl_Copy_Surface::draw_decorated_window().
        - Added method Fl_Image_Surface::draw_decorated_window().
        - Added method Fl_Shared_Image *Fl_Image_Surface::highres_image()
          to draw into a high-resolution bitmap image (Mac OS X only).
        - Added support for OpenGL version 3 and later.
        - Added method Fl_Mac_App_Menu::custom_application_menu_items()
          allowing customization of the application menu (Mac OS X only).
        - Added 'fluid -u' command-line switch to upgrade fluid files in
          batch mode. This option opens a fluid ('.fl') file and saves it
          overwriting the old file with the current syntax and library version
          number. Use with care (input file is overwritten unconditionally).
        - Added FL_ZOOM_GESTURE gesture for OS X (only). Needs implementation
          on other platforms.
        - Added FL_ABI_VERSION, FL_API_VERSION, Fl::abi_version(), and
          Fl::api_version(). Constants can be used to determine the compiled
          FLTK version. Functions can be used to find the linked library version.
        - Added Fl::abi_check() method to test if the runtime (linked)
          ABI version is correct.
        - Added Fl_Image::fail() to test if an image was loaded successfully
          to allow for easier error detection when loading images (STR #2873).
        - Added line numbers to fluid's source code viewer for New -> Code

        New configuration options (ABI version)

        - FLTK's ABI version can now be configured with 'configure', CMake, or
          by editing a supplied file when using the bundled IDE projects.
          See documentation in README.abi-version.txt.

        1.3.4 ABI FEATURES

        - Added deactivated user icon to Fl_Tree.
        - Added Fl_Shared_Image::scale(width, height) which gives a shared
          image its own drawing size, independently of the size of the
          underlying image. This improves image drawing on high resolution
          surfaces such as Laser printers, PDF files, and Apple retina displays.

        Other improvements

        - Configure now correctly sets HAVE_* variables only if both the
          library and the header files were found. The configuration process
          is aborted if Xft was requested explicitly with --enable-xft and
          Xft was not found. The configuration summary now shows _found_
          options as opposed to requested options.
        - Improved drawing of rounded box (STR #2943).
        - Full support of Apple 'retina' displays for which one drawing unit
          corresponds to two pixels.
        - The Mac OS X platform no longer uses the deprecated AGL
          (Apple GL library) to draw OpenGL data. Instead, it uses standard
          Cocoa APIs. This allows FLTK to support drawing GL scenes at high
          resolution when an Fl_Gl_Window is mapped to a 'retina' display.
        - Added Fl_Gl_Window::pixel_w(), Fl_Gl_Window::pixel_h(), and
          Fl_Gl_Window::pixels_per_unit() useful for high resolution OpenGL windows.
        - fl_read_image() now captures all pixels within the rectangle
          described by its arguments, whether they belong to a GL scene
          or not (STR #3142). It also captures subwindows of GL windows.
        - Fl::delete_widget() now hides the widget or window immediately
          (i.e. when called) - only destruction is delayed as before.
        - FLTK header files don't expose X11 definitions in user code any more
          unless requested by including FL/x.H explicitly or implicitly.
        - The PostScript code output when printing images under Linux/Unix
          is now much smaller by using lossless compression techniques.
        - The Linux/Unix printer dialog now uses BSD-style printing commands
          (lpr/lpq) when SystemV-style commands (lp/lpstat) are not available.
        - Drawing alpha-blended images under X11 is now accelerated with
          Xrender.
        - The font used for the FL_COURIER font family was changed on the Mac OS X
          platform from 'Courier New' to 'Courier' because it was too thin.
        - Text drawing on the Mac platform supports Unicode 'variation selectors'
          in the range [0xFE00-0xFE0F].
        - Added a Mac OS implementation of Fl_Window::wait_for_expose() that
          became necessary with Mac OS 10.10 "Yosemite".
        - Added the libfltk target to the Xcode project producing a static
          version of the FLTK library (Mac OS X).
        - Restored the possibility to call Fl::set_font() before main() starts.
        - Allow using the --enable-x11 configure option on the Mac OS platform
          which produces an X11 version of the FLTK library (don't use unless
          you know what you're doing).
        - FLTK code and fluid-generated code can be used in static initializers.
        - Added light gray separator line to fluid's widget browser (STR #2997).
        - Improved tooltip behavior for huge tooltips: remove flicker, support
          key/mouse dismiss (STR #2650).
        - Modifier key names displayed in shortcut labels can now be localized.
          See documentation of fl_shortcut_label(). You can set modifier key
          names for Ctrl, Alt, Shift, and Meta by assigning global string
          pointers to your translated modifier key names.
        - Many documentation improvements and fixes.
        - Fixed many compiler warnings (STR #2988).
        - Fluid now generates code with less compiler warnings (STR #2813).
        - Many CMake improvements and fixes. Note: CMake is mostly operating
          now, but not yet recommended for production use. Please test and
          report issues.
        - Updated bundled zlib from 1.2.5 to 1.2.8.
        - Updated bundled libjpeg from jpeg-8c to jpeg-9a.

        Bug fixes

        - Fix potential crash when using keyboard navigation on Fl_Tabs
          widget without children (STR #3333).
        - Fix potential crash if Fl_Window::icon(NULL) was called to clear
          (reset) a window icon. This is now legal and documented behavior.
          The same applies to Fl_Window::default_icon().
        - Allow widget callback to be NULL, i.e. no callback (STR #2835).
        - Fixed Fl_Help_View buffer overflow (STR #3275).
        - Fl_Browser now correctly adjusts its scrollbars when the default
          text size is changed with textsize(int) (STR #3057).
        - Fixed Fl_Text_Display/Fl_Text_Editor slow scrolling, line number
          display, wrap mode "hiding" text behind scrollbars, and more
          scrollbar handling (alignment) (STR #3272).
        - Fixed valgrind warning (uninitialized variable) in Fl_Window.
          Visible only with FLTK_ABI_VERSION >= 10303, since FLTK 1.3.3.
        - Fixed Windows drag'n'drop not showing insert position if the drop
          target is inside the same window or process (STR #3209).
        - Fixed undefined reference building shared cairo library (STR #3276).
        - Fixed Fl_Browser if text argument to some methods is NULL (STR #3269).
        - Fixed missing image release in fluid (STR #2840).
        - Fixed out-of-bounds memory access in fluid (STR #3263).
        - Fixed trailing white space in fluid .fl files (STR #3239).
        - Several box types were not drawn correctly when deactivated.
          The background color for deactivated widgets is now correct:
          fl_inactive(color()) (STR #2907).
        - Fix inconsistent interpretation of ld() in image handling
          (STR #3308). This is a minor issue since ld() is usually 0 or
          w()*d(). Documentation has been fixed, and ld() handling is now
          consistent in Fl_(RGB_)Image and fl_draw_image() and friends. See
          documentation of Fl_Image and Fl_RGB_Image for more information.
        - Fixed Fl_Pixmap (background) drawing to respect the clip region
          (STR #3206).
        - Fixed reading .pbm image files: 1 is now interpreted as black,
          and images whose width are a multiple of 8 are correctly read.
          Note: if you relied on the faulty behavior you may need to fix
          your image files.
        - Restored window background drawing, particularly the 'plastic'
          scheme's background (STR #3059). This was a regression since
          FLTK 1.3.0.
        - Prevent sending (FL_SHORTCUT) events to inactive widgets (STR #3216).
        - Fixed button label clipping (STR #3237).
        - Fixed Fl_Menu_::item_pathname() handling of descending submenu
          pointers (STR #3177).
        - Fl_Text_Display: style buffer colors are no longer manipulated by
          fl_contrast() for normal text drawing (fltk.coredev thread started
          04/08/15, Subject: "RFC: Fl_Text_Display style buffer color weirdness")
        - Fl_Tree::deactivate() now affects draw color of items (must have
          ABI 1.3.3 or higher enabled). For icons to draw deactivated,
          enable ABI 1.3.4. (test/tree has a 'deactivate tree' button)
        - Fl_Tree::find_item() did not find items if the pathname contained
          identical strings (STR #3234).
        - Fixed possible bad border effect when a set of radio menu items
          is located first in its menu (STR #3176): Fl_Menu_Item::set_only()
          is deprecated and replaced by Fl_Menu_::set_only(Fl_Menu_item*).
        - Restore the correct state of mouse buttons and keyboard modifier keys
          after closing a file or printer dialog (STR #3221).
        - Fix for deactivate colors issue with Fl_Text_Display/Editor (STR #3219).
        - Fixed issue with MSWindows platform where the program kept running
          after closing all its windows (STR #3165).
        - Fix potential buffer overflow (MSWindows: BEX64 error) and problem with
          MSWindows environment variables "HOME"(MinGW) vs. "UserProfile"(DOS)
        - Fix issue with MSWindows platform where a window would decrease
          in size after each close/open (STR #3167).
        - Fix undefined reference XGetUtf8FontAndGlyph (STR #3191).
        - Fix potential keyboard hangup (STR #3192).
        - Fix for: .xbm images were not previewed (STR #3131).
        - Fixed crash on Mac platform when resizing a not yet shown() Fl_Gl_Window.
        - Fixed potential Windows GDI leak (STR #3254).
        - Fixed Linux/Unix potential program hang when dialog pops up while
          a menu is open (STR #3179).
        - Fixed a crash when a Unix/Linux program calls take_focus() before any
          window has been show()n.
        - Fixed an error on the Mac platform when drawing to an Fl_Image_Surface
          object without using the Fl_Image_Surface::draw() method.
        - Fixed STR #3268 where a fullscreen window could become relocated
          behind the menu bar and dock (Mac OS only).
        - Fixed STR #3207: ^C not working when numlock or capslock is on.
        - Fixed code editor in Fluid (STR #3184).
        - Fixed a potential hangup of the Fl::awake() queue under Windows if
          a window is resized or moved while the Fl::awake() message is sent
          (STR #3143).
        - Fixed a regression: restore the possibility to call
          fl_draw_image(buf,X,Y,W,H,D,L) with negative D and/or L arguments.
        - Fixed overflow in Fl_Valuator::precision(int) to 0...9 (STR #3280).

diffstat:

 x11/fltk13/Makefile                             |   5 +-
 x11/fltk13/PLIST                                |   3 +-
 x11/fltk13/distinfo                             |  33 +++++--------
 x11/fltk13/patches/patch-FL_Enumerations.H      |  53 ----------------------
 x11/fltk13/patches/patch-FL_Fl_Widget.H         |  60 -------------------------
 x11/fltk13/patches/patch-aa                     |   8 +-
 x11/fltk13/patches/patch-ab                     |  50 --------------------
 x11/fltk13/patches/patch-ac                     |   8 +-
 x11/fltk13/patches/patch-ad                     |   6 +-
 x11/fltk13/patches/patch-ae                     |   8 +-
 x11/fltk13/patches/patch-af                     |   6 +-
 x11/fltk13/patches/patch-ag                     |  48 ++++++++++----------
 x11/fltk13/patches/patch-src_Fl.cxx             |  28 -----------
 x11/fltk13/patches/patch-src_Fl__Tree__Item.cxx |  15 ------
 x11/fltk13/patches/patch-src_Fl_cocoa.mm        |  15 ------
 x11/fltk13/patches/patch-src_Fl_grab.cxx        |  36 ---------------
 x11/fltk13/patches/patch-src_Fl_x.cxx           |  45 ------------------
 x11/fltk13/patches/patch-src_xutf8_imKStoUCS.c  |  28 -----------
 x11/fltk13/patches/patch-test_Makefile          |  38 ++++++++-------
 19 files changed, 79 insertions(+), 414 deletions(-)

diffs (truncated from 770 to 300 lines):

diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/Makefile
--- a/x11/fltk13/Makefile       Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/Makefile       Fri Jul 13 04:24:39 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2018/03/12 11:15:49 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2018/07/13 04:24:39 dbj Exp $
 
-DISTNAME=      fltk-1.3.3-source
-PKGREVISION=   4
+DISTNAME=      fltk-1.3.4-source
 PKGNAME=       ${DISTNAME:S/-source//}
 VERS=          ${DISTNAME:S/fltk-//:S/-source//}
 CATEGORIES=    x11
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/PLIST
--- a/x11/fltk13/PLIST  Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/PLIST  Fri Jul 13 04:24:39 2018 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2015/12/29 06:02:25 dholland Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/07/13 04:24:39 dbj Exp $
 bin/fltk-config
 bin/fluid
+include/FL/abi-version.h
 include/FL/Enumerations.H
 ${PLIST.cs}include/FL/Enumerations.h
 include/FL/Fl.H
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/distinfo
--- a/x11/fltk13/distinfo       Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/distinfo       Fri Jul 13 04:24:39 2018 +0000
@@ -1,22 +1,13 @@
-$NetBSD: distinfo,v 1.9 2016/12/16 00:08:03 joerg Exp $
+$NetBSD: distinfo,v 1.10 2018/07/13 04:24:39 dbj Exp $
 
-SHA1 (fltk-1.3.3-source.tar.gz) = 873aac49b277149e054b9740378e2ca87b0bd435
-RMD160 (fltk-1.3.3-source.tar.gz) = a1736ec7da1ff751153e09bc5b5136d2fa95c18b
-SHA512 (fltk-1.3.3-source.tar.gz) = 277ba27e35c20e2d4fc5296bf418c5ab78c821870476e21d49f723765b99b3a559eed4ecd5215ac26d53a1091ada003e17f1553194cebaa97dd854809dd2885d
-Size (fltk-1.3.3-source.tar.gz) = 4986376 bytes
-SHA1 (patch-FL_Enumerations.H) = 88fd3fc95e361604b3ec735fcf23865db02152e2
-SHA1 (patch-FL_Fl_Widget.H) = c2a80956ba2245a9addb53ca974d658020c5525d
-SHA1 (patch-aa) = 777b293800af60ac508968946bcb9bc448c1ea00
-SHA1 (patch-ab) = fa941f28b2c17577a8473313f4906e8724183906
-SHA1 (patch-ac) = 9ab9a8ab5d2fd54ff0fcdeb7e2486aa3b83be5de
-SHA1 (patch-ad) = 01a25d7265784572fbd0c7d2c6f029d45333ad21
-SHA1 (patch-ae) = 88da94679399b3a8710c23b7f41a7debc8bc92b8
-SHA1 (patch-af) = a4154e31fca9ecf125922a84ac39771bc71dcb0f
-SHA1 (patch-ag) = 61e6d166d0910e02558bacea629f7fb736f7304c
-SHA1 (patch-src_Fl.cxx) = 169ed990645180694b7cce5baad72a28ac4fcb7a
-SHA1 (patch-src_Fl__Tree__Item.cxx) = 39c0c4cbb905caef8cb2ff4159fa12c42ed890d6
-SHA1 (patch-src_Fl_cocoa.mm) = 878038c611623b5337634e43d756bfb291872b18
-SHA1 (patch-src_Fl_grab.cxx) = 08e2ddabf55c7de46558681ec651acc134182e01
-SHA1 (patch-src_Fl_x.cxx) = ca7e4b98c52a84d0bc23ecf33fc30f94c0d16d35
-SHA1 (patch-src_xutf8_imKStoUCS.c) = 55ba2343b6f021bba03f67410078ae419b3354be
-SHA1 (patch-test_Makefile) = 5c3ad88366f45af1580690af938d54cd81b6beb7
+SHA1 (fltk-1.3.4-source.tar.gz) = 3c58770d2920a219d07641fa403de2c8c57bb7f0
+RMD160 (fltk-1.3.4-source.tar.gz) = a660ec3b18e89426c2edb76818bbfcec6a6f5890
+SHA512 (fltk-1.3.4-source.tar.gz) = 92c236e426ad9b2a2954a6fc401bc9bf4c4c46d47b08f8c9b879da6031ac158ef9b944f28a8bea64d18072d1af8ceaa09c00abebd745fb76dd628636424446c2
+Size (fltk-1.3.4-source.tar.gz) = 5284217 bytes
+SHA1 (patch-aa) = 335993d2e6b232b0539e583fb2463bafdffbb9b3
+SHA1 (patch-ac) = 4ee251d11b3840f525f473fe6c320e4d16ac95e1
+SHA1 (patch-ad) = 5a17f8fb46ce65b4795618d6aa22f445b55f6aa8
+SHA1 (patch-ae) = 4952426cd6ecc67921779de95f68835aa3bdaa9c
+SHA1 (patch-af) = 4c2b772cc8bd6729aeb94ee4e871c2d982356616
+SHA1 (patch-ag) = 2339189b49551d27a8246d9efd9fed4b26732dde
+SHA1 (patch-test_Makefile) = a2e47c0c21983b8906898eea3f19b19c2f09386c
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-FL_Enumerations.H
--- a/x11/fltk13/patches/patch-FL_Enumerations.H        Fri Jul 13 04:14:48 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-$NetBSD: patch-FL_Enumerations.H,v 1.1 2015/07/21 21:36:41 markd Exp $
-
-part of tigervnc.patch from archlinux package.
-
---- FL/Enumerations.H.orig     2014-10-15 21:00:20.000000000 +0000
-+++ FL/Enumerations.H
-@@ -909,27 +909,27 @@ inline Fl_Color fl_color_cube(int r, int
- /* FIXME: We should renumber these, but that will break the ABI */
- enum Fl_Cursor {
-   FL_CURSOR_DEFAULT    =  0, /**< the default cursor, usually an arrow. */
--  FL_CURSOR_ARROW      = 35, /**< an arrow pointer. */
--  FL_CURSOR_CROSS      = 66, /**< crosshair. */
--  FL_CURSOR_WAIT       = 76, /**< busy indicator (e.g. hourglass). */
--  FL_CURSOR_INSERT     = 77, /**< I-beam. */
--  FL_CURSOR_HAND       = 31, /**< pointing hand. */
--  FL_CURSOR_HELP       = 47, /**< question mark pointer. */
--  FL_CURSOR_MOVE       = 27, /**< 4-pointed arrow or hand. */
-+  FL_CURSOR_ARROW      = 1, /**< an arrow pointer. */
-+  FL_CURSOR_CROSS      = 2, /**< crosshair. */
-+  FL_CURSOR_WAIT       = 3, /**< busy indicator (e.g. hourglass). */
-+  FL_CURSOR_INSERT     = 4, /**< I-beam. */
-+  FL_CURSOR_HAND       = 5, /**< pointing hand. */
-+  FL_CURSOR_HELP       = 6, /**< question mark pointer. */
-+  FL_CURSOR_MOVE       = 7, /**< 4-pointed arrow or hand. */
- 
-   /* Resize indicators */
--  FL_CURSOR_NS         = 78, /**< up/down resize. */
--  FL_CURSOR_WE         = 79, /**< left/right resize. */
--  FL_CURSOR_NWSE       = 80, /**< diagonal resize. */
--  FL_CURSOR_NESW       = 81, /**< diagonal resize. */
--  FL_CURSOR_N          = 70, /**< upwards resize. */
--  FL_CURSOR_NE         = 69, /**< upwards, right resize. */
--  FL_CURSOR_E          = 49, /**< rightwards resize. */
--  FL_CURSOR_SE         =  8, /**< downwards, right resize. */
--  FL_CURSOR_S          =  9, /**< downwards resize. */
--  FL_CURSOR_SW         =  7, /**< downwards, left resize. */
--  FL_CURSOR_W          = 36, /**< leftwards resize. */
--  FL_CURSOR_NW         = 68, /**< upwards, left resize. */
-+  FL_CURSOR_NS         = 101, /**< up/down resize. */
-+  FL_CURSOR_WE         = 102, /**< left/right resize. */
-+  FL_CURSOR_NWSE       = 103, /**< diagonal resize. */
-+  FL_CURSOR_NESW       = 104, /**< diagonal resize. */
-+  FL_CURSOR_NE         = 110, /**< upwards, right resize. */
-+  FL_CURSOR_N          = 111, /**< upwards resize. */
-+  FL_CURSOR_NW         = 112, /**< upwards, left resize. */
-+  FL_CURSOR_E          = 113, /**< rightwards resize. */
-+  FL_CURSOR_W          = 114, /**< leftwards resize. */
-+  FL_CURSOR_SE         = 115, /**< downwards, right resize. */
-+  FL_CURSOR_S          = 116, /**< downwards resize. */
-+  FL_CURSOR_SW         = 117, /**< downwards, left resize. */
- 
-   FL_CURSOR_NONE       =255  /**< invisible. */
- };
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-FL_Fl_Widget.H
--- a/x11/fltk13/patches/patch-FL_Fl_Widget.H   Fri Jul 13 04:14:48 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-$NetBSD: patch-FL_Fl_Widget.H,v 1.2 2015/07/21 21:36:41 markd Exp $
-
-Fl_X tries to access protected members of Fl_Widget.
-
-and part of tigervnc.patch from archlinux package. 
-
---- FL/Fl_Widget.H.orig        2014-09-08 08:55:49.000000000 +0000
-+++ FL/Fl_Widget.H
-@@ -99,6 +99,7 @@ struct FL_EXPORT Fl_Label {
-  */
- class FL_EXPORT Fl_Widget {
-   friend class Fl_Group;
-+  friend class Fl_X;
- 
-   Fl_Group* parent_;
-   Fl_Callback* callback_;
-@@ -172,6 +173,7 @@ protected:
-         COPIED_TOOLTIP  = 1<<17,  ///< the widget tooltip is internally copied, its destruction is handled by the widget
-         FULLSCREEN      = 1<<18,  ///< a fullscreen window (Fl_Window)
-         MAC_USE_ACCENTS_MENU = 1<<19, ///< On the Mac OS platform, pressing and holding a key on the keyboard opens an accented-character menu window (Fl_Input_, Fl_Text_Editor)
-+       SIMPLE_KEYBOARD = 1<<20,  ///< the widget wants simple, consistent keypresses and not advanced input (like character composition and CJK input)
-         // (space for more flags)
-         USERFLAG3       = 1<<29,  ///< reserved for 3rd party extensions
-         USERFLAG2       = 1<<30,  ///< reserved for 3rd party extensions
-@@ -789,6 +791,35 @@ public:
-    */
-   void set_active() {flags_ &= ~INACTIVE;}
- 
-+  /** 
-+      Returns if the widget sees a simplified keyboard model or not.
-+
-+      Normally widgets get a full-featured keyboard model that is geared
-+      towards text input. This includes support for compose sequences and
-+      advanced input methods, commonly used for asian writing system. This
-+      system however has downsides in that extra graphic can be presented
-+      to the user and that a physical key press doesn't correspond directly
-+      to a FLTK event.
-+
-+      Widgets that need a direct correspondence between actual key events
-+      and those seen by the widget can swith to the simplified keyboard
-+      model.
-+
-+     \retval 0 if the widget uses the normal keyboard model
-+     \see set_changed(), clear_changed()
-+   */
-+  unsigned int simple_keyboard() const {return flags_&SIMPLE_KEYBOARD;}
-+
-+  /** Marks a widget to use the simple keyboard model.
-+      \see changed(), clear_changed()
-+   */
-+  void set_simple_keyboard() {flags_ |= SIMPLE_KEYBOARD;}
-+
-+  /** Marks a widget to use the normal keyboard model.
-+      \see changed(), set_changed()
-+   */
-+  void set_normal_keyboard() {flags_ &= ~SIMPLE_KEYBOARD;}
-+
-   /** Gives the widget the keyboard focus.
-       Tries to make this widget be the Fl::focus() widget, by first sending 
-       it an FL_FOCUS event, and if it returns non-zero, setting 
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-aa
--- a/x11/fltk13/patches/patch-aa       Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/patches/patch-aa       Fri Jul 13 04:24:39 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2011/12/01 16:35:12 is Exp $
+$NetBSD: patch-aa,v 1.2 2018/07/13 04:24:39 dbj Exp $
 
---- Makefile.orig      2011-02-15 15:29:03.000000000 +0000
+--- Makefile.orig      2016-09-30 11:33:14.000000000 +0000
 +++ Makefile
-@@ -27,7 +27,7 @@
+@@ -18,7 +18,7 @@
  
  include makeinclude
  
@@ -11,7 +11,7 @@
  
  all: makeinclude fltk-config
        for dir in $(DIRS); do\
-@@ -35,6 +35,14 @@ all: makeinclude fltk-config
+@@ -26,6 +26,14 @@ all: makeinclude fltk-config
                (cd $$dir; $(MAKE) $(MFLAGS)) || exit 1;\
        done
  
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-ab
--- a/x11/fltk13/patches/patch-ab       Fri Jul 13 04:14:48 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2015/07/21 21:36:41 markd Exp $
-
---- configure.in.orig  2014-10-30 14:07:58.000000000 +0000
-+++ configure.in
-@@ -157,6 +157,7 @@ AC_SUBST(IMGLIBNAME)
- AC_SUBST(CAIROLIBNAME)
- AC_SUBST(LIBEXT)
- AC_SUBST(LIBNAME)
-+AC_SUBST(LIBTOOL)
- AC_SUBST(LINKFLTK)
- AC_SUBST(LINKFLTKFORMS)
- AC_SUBST(LINKFLTKGL)
-@@ -185,6 +186,15 @@ fi
- AC_ARG_ENABLE(gl, [  --enable-gl             turn on OpenGL support [[default=yes]]])
- 
- AC_ARG_ENABLE(shared, [  --enable-shared         turn on shared libraries [[default=no]]])
-+AC_ARG_ENABLE(libtool, [  --enable-libtool=LIBTOOL_PATH
-+                          turn on building with libtool [default=no]],[
-+if eval "test x$enable_libtool != xno"; then
-+    LIBTOOL="$enable_libtool"
-+    enable_shared=no
-+else
-+    LIBTOOL=""
-+fi])
-+
- if test x$enable_shared = xyes; then
-     PICFLAG=1
-     SHAREDSUFFIX=""
-@@ -358,6 +368,21 @@ else
-     LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
- fi
- 
-+if test "x$LIBTOOL" != "x"; then
-+    LINKFLTK="../src/libfltk.la"
-+    if test "x$LINKFLTKGL" != "x"; then    
-+        LINKFLTKGL="../src/libfltk_gl.la"    
-+    fi    
-+    if test "x$LINKFLTKIMG" != "x"; then    
-+        LINKFLTKIMG="../src/libfltk_images.la"    
-+    fi
-+    LINKSHARED="-lfltk_images -lfltk_forms -lfltk"
-+    DSONAME="libfltk.la"
-+    FLDSONAME="libfltk_forms.la"
-+    GLDSONAME="libfltk_gl.la"
-+    IMGDSONAME="libfltk_images.la"
-+fi
-+  
- AC_SUBST(DSOCOMMAND)
- AC_SUBST(DSOFLAGS)
- AC_SUBST(DSOLINK)
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-ac
--- a/x11/fltk13/patches/patch-ac       Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/patches/patch-ac       Fri Jul 13 04:24:39 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 2011/12/01 16:35:13 is Exp $
+$NetBSD: patch-ac,v 1.2 2018/07/13 04:24:39 dbj Exp $
 
---- configure.orig     2011-06-16 15:50:44.000000000 +0000
+--- configure.orig     2016-11-11 16:04:30.000000000 +0000
 +++ configure
-@@ -1999,7 +1999,22 @@ if test "${enable_shared+set}" = set; th
+@@ -3816,7 +3816,22 @@ if test "${enable_shared+set}" = set; th
    enableval=$enable_shared;
  fi
  
@@ -26,7 +26,7 @@
      PICFLAG=1
      SHAREDSUFFIX=""
      FLUID="fluid-shared"
-@@ -2138,6 +2153,20 @@ else
+@@ -4051,6 +4066,20 @@ else
      LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
  fi
  
diff -r d0fdabe32d1b -r 941caa4e1e97 x11/fltk13/patches/patch-ad
--- a/x11/fltk13/patches/patch-ad       Fri Jul 13 04:14:48 2018 +0000
+++ b/x11/fltk13/patches/patch-ad       Fri Jul 13 04:24:39 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.1.1.1 2011/12/01 16:35:13 is Exp $
+$NetBSD: patch-ad,v 1.2 2018/07/13 04:24:39 dbj Exp $
 
---- documentation/Makefile.orig        2011-01-05 23:00:33.000000000 +0000
+--- documentation/Makefile.orig        2015-06-16 13:18:28.000000000 +0000
 +++ documentation/Makefile
-@@ -92,11 +92,6 @@ install: $(MANPAGES)
+@@ -88,11 +88,6 @@ install: $(MANPAGES)
          $(INSTALL_DATA) fltk.pdf $(DESTDIR)$(docdir); \
        fi



Home | Main Index | Thread Index | Old Index