summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
AgeCommit message (Collapse)AuthorFilesLines
2022-09-11explicitly assigning value of variable of type 'int' to itselfrbuj1-2/+2
2022-09-11Use GLib's new g_clear_signal_handler() function to simplify coderbuj1-4/+9
2022-09-11eom-scroll-view.c: fix -Wbad-function-cast warningrbuj1-6/+7
2021-11-20Use a blank line at mostrbuj1-8/+0
2021-01-20Remove unnecessary casts on signal function callsrbuj1-44/+69
2020-11-18eom-scroll-view.c: Redundant casting GTK_WIDGETrbuj1-32/+32
2020-11-18eom-scroll-view: Remove warning incompatible-pointer-typesrbuj1-1/+1
2020-11-03Ensure scrollbar moves when dragged to move imagelukefromdc1-0/+2
Fixes https://github.com/mate-desktop/eom/issues/132
2020-09-02Remove unused macrosPablo Barciela1-6/+0
2019-07-02Remove trailing whitespacesLaurent Napias1-2/+2
2018-07-23scroll-view: Remove a gdk_window_process_updates callraveit651-3/+0
gtk+ will process the updates itself once the time comes. inspired by: https://gitlab.gnome.org/GNOME/eog/commit/fbfd90f
2018-07-17Convert to G_DEFINE_TYPE_WITH_PRIVATE part 1Felix Riemann1-7/+2
origin commits: https://gitlab.gnome.org/GNOME/eog/commit/35c3864 https://gitlab.gnome.org/GNOME/eog/commit/842775b https://gitlab.gnome.org/GNOME/eog/commit/3fe0bd4 https://gitlab.gnome.org/GNOME/eog/commit/2b25632 https://gitlab.gnome.org/GNOME/eog/commit/f0c977d https://gitlab.gnome.org/GNOME/eog/commit/5cdb1b8 https://gitlab.gnome.org/GNOME/eog/commit/dba0bd4 https://gitlab.gnome.org/GNOME/eog/commit/8e31683 https://gitlab.gnome.org/GNOME/eog/commit/3945bb1
2018-07-11EogScrollView: Implement simple two-pass filteringFelix Riemann1-4/+65
Show the filtered image only after a short time. This should improve the UI's responsiveness quite a bit. https://bugzilla.gnome.org/show_bug.cgi?id=665897 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/88c4f54 https://gitlab.gnome.org/GNOME/eog/commit/8169e0a
2018-07-11EomScrollView: Use better downscaling filterRussell Haley1-4/+4
Replace all instances of CAIRO_FILTER_BILINEAR with CAIRO_FILTER_GOOD. This produces much less aliasing on downscaled images. CAIRO_FILTER_GOOD uses the same method as CAIRO_FILTER_BILINEAR for scale factors greater than 0.75, according to https://bugs.webkit.org/show_bug.cgi?id=147826. Comparison screenshots made with eog 3.18.1: http://imgur.com/a/NaoOs CAIRO_FILTER_BEST is better still, but the the visual difference is almost imperceptible and the performance impact is severe. https://bugzilla.gnome.org/show_bug.cgi?id=665897 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/fbc1128 fixes https://github.com/mate-desktop/eom/issues/96
2018-07-08Make the displayed EomImage a property of EomScrollViewFelix Riemann1-0/+42
Besides the more obvious object orientation it also allows watch the property for changes. Might be useful for plugins. https://bugzilla.gnome.org/show_bug.cgi?id=544068 origin commit: https://git.gnome.org/browse/eog/commit/?h=gnome-3-4&id=4c0b5c8
2018-07-03Enable more Drag&Drop actions when eom is drag sourceFelix Riemann1-1/+2
Enable the link and ask actions allowing to create symlinks in Caja or triggering a menu asking what to do. Also enable the move action, which was not specifically enabled before but still worked anyway. https://bugzilla.gnome.org/show_bug.cgi?id=667076 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/bcf7817
2018-05-07svg: Fix offset coordinates when transforming SVG images on HiDPI displaysVictor Kareh1-5/+6
2018-05-03replace deprecated gdk_flushraveit651-1/+1
2018-05-03fix some -Wincompatible-pointer-types warningsraveit651-1/+1
2018-05-01Scale HiDPI images correctlyVictor Kareh1-21/+19
2018-01-30require GTK+ 3.22 and GLib 2.50monsta1-15/+0
and drop additional checks for min/max GLib versions, it's not needed
2017-04-26EomScrollView: fix override_background deprecated callEmmanuel Pacaud1-15/+17
Do the necessary background drawing in draw callback. taken from: https://git.gnome.org/browse/eog/commit/?id=aea6404
2017-04-26EomScrollView: Replace deprecated gtk_menu_popup functionAlexei Sorokin1-22/+11
2017-04-26EomScrollView: Switch from GtkDeviceManager to GdkSeatFelix Riemann1-2/+11
taken from: https://git.gnome.org/browse/eog/commit/?id=3de58ce
2017-04-23EomScrollView: Switch to GdkRGBA for background and transparent colorsFelix Riemann1-76/+62
This allows passing the colors more or less directly to cairo without having to convert it from and to the GdkColor format. taken from: https://git.gnome.org/browse/eog/commit/?id=823a4cd
2016-11-27EomScrollView: remove style_setmonsta1-14/+0
as done in: https://git.gnome.org/browse/eog/commit/?id=b099142374f277817e1f0c09c9ef743179184be1
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-88/+0
and require libmate-desktop >= 1.17
2016-06-08Fix the zoom and scroll performance. Closes #105.Martin Wimpress1-3/+4
Adapted from https://git.gnome.org/browse/eog/commit/?id=3d1859e321b9dea27e49bab9626044f3f5835420
2016-02-28fix svg rendering that's broken with GTK+3monsta1-1/+3
from https://git.gnome.org/browse/eog/commit/?id=a33950c14d7b8da8e1c6289709022affb910be2a
2015-12-03remove unneeded assert - the code following it is enoughmonsta1-2/+0
from https://git.gnome.org/browse/eog/commit/?id=ee33862e7cede4fd2ff34e4cfcb4192dfdd52b46
2015-10-02EomScrollView: clip all types of images to the visible image areamonsta1-2/+7
previously it wasn't done for SVGs, now it is. taken from https://git.gnome.org/browse/eog/commit?id=3fb558e1861d3d75bca23946fcf3f62c80daeeec
2015-10-02EomScrollView: remove ancient commented out codemonsta1-695/+0
adapted from https://git.gnome.org/browse/eog/commit?id=ef626dc9094d191d55a9cba854380696cadd7627
2015-10-02enable double-buffer in EomScrollViewmonsta1-2/+0
taken from https://git.gnome.org/browse/eog/commit/?id=f0410a55778e719da8f2b62f0e5060bb128f028e it was already committed here in b51631c40b743d224cda4b7fd63e3d60b84218ae but then got lost in 77f6ed0e2a178b9934baee8b846cdd1cc88b2eab
2015-09-06EogScrollView: Use gdk_cursor_new_for_displayraveit651-1/+1
gdk_cursor_new() will be deprecated in GTK+ 3.16 and we have the correct display at hand already anyway. taken from: https://git.gnome.org/browse/eog/commit/?id=ab4e432
2015-09-06Gtk3: Fix GDK deprecationsraveit651-0/+15
- deprecated gdk_window_get_pointer taken from: https://git.gnome.org/browse/eog/commit/?id=c87818d
2015-09-06Gtk3: fix deprecated gtk_vscrollbar_newraveit651-0/+4
taken from: https://git.gnome.org/browse/eog/commit/?id=59e675c
2015-08-31GTK3: Fix deprecated GTK API usageraveit651-0/+10
taken from: https://git.gnome.org/browse/eog/commit/?id=9bd1a07
2015-08-31GTK3: EomScrollView, Convert to GtkGridraveit651-1/+22
GtkTable is deprecated. taken from: https://git.gnome.org/browse/eog/commit/?id=c19345e
2015-08-31GTK3: Don't use deprecated gdk_cursor_unref() for gtk+ >=3.0.0raveit651-0/+4
2015-06-22mispositioned brackets in update_scrollbar_valueslyokha1-1/+1
make high images scroll bad after zoom-ins until hbar appears
2014-12-23use guint for signals arrays, and zero-initialize themMonsta1-1/+2
2014-07-29all: Fix a load of warningsinfirit1-2/+0
Partly based on eog commit 3859553433838e97367e7678f9da4ba2bcc7f973 From Cosimo Cecchi <[email protected]>
2014-07-29Have GSettings use enum for transparency styleinfirit1-31/+3
Based on eog commit e8f2f6ecdd99dc5dce35a044e84738fe73f937e0 From Felix Riemann <[email protected]> ps infirit: eom never had this value in the convert file
2014-07-28Add API docs for EomScrollView's new propertiesinfirit1-1/+13
Based on eog commit c630747b02a9589a993c28d244448cdc291131e8 From Felix Riemann <[email protected]>
2014-07-28Make setting the image view background color work againinfirit1-0/+4
The color was assigned to the parent container and not to the drawing area. That made it draw the default theme background color all the time instead. Based on eog commit 64ffb683343d9af629671ea82c85f91130c3ea7d From Felix Riemann <[email protected]>
2014-07-28Make sure EomScrollView's adjustment values are always correctly setinfirit1-34/+21
Ensures one can only scroll as far as necessary. If one scrolled to far the images's last line/column was used for padding. Eog bug https://bugzilla.gnome.org/show_bug.cgi?id=631710 Based one eog commit b21dd56b9437e53b7ba8abdd96942c1871edc02c From Felix Riemann <[email protected]>
2014-07-28Replace missed GDK_INTERP_NEAREST with CAIRO_FILTER_NEARESTinfirit1-2/+2
Missed in 72dee2d1a95db4dfa335d98358fdf3f294a9fbaa
2014-07-28Add gtk-doc annotations to the new properties in EomScrollViewinfirit1-0/+11
Based on ec93e7f2c26a09a69dbc93241a50badccb0f6b21 From Felix Riemann <[email protected]>
2014-07-27Set transparency style using GSettingsinfirit1-0/+47
Based on eog commit acdafc3563c5c88d3c2d2a25e4602d774dad92fa From Felix Riemann <[email protected]>
2014-07-27Set transparency fill color using GSettingsinfirit1-18/+52
Based on eog commit 2a4e4c30e4a41a1f4b7b452243a56851cdebe442 From Felix Riemann <[email protected]>