Commit Graph

2638 Commits

Author SHA1 Message Date
Michael R Sweet
489e8cdd05 Add fl_gtk.cxx to VC 2005 projects.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 00:50:33 +00:00
Michael R Sweet
b6a66645e0 Reject invalid workarea rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 00:44:13 +00:00
Matthias Melcher
725efb3569 STR #1492: Fl_Progress was using the wrong width to calculate progress
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-12 20:44:12 +00:00
Michael R Sweet
095ed29a7f Add NULL check for _NET_WORKAREA property value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-01 15:30:11 +00:00
Michael R Sweet
7a9e9468e6 Add -fno-strict-aliasing to compiler options since GCC doesn't understand
that char * and unsigned char * are safe to interchange (STR #1484)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:28:11 +00:00
Michael R Sweet
4e0cea8f10 Scratch that, looks like autoconf 2.50 added AC_SYS_LARGEFILE. 2.57
added documentation for it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:15:47 +00:00
Michael R Sweet
7dd62791f9 AC_SYS_LARGEFILE appears to have been introduced in autoconf 2.57...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-31 21:11:04 +00:00
Michael R Sweet
3ebd631cf0 Fl::x(), Fl::y(), Fl::w(), and Fl::h() did not report the desktop
work area on X11 (STR #1482)

Fix another "missing sentinel" warning in the Xft code.

FL/Fl.H:
    - Remove in-line x() and y() implementation for X11.

src/Fl_x.cxx:
    - Fl::x(), Fl::y(): Added.
    - fl_init_workarea(): Added to get _NET_WORKAREA property from the
      root window; if none, is available, the code falls back to 0, 0,
      DisplayWidth, and DisplayHeight.

src/fl_font_xft.cxx:
    - Missing sentinel needs cast to void *.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-30 14:16:08 +00:00
Michael R Sweet
117e22670d Another try at the shortcut fix...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 17:11:10 +00:00
Michael R Sweet
9e3f8a1db6 Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 14:16:03 +00:00
Michael R Sweet
39cb1f8daf Fix two "hide the cursor" bugs related to click-to-focus windows (STR #1475)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:43:31 +00:00
Michael R Sweet
7fffbf7dea Shortcut events could be sent to the wrong window (STR #1451)
src/Fl.cxx:
    - Fl::event_inside(): Only return true for widgets if the
      first_window() (focused window) is the same as the widget's
      window.
    - Fl::handle(): Send shortcuts to the first window (that has
      focus) before all others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:22:28 +00:00
Michael R Sweet
8a64710a17 Fl_Spinner did not handle the arrow keys properly (STR #1476)
FL/Fl_Spinner.H:
    - Add Fl_Spinner::handle() method to handle arrow key and
      focus events.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 12:34:14 +00:00
Michael R Sweet
c0664eefcd Fl_File_Browser did not calculate the width of directory items
correctly (STR #1470)

src/Fl_File_Browser.cxx:
    - Fl_File_Browser::item_width(): Use a bold font for directory
      items.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 12:13:56 +00:00
Michael R Sweet
cec43a6cb1 Don't start widgets offset by 1/2 the spacing value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-20 01:07:16 +00:00
Michael R Sweet
2ab7525eb3 Treat all "Window" classed widgets as window widgets.
Don't automatically include non-FLTK headers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-20 00:34:48 +00:00
Michael R Sweet
2d2b24b781 Fix dead pixel in FL_GTK_UP_BOX/FRAME (STR #1471)
Use FL_COMMAND modifier in FLUID menus (CTRL for non-OSX, CMD for OSX)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-14 04:35:24 +00:00
Michael R Sweet
5ae7999e41 Move icons for blocks game to the right directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-13 20:19:17 +00:00
Michael R Sweet
b5b97b305f Make sure all of the demos use the scheme, and add a scheme chooser to the
demo program.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 03:12:15 +00:00
Michael R Sweet
367c40a9b7 fl_arc() and fl_pie() did not draw properly on WIN32 when the
start and end points were identical (STR #1461)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:23:52 +00:00
Michael R Sweet
09a1c11ac1 Fl_Input and Fl_Text_Editor now hide the mouse pointer when
typing into them (STR #1466)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:01:02 +00:00
Michael R Sweet
b82b4c4445 Use standard link color as the default, not FL_SELECTION_COLOR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-07 14:29:15 +00:00
Michael R Sweet
7b15f5b159 Fix install-linux target in test directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-07 11:32:22 +00:00
Michael R Sweet
e8aac38a70 Look for Text.selectBackground instead of fltk.selectBackground to
get the selection color.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 12:48:18 +00:00
Michael R Sweet
228af43a56 Tweak GTK+ thin up/down boxes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 02:32:42 +00:00
Michael R Sweet
3c03eb67a0 More cleanup of GTK+ scheme - menu buttons now use the new look-n-feel,
and I also fixed the radio button offset for the plastic scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 23:08:49 +00:00
Michael R Sweet
7febae3f9e Add GTK thin up/down box/frame types.
Update the GTK round up/down box types.

Update radio/check box drawing for gtk+ scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 02:35:12 +00:00
Michael R Sweet
ad4a4ea0db Fix "missing sentinal" warning from GCC 4 - basically this means we used
"0" instead of "(void *)0" in a variable-argument function, which will not
work on 64-bit systems where int is 32-bits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 00:51:35 +00:00
Michael R Sweet
4d0529a276 Fix new alpha blending code to use the source image width instead of
the destination width when computing the start pointer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 17:20:56 +00:00
Michael R Sweet
849ecabf53 Fix light button drawing so that the glowing LED mode is only used when
Fl::scheme() is "plastic".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 14:29:43 +00:00
Michael R Sweet
5e39761d40 Fix void * to integer casts for 64-bit Intel systems (STR #1446)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-30 03:34:32 +00:00
Michael R Sweet
4b77e169bf Add Id keyword for expansion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-29 21:02:27 +00:00
Michael R Sweet
bce3e769bd Add fl_gtk.cxx to VC.NET projects
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-28 20:21:53 +00:00
Matthias Melcher
cc1ab1a315 STR #1447: Fixed CMake files to include new GTK+ scheme
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-26 18:05:10 +00:00
Michael R Sweet
faddffcf18 src/Fl_Button.cxx:
- Fl_Button::draw(): Only use fl_contrast() on the label
      color when value() is non-zero.

src/fl_color.cxx:
    - fl_contrast(): Require at least 1/3 (85) instead of 1/2
      (127) for contrast against the background.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-25 16:36:52 +00:00
Michael R Sweet
69dcc7c685 Adjust arrow sizefor consistency.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-25 01:17:20 +00:00
Michael R Sweet
174c006fd5 Update "o" variable detection code to handle more cases (STR #1429)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 19:24:12 +00:00
Michael R Sweet
ad40154ca3 Adapt Sadysta's alpha compositing code for current implementation of
Fl_RGB_Image.  We now provide (unaccellerated) alpha compositing of
RGBA and Grayscale-Alpha images (d() == 4 and d() == 2) on X11 and
QuickDraw...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 19:05:38 +00:00
Michael R Sweet
b91935040a Flip the color of Fl_Choice to FL_BACKGROUND2_COLOR when there is no
scheme so the menu uses the same color as the background.

Add -Dname[=value] documentation to fltk-config man page.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 13:35:23 +00:00
Michael R Sweet
a4c2cbd49a Tweak gtk+ drawing of Fl_Choice.
Add support for "-Dname" option in fltk-config.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 04:39:55 +00:00
Michael R Sweet
9663eaa1c4 Use FL_BACKGROUND2_COLOR for the standard Fl_Choice background instead of
fl_lighter(color()), so that the previous look-n-feel is preserved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 22:52:07 +00:00
Michael R Sweet
b04788a189 Check buttons did not redraw properly with box() set to FL_NO_BOX
(STR #1440)

src/Fl_Button.cxx:
    - Fl_Button::value(): Use redraw_label() if box() is not set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 15:28:09 +00:00
Michael R Sweet
f0180536b3 Use "1" as the count for the targets query instead of sizeof(Atom).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-21 12:26:45 +00:00
Michael R Sweet
1d23087fc9 Fix inactive drawing of the new GTK+ box types.
Fix inactive drawing of Fl_Clock and Fl_Dial widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-20 03:03:14 +00:00
Michael R Sweet
5be931cebd Update Fl::scheme() documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-20 00:50:34 +00:00
Matthias Melcher
7a60537122 STR 1424: attempt to make test/Makefile more roboust for time shifts in fluid generated code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-19 08:38:53 +00:00
Matthias Melcher
a962c9222e Updated VisualC 6 Workspace for new GTK widget look
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-18 09:49:04 +00:00
Michael R Sweet
6a01d2cf69 Fix handling of public/private stuff for widget classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 18:34:17 +00:00
Matthias Melcher
36d32a9ec9 Decluttered Fluid Widget Bin to look good w/Mike new GTK+ scheme. Thanks Mike!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 18:31:35 +00:00
Michael R Sweet
982ee98332 Add GTK box types and missing plastic round box types.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 15:59:02 +00:00