FLTK logo

[Library] r8472 - in branches/branch-1.3: FL src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r8472 - in branches/branch-1.3: FL src fltk-dev Feb 25, 2011  
 
Author: AlbrechtS
Date: 2011-02-25 00:44:47 -0800 (Fri, 25 Feb 2011)
New Revision: 8472
Log:
Un-inlined Fl_Window::icon() methods to make them easier to extend w/o
breaking the ABI. See discussion in STR #2563.


Modified:
   branches/branch-1.3/FL/Fl_Window.H
   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	2011-02-24 18:02:11 UTC (rev 8471)
+++ branches/branch-1.3/FL/Fl_Window.H	2011-02-25 08:44:47 UTC (rev 8472)
@@ -323,17 +323,15 @@
   /** Sets the icon label. */
   void iconlabel(const char*);
   /** Sets the icon label. */
-  void label(const char* label, const char* iconlabel); // platform dependent 
+  void label(const char* label, const char* iconlabel); // platform dependent
   void copy_label(const char* a);
 
   static void default_xclass(const char*);
   static const char *default_xclass();
   const char* xclass() const;
   void xclass(const char* c);
-  /** Gets the current icon window target dependent data. */
-  const void* icon() const	{return icon_;}
-  /** Sets the current icon window target dependent data. */
-  void icon(const void * ic)	{icon_ = ic;}
+  const void* icon() const;
+  void icon(const void * ic);
 
   /**
     Returns non-zero if show() has been called (but not hide()
@@ -343,11 +341,11 @@
   int shown() {return i != 0;}
   /**
     Puts the window on the screen. Usually (on X) this has the side
-    effect of opening the display. 
+    effect of opening the display.
 
     If the window is already shown then it is restored and raised to the
     top.  This is really convenient because your program can call show()
-    at any time, even if the window is already up.  It also means that 
+    at any time, even if the window is already up.  It also means that
     show() serves the purpose of raise() in other toolkits.
     
     Fl_Window::show(int argc, char **argv) is used for top-level

Modified: branches/branch-1.3/src/Fl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Window.cxx	2011-02-24 18:02:11 UTC (rev 8471)
+++ branches/branch-1.3/src/Fl_Window.cxx	2011-02-25 08:44:47 UTC (rev 8472)
@@ -277,7 +277,17 @@
   }
 }
 
+/** Gets the current icon window target dependent data. */
+const void *Fl_Window::icon() const {
+  return icon_;
+}
 
+/** Sets the current icon window target dependent data. */
+void Fl_Window::icon(const void * ic) {
+  icon_ = ic;
+}
+
+
 //
 // End of "$Id$".
 //

Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.