summaryrefslogtreecommitdiff
path: root/src/Fl_Widget.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/Fl_Widget.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r--src/Fl_Widget.cxx56
1 files changed, 25 insertions, 31 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx
index 502fe35f7..25a4bb981 100644
--- a/src/Fl_Widget.cxx
+++ b/src/Fl_Widget.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// Base widget class for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2017 by Bill Spitzak and others.
@@ -9,11 +7,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <FL/Fl.H>
@@ -84,9 +82,9 @@ static void cleanup_readqueue(Fl_Widget *w) {
// Read the entire queue and copy over all valid entries.
// The new head will be determined after the last copied entry.
- int old_head = obj_head; // save newest entry
- int entry = obj_tail; // oldest entry
- obj_head = obj_tail; // new queue start
+ int old_head = obj_head; // save newest entry
+ int entry = obj_tail; // oldest entry
+ obj_head = obj_tail; // new queue start
for (;;) {
Fl_Widget *o = obj_queue[entry++];
if (entry >= QUEUE_SIZE) entry = 0;
@@ -111,24 +109,24 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) {
x_ = X; y_ = Y; w_ = W; h_ = H;
- label_.value = L;
+ label_.value = L;
label_.image = 0;
label_.deimage = 0;
- label_.type = FL_NORMAL_LABEL;
- label_.font = FL_HELVETICA;
- label_.size = FL_NORMAL_SIZE;
- label_.color = FL_FOREGROUND_COLOR;
- label_.align_ = FL_ALIGN_CENTER;
+ label_.type = FL_NORMAL_LABEL;
+ label_.font = FL_HELVETICA;
+ label_.size = FL_NORMAL_SIZE;
+ label_.color = FL_FOREGROUND_COLOR;
+ label_.align_ = FL_ALIGN_CENTER;
tooltip_ = 0;
- callback_ = default_callback;
- user_data_ = 0;
- type_ = 0;
- flags_ = VISIBLE_FOCUS;
- damage_ = 0;
- box_ = FL_NO_BOX;
- color_ = FL_GRAY;
- color2_ = FL_GRAY;
- when_ = FL_WHEN_RELEASE;
+ callback_ = default_callback;
+ user_data_ = 0;
+ type_ = 0;
+ flags_ = VISIBLE_FOCUS;
+ damage_ = 0;
+ box_ = FL_NO_BOX;
+ color_ = FL_GRAY;
+ color2_ = FL_GRAY;
+ when_ = FL_WHEN_RELEASE;
parent_ = 0;
if (Fl_Group::current()) Fl_Group::current()->add(this);
@@ -310,10 +308,10 @@ void Fl_Widget::copy_label(const char *a) {
in your own widget's handle() method.
\note It is legal to delete the widget in the callback (i.e. in user code),
- but you must not access the widget in the handle() method after
- calling do_callback() if the widget was deleted in the callback.
- We recommend to use Fl_Widget_Tracker to check whether the widget
- was deleted in the callback.
+ but you must not access the widget in the handle() method after
+ calling do_callback() if the widget was deleted in the callback.
+ We recommend to use Fl_Widget_Tracker to check whether the widget
+ was deleted in the callback.
\param[in] widget call the callback with \p widget as the first argument
\param[in] arg use \p arg as the user data (second) argument
@@ -331,7 +329,3 @@ void Fl_Widget::do_callback(Fl_Widget *widget, void *arg) {
if (callback_ != default_callback)
clear_changed();
}
-
-//
-// End of "$Id$".
-//