From 22bb3e2f7a911e602e86cfc007b9c28a6c5f7a9e Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Tue, 4 Dec 2012 12:51:16 +0100 Subject: [PATCH] Fix ABI breakage caused by fltk-1_v4.3.x-cursor.patch (#883026) Signed-off-by: Adam Tkac --- fltk-1_v4.3.x-cursor-abi.patch | 44 ++++++++++++++++++++++++++++++++++ fltk.spec | 7 +++++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 fltk-1_v4.3.x-cursor-abi.patch diff --git a/fltk-1_v4.3.x-cursor-abi.patch b/fltk-1_v4.3.x-cursor-abi.patch new file mode 100644 index 0000000..3d85601 --- /dev/null +++ b/fltk-1_v4.3.x-cursor-abi.patch @@ -0,0 +1,44 @@ +diff -up fltk-1.3.x-r9671/FL/Fl_Window.H.cursor-abi fltk-1.3.x-r9671/FL/Fl_Window.H +--- fltk-1.3.x-r9671/FL/Fl_Window.H.cursor-abi 2012-12-04 12:39:42.419066193 +0100 ++++ fltk-1.3.x-r9671/FL/Fl_Window.H 2012-12-04 12:40:45.791122889 +0100 +@@ -467,15 +467,13 @@ public: + + The type Fl_Cursor is an enumeration defined in . + ++ The Fl_Color parameters are here only for backward compatibility. ++ + \see cursor(const Fl_RGB_Image*, int, int), default_cursor() + */ +- void cursor(Fl_Cursor); ++ void cursor(Fl_Cursor c, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE); + void cursor(const Fl_RGB_Image*, int, int); +- void default_cursor(Fl_Cursor); +- +- /* for legacy compatibility */ +- void cursor(Fl_Cursor c, Fl_Color, Fl_Color=FL_WHITE) { cursor(c); }; +- void default_cursor(Fl_Cursor c, Fl_Color, Fl_Color=FL_WHITE) { default_cursor(c); }; ++ void default_cursor(Fl_Cursor c, Fl_Color=FL_BLACK, Fl_Color=FL_WHITE); + + static void default_callback(Fl_Window*, void* v); + +diff -up fltk-1.3.x-r9671/src/fl_cursor.cxx.cursor-abi fltk-1.3.x-r9671/src/fl_cursor.cxx +--- fltk-1.3.x-r9671/src/fl_cursor.cxx.cursor-abi 2012-12-04 12:40:55.714131967 +0100 ++++ fltk-1.3.x-r9671/src/fl_cursor.cxx 2012-12-04 12:41:25.804159597 +0100 +@@ -55,7 +55,7 @@ void fl_cursor(Fl_Cursor c, Fl_Color fg, + + \see cursor(const Fl_RGB_Image*, int, int), default_cursor() + */ +-void Fl_Window::default_cursor(Fl_Cursor c) { ++void Fl_Window::default_cursor(Fl_Cursor c, Fl_Color, Fl_Color) { + cursor_default = c; + cursor(c); + } +@@ -108,7 +108,7 @@ void fallback_cursor(Fl_Window *w, Fl_Cu + } + + +-void Fl_Window::cursor(Fl_Cursor c) { ++void Fl_Window::cursor(Fl_Cursor c, Fl_Color, Fl_Color) { + int ret; + + // the cursor must be set for the top level window, not for subwindows diff --git a/fltk.spec b/fltk.spec index 8ad9631..9668514 100644 --- a/fltk.spec +++ b/fltk.spec @@ -6,7 +6,7 @@ Summary: C++ user interface toolkit Name: fltk Version: 1.3.0 -Release: 7%{?dist} +Release: 8%{?dist} # see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details License: LGPLv2+ with exceptions @@ -38,6 +38,7 @@ Patch12: fltk-1_v3.3.x-clipboard-xfixes.patch # http://www.fltk.org/str.php?L2660 Patch13: fltk-1_v4.3.x-cursor.patch +Patch20: fltk-1_v4.3.x-cursor-abi.patch # http://www.fltk.org/str.php?L2859 Patch14: fltk-1.3.x-resize-expose.patch @@ -113,6 +114,7 @@ Requires: %{name}-devel %patch11 -p1 -b .clipboard2 %patch12 -p1 -b .clipboard3 %patch13 -p1 -b .cursor +%patch20 -p1 -b .cursor-abi %patch14 -p1 -b .resize-expose %patch15 -p0 -b .pixmap %patch16 -p1 -b .modal @@ -229,6 +231,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : %changelog +* Tue Dec 04 2012 Adam Tkac - 1.3.0-8 +- fix ABI breakage caused by fltk-1_v4.3.x-cursor.patch (#883026) + * Thu Nov 29 2012 Adam Tkac - 1.3.0-7 - add xcursor BR