74 Commits

Author SHA1 Message Date
Thanatomanic
fc031ccb5a
Remove deprecated GTK3 code, fixes #6103 (#6113)
Replaces the following deprecated Gtk classes throughout the codebase by their non-deprecated counterparts. Style, HBox, VBox, HPaned, VPaned, HScrollbar, VScrollbar, VSeparator, HSeparator, Stock, Table, VScale and HScale.
2021-02-17 11:44:25 +01:00
rfranke
590ee199cc Fix scrolling in thumb browser under macOS, see #5599
The Quartz backend emits adjusted GdkEventScroll delta values.
This is why the RT thumb browser scrolls several hundred times too fast
if the deltas are additionally multiplied by thumb size under macOS.

See use of scroll_unit and GDK_WINDOWING_QUARTZ for Gtk scrollbars:
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gtk/gtkrange.c#L3080
2020-01-12 16:09:11 +01:00
Ingo Weyrich
79431ffa1d Some changes suggested by @Floessie 2019-11-26 19:42:48 +01:00
Ingo Weyrich
587652283d further reduction of include dependencies, also finalised some classes 2019-11-09 16:51:54 +01:00
Ingo Weyrich
e5258e6f60 reduce rtgui/inspector.h dependencies 2019-11-08 20:22:18 +01:00
Ingo Weyrich
b3b1008270 Further reduction of include dependencies 2019-11-02 17:29:26 +01:00
Ingo Weyrich
e682b364b5 Further reduction of include dependencies 2019-11-01 14:51:33 +01:00
Ingo Weyrich
068847eb5a Further cleanup of include dependencies 2019-10-29 21:06:27 +01:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
Andy Dodd
a060b57ff6 rtgui/thumbbrowserbase - Improve behavior with smooth scrolling devices
Devices such as trackpads will emit smooth scrolling (GDK_SMOOTH_SCROLL) events with
deltas smaller than +/-1.0 at high frequency.

Quantizing these to +/-1.0 leads to significant amplification of scroll speed to the point
of unusability

Scroll by delta instead of +/-1.0 in these cases, permitting smooth scrolling through thumbnails

Some mice emit GDK_SMOOTH_SCROLL with deltas of +/-1.0 per detent.  This patch will not change behavior
with such devices.  However, if any mice emit deltas of smaller magnitude, the per-detent behavior will
change.
2019-08-30 16:55:29 -04:00
Ingo Weyrich
4bf4b818c0 cppcheck fixes 2019-08-08 13:41:14 +02:00
Ingo Weyrich
c82aafb748 Merge branch 'dev' into filebrowser-catalog-speedups 2019-07-30 16:16:46 +02:00
Ingo Weyrich
f85de946e6 Fix some corner cases in thumb selection, #5393 2019-07-30 14:44:18 +02:00
Ingo Weyrich
6b868a8d4d Make thumbnail range-selection more similar to OS behaviour, fixes #5393 2019-07-30 13:22:15 +02:00
Ingo Weyrich
287bd5bbe3 boolean > bool 2019-07-29 23:05:01 +02:00
Ingo Weyrich
0f0dc03849 Fix broken thumbnail butto tooltips 2019-07-29 15:21:23 +02:00
Ingo Weyrich
e748f42427 Some code cleanups 2019-07-27 21:26:00 +02:00
Ingo Weyrich
de963c54de Further speedups for filebrowser/catalog 2019-07-27 17:39:16 +02:00
Ingo Weyrich
1320791052 Backwards thumbnail selection using Shift-key unexpectedly shifts starting point of selection, fixes #5389 2019-07-27 11:40:01 +02:00
Morgan Hardwood
a9edbcf47b Improve page-up/down scrolling in File Browser
Patch by Ingo
2019-07-25 14:11:40 +02:00
Morgan Hardwood
4cbc2a9091 Fix missing filename tooltip
When hovering over a thumb which has characters in its filename which
are used in markup, such as '&', the tooltip was missing, due to the
ampersand being parsed as markup. Now the filename is treated as plain
text.
2019-07-25 12:04:45 +02:00
Morgan Hardwood
a6b1eb46fd Filmstrip horizontal scroll rate
When scrolling with the mouse scroll-wheel while hovering over a
thumbnail in the Filmstrip, now it scrolls by an amount equal to
the first thumb's width. Previously it used the height.
Spotted by Ingo.
2019-07-25 11:49:17 +02:00
Ingo Weyrich
cbb3f05b7e use empty() instead of comparison with an empty string 2019-07-22 13:49:08 +02:00
Ingo Weyrich
bbdd774afb Further speedups for filebrowser 2019-07-17 21:29:24 +02:00
heckflosse
bd2ee13e7b revert commit 6e364e4, fixes #5308 2019-04-25 21:09:35 +02:00
heckflosse
6e364e4c80 First doubleclick on an image after starting rt does not open the image. Patch provided by @Pandagrapher, fixes #5294 2019-04-22 21:18:44 +02:00
Hombre
97824da6de Histogram and Navigator now handle Hi-DPI.
+ widgets are now sized depending on Hi-DPI
see issue #3547
2019-01-04 15:32:35 +01:00
Hombre
78fa7dc063 SHCSelector, ThresholdSelector, LabGrid and Curves now handles HiDPI
see issue #3547
2019-01-02 18:04:58 +01:00
Hombre57
7e01976ab2 Bugfix and cleanup
See issue #3547
2018-12-14 01:05:11 +01:00
Hombre
7ab3893b2b Merge branch 'dev' into hidpi-icons 2018-12-09 00:13:01 +01:00
heckflosse
2ec094b1ce remove special windows code, #5058 2018-12-03 13:30:51 +01:00
Hombre
434e121f99 Merge branch 'dev' into hidpi-icons 2018-11-29 00:15:57 +01:00
heckflosse
d06e26356b Fix scrolling in wrong direction when using mouse wheel in filebrowser, #5036 2018-11-27 19:54:26 +01:00
heckflosse
e7a04bb77e Fix coverity issues 2018-11-20 21:23:37 +01:00
Hombre
785a0e6a46 Merge branch 'dev' into hidpi-icons 2018-10-25 20:43:41 +02:00
Hombre
4eb8a8f70c Adding HiDPI support (WIP) 2018-10-25 20:22:33 +02:00
Hombre
8a18300a76 Removing debug printf (no issue) 2018-10-15 23:13:57 +02:00
Hombre
0d61f14bae Added support for GDK_SCROLL_SMOOTH in some widgets
see #4781, #4786
2018-09-15 21:14:48 +02:00
heckflosse
bb9e7c5d66 Filmstrip height not high enough after latest dev, fixes #4655 2018-07-02 11:03:19 +02:00
Thanatomanic
cccfb02b51 Hide scrollbar if necessary 2018-07-01 15:53:29 +02:00
Thanatomanic
fc79968108 Sanity checks for height, horizontal thumb browser automatically scales. 2018-07-01 15:52:21 +02:00
Thanatomanic
3d7772d0c6 The scrolling distance now takes into account the effective height of the thumbnail (including exif if necessary) 2018-07-01 13:47:42 +02:00
Thanatomanic
b5310d4bc6 Scrolling speed changed to height of thumbnail.
This works really well in the browser. Horizontal scrolling has the same speed, which works reasonably well too (unless you have images with abnormal aspect ratio's).
2018-07-01 09:36:38 +02:00
Hombre
bf6702fa56 Scroll wheel (and possibly touchpad) better handled, see #3923 2018-03-23 23:21:05 +01:00
heckflosse
57adea62cc Small optimization in ThumbBrowserBase::arrangeFiles() 2017-07-07 21:31:05 +02:00
Flössie
30ef9092c4 Additional cleanups for ThumbBrowserBase::arrangeFiles() 2017-07-07 20:51:07 +02:00
Flössie
c792facb73 Fix filtered horizontal thumbs
Take two images, the first in portrait, the second in landscape
orientation. Mark the second with a red dot and filter for red.
Now open that image in SETM. The top tumb is too slim.
2017-07-07 20:26:10 +02:00
heckflosse
ebbb44c3f5 Cleanup for last commit 2017-06-25 21:42:43 +02:00
heckflosse
8aff354df9 Fix some coverity and cppcheck issues 2017-06-18 18:40:40 +02:00
heckflosse
18076077c0 Fix some coverity issues 2017-06-14 13:50:46 +02:00