| Age | Commit message (Collapse) | Author |
|
Remove unused variables and unused code to silence warnings.
|
|
Fix several bugs found by scan-build (more to come).
https://clang-analyzer.llvm.org/scan-build.html
See also current travis-ci build log with static analyzer, e.g.
https://travis-ci.com/fltk/fltk/jobs/285426415
(link may become invalid in the future).
|
|
Revert commit 958d912ffcdb using 'XSetLocaleModifiers("@im=");'
which was incorrect (STR 3192).
Apply fix for STR 3502, using 'XSetLocaleModifiers("");' which appears
to be the correct solution for using X Input Methods (XIM).
This has also been backported to FLTK 1.3.6 in branch-1.3, see
commit 219ae5e455e7943ffb35fdd5edbe13dcc6955423.
|
|
|
|
|
|
|
|
|
|
|
|
The doc states:
"Top-level windows initially have visible() set to 0 and parent() set to NULL.
Subwindows initially have visible() set to 1 and parent() set to the parent window pointer."
The first statement was not satisfied when a window was constructed
with the Fl_Window(x, y, w, h, t) constructor.
|
|
|
|
I believe this is a better place.
Also: add FL_EXPORT since it's no longer inline.
|
|
According to the documentation fl_font(face, size) may be called
"outside a draw context if necessary to call fl_width()".
This worked in 1.3.5 but did not in 1.4 (so far). I reworded the
docs to make clear that other measurement functions can be called
as well and refactored the code to make sure that fl_font(face, size)
will open the display if necessary.
|
|
The X11 specific overloaded function fl_open_display(Display *)
has never been documented but exposed (and "exported" in the ABI)
in FL/platform.H which is not necessary. This internal function
is now static and no longer exposed in the ABI.
Don't confuse with fl_open_display() w/o arguments which is still
exported and declared in FL/platform.H.
|
|
Fix cut'n'paste error: needs #pragma pop instead of push.
|
|
- make the internal variable static
- make it callable after fl_open_display()
- document that it's currently only usable to switch scaling off
|
|
... for GCC >= 4.6 and clang compilers.
This annoying warning exists on X11 (Linux/Unix/macOS) platforms
because we need to use XKeycodeToKeysym() although it is deprecated.
See STR 2913 for discussion and details.
|
|
|
|
|
|
The button state is recorded in a preference so is recovered the next
time the GTK file chooser runs.
|
|
Allows an app to detect whether fl_register_images() was called or not.
|
|
!defined(RTLD_DEFAULT)
|
|
|
|
|
|
|
|
|
|
There are now 2 kinds of GTK libraries (V2 and V3) and two dialogs
the file chooser and the printer chooser.
|
|
|
|
Clarify functionality of fl_not_clipped() and fl_clip_box().
Add developer documentation for Fl_Graphics_Driver::clip_box().
Documentation only, no code changes in this commit.
|
|
|
|
|
|
|
|
See report in fltk.coredev as of today (Jan 16, 2020):
"Fl_Input in readonly mode - wrong behaviour".
Summary: Drag and drop within a read-only Fl_Input (i.e. Fl_Output)
widget would not insert the dragged text (correct) but removed
the dragged text from the widget (error). This is now fixed.
|
|
|
|
src/flstring.h should only be used in library code because it
includes <config.h>.
Document this fact in src/flstring.h.
|
|
The main fixes are only to avoid static code analyzer warnings reported
in issue #5, but there are also minor bug fixes included. These bug
fixes are more of theoretical concerns though.
Close #6.
|
|
|
|
|
|
|
|
|
|
Forgot to add these files. Sorry for the noise.
|
|
|
|
This new class is explicitly internal and undocumented. We can
rename and/or redefine or extend it as we need.
This work is based on Matt's recent update with separate internal
classes BMPReader and GIFReader which have been replaced by
Fl_Image_Reader.
|
|
|
|
The implementation is effective for macOS 10.10 and above.
Demo program test/device uses the new implementation.
|
|
Detailed information on how preference file paths are generated, and preliminary docs what happens if that fails. Documentation, on what FLTK die pre 1.4 when any of this failed. Also, a little TODO list for me that I will hopefully get to in the next days.
|
|
Removed duplicate code from Fl_JPEG_Image, updated and unified Doxygen comments. Avoiding name conflict in new protected functions.
|
|
Yet another fix for RTL text...
|
|
Text outside the 16-bit X11 coordinate space must be clipped before
calling X11 draw functions, otherwise text might appear anywhere
in the window because X11 would "truncate" the coordinates instead
of proper clipping (X11 handles only 16-bit coordinates).
|
|
|
|
|