Author: greg.ercolano
Date: 2013-04-10 13:13:12 -0700 (Wed, 10 Apr 2013)
New Revision: 9870
Log:
While suggesting a new top_window() method for STR#2948,
it's realized that for consistency, the recently added window_offset() method
(a few days ago) should be renamed to top_window_offset().
Modified:
branches/branch-1.3/FL/Fl_Window.H
branches/branch-1.3/src/Fl_Gl_Window.cxx
branches/branch-1.3/src/Fl_Window.cxx
Modified: branches/branch-1.3/FL/Fl_Window.H
===================================================================
--- branches/branch-1.3/FL/Fl_Window.H 2013-04-09 20:11:28 UTC (rev 9869)
+++ branches/branch-1.3/FL/Fl_Window.H 2013-04-10 20:13:12 UTC (rev 9870)
@@ -120,7 +120,7 @@
\see force_position(int)
*/
int force_position() const { return ((flags() & FORCE_POSITION)?1:0); }
- Fl_Window* window_offset(int& xoff, int& yoff) const;
+ Fl_Window* top_window_offset(int& xoff, int& yoff) const;
public:
Modified: branches/branch-1.3/src/Fl_Gl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Gl_Window.cxx 2013-04-09 20:11:28 UTC (rev
9869)
+++ branches/branch-1.3/src/Fl_Gl_Window.cxx 2013-04-10 20:13:12 UTC (rev
9870)
@@ -184,7 +184,7 @@
if (window()) {
int xoff,yoff;
- const Fl_Window *win = window_offset(xoff, yoff); // STR #2944 [2]
+ const Fl_Window *win = top_window_offset(xoff, yoff); // STR #2944 [2]
xywh[0] = xoff;
xywh[1] = win->h() - yoff - h();
} else {
Modified: branches/branch-1.3/src/Fl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Window.cxx 2013-04-09 20:11:28 UTC (rev
9869)
+++ branches/branch-1.3/src/Fl_Window.cxx 2013-04-10 20:13:12 UTC (rev
9870)
@@ -283,7 +283,7 @@
\param[out] xoff,yoff Returns the x/y offset
\returns the top-level window
*/
-Fl_Window* Fl_Window::window_offset(int& xoff, int& yoff) const {
+Fl_Window* Fl_Window::top_window_offset(int& xoff, int& yoff) const {
xoff = yoff = 0;
const Fl_Window *win = (const Fl_Window*)this;
while (win && win->window()) {
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit