Author: greg.ercolano
Date: 2010-10-31 11:58:58 -0700 (Sun, 31 Oct 2010)
New Revision: 7786
Log:
Doc for arg to Fl_Window::icon(arg) changed to match actual prototype.
(char* -> const void*)
Noticed this because docs for this method under OS issues
wasn't showing up with html highlights.
Modified:
branches/branch-1.3/documentation/src/osissues.dox
Modified: branches/branch-1.3/documentation/src/osissues.dox
===================================================================
--- branches/branch-1.3/documentation/src/osissues.dox 2010-10-31 18:00:37 UTC
(rev 7785)
+++ branches/branch-1.3/documentation/src/osissues.dox 2010-10-31 18:58:58 UTC
(rev 7786)
@@ -371,7 +371,7 @@
FLTK currently supports setting a window's icon \b before it
is shown using the Fl_Window::icon() method.
-void Fl_Window::icon(char *)
+void Fl_Window::icon(const void *)
\par
Sets the icon for the window to the passed pointer. You will
@@ -386,7 +386,7 @@
Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display),
icon_bits, icon_width, icon_height);
-window->icon((char *)p);
+window->icon((const void*)p);
\endcode
\par
@@ -403,7 +403,7 @@
XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display),
icon_xpm, &p, &mask, NULL);
-window->icon((char *)p);
+window->icon((const void *)p);
\endcode
\par
@@ -552,7 +552,7 @@
FLTK currently supports setting a window's icon *before* it
is shown using the Fl_Window::icon() method.
-void Fl_Window::icon(char *)
+void Fl_Window::icon(const void *)
\par
Sets the icon for the window to the passed pointer. You will
@@ -560,7 +560,7 @@
calling this method. To set the icon using an icon resource
compiled with your application use:
\code
-window->icon((char *)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_ICON)));
+window->icon((const void *)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_ICON)));
\endcode
\par
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit