Michael Natterer
e8f0c14491
app: use gdk_device_get_position() inetad of gdk_display_get_pointer()
2018-05-20 21:06:29 +02:00
Michael Natterer
76859c3c32
app: make input devices, grabs and therefore generally tools work again
...
- add new "device from event" apparatus that works on GTK+ 3.x
- fix the active device selection mechanism
- use the new device grabbing functions
- make sure we don't process events while we have a grab on
another device
- compensate for some really obscure (and likely broken) behavior
of XI2, it feels like we are the first real users...
2018-05-20 21:06:29 +02:00
Michael Natterer
97df7535a1
app: gimp_device_info_get_device_coords(): workaround for XI2 b0rk
...
for the time being, use gdk_window_get_device_position() instead of
gdk_device_get_axis() for X and Y, which gets rid of subpixel
coordinates, but at least returns values != 0. Also, don't ask
keyboard devices for coordinates.
2018-05-20 21:06:29 +02:00
Michael Natterer
09b9263d5c
app: gimp_print_event(): add the device to the event debug output.
2018-05-20 21:06:29 +02:00
Michael Natterer
f85ceecf28
plug-ins: port filter-pack to GTK+ 3.0, still some warnings left
2018-05-20 21:06:29 +02:00
Michael Natterer
0c00a72b17
app: remove gimp_rgb_get,set_gdk_color()
...
and inline the few lines into their only users.
2018-05-20 21:06:29 +02:00
Michael Natterer
4b322b8326
app: use GdkRGBA instead of GdkColor in some places
2018-05-20 21:06:29 +02:00
Michael Natterer
4b92434bb9
plug-ins: port map-object to GTK+ 3.x
2018-05-20 21:06:29 +02:00
Michael Natterer
b9b39fc32a
configure.ac: use the new GTK_CHECK_BACKEND() macro
...
so GTK+ target detection works again.
2018-05-20 21:06:29 +02:00
Michael Natterer
e522c1dbf6
app: port GimpComboTagEntry to GtkStyleContext
2018-05-20 21:06:29 +02:00
Michael Natterer
590b5ff2a4
themes: document the new stlye properties and indent the CSS files properly
2018-05-20 21:06:28 +02:00
Michael Natterer
107fc72237
app: define all GimpHistogramView colors via style properties and CSS
2018-05-20 21:06:28 +02:00
Michael Natterer
19d8b78a0b
themes: document the new GimpHistogramView property in the theme CSS
2018-05-20 21:06:28 +02:00
Michael Natterer
bbf2c3947b
app: port GimpCurveView to GtkStyleContext
...
reusing the new grid-color property added in the parent class.
2018-05-20 21:06:28 +02:00
Michael Natterer
a4b8dafe61
app: add style property and default CSS for GimpHistogramView's grid-color
2018-05-20 21:06:28 +02:00
Michael Natterer
88a96cf3fb
app: add gimp_get_style_color() to simplify GdkRGBA style property lookup
2018-05-20 21:06:28 +02:00
Michael Natterer
c4d721e06d
app: port GimpCellRendererDashes to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
64d80e9aa4
Port cell renderers to gtk_cell_renderer_get_state()
2018-05-20 21:06:28 +02:00
Michael Natterer
9244cbe898
app: port GimpOverlayChild to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
f5c3bb00c2
app: remove call to gtk_widget_style_attach() from GimpOverlayBox
2018-05-20 21:06:28 +02:00
Michael Natterer
1cd367845d
app: port GimpColorFrame away from GtkStyle, using a new style property
2018-05-20 21:06:28 +02:00
Michael Natterer
dfa38fc26a
app: remove obsolete device checks from GimpToolbox
...
The new code doesn't actually work properly, but the old one was
clearly bogus with GTK+ 3.x.
2018-05-20 21:06:28 +02:00
Michael Natterer
912128fe2e
app: when checking for a device change, check the event's source device
...
because the events we receive always come from either master or
floating devices, but never from a slave source device.
2018-05-20 21:06:28 +02:00
Michael Natterer
9c9ba4895d
app: always ask the master device for its axes or state
2018-05-20 21:06:28 +02:00
Michael Natterer
5d1ab3e5f9
app: port GimpTagEntry to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
74564dfef3
app: port GimpHistogramView to GtkStyleContext
...
Locally added shade() and mix() utility functions which use
GtkSymbolicColor. Will move them to a better place once they are
needed elsewhere.
2018-05-20 21:06:28 +02:00
Michael Natterer
f3d65fdb59
Implement GtkWidget::style_updated() instead of ::style_set()
2018-05-20 21:06:28 +02:00
Michael Natterer
dcb991c6c7
app: port GimpThumbBox to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
afaa31bb33
app: use gtk_widget_override_font() instead of modify_font()
2018-05-20 21:06:28 +02:00
Michael Natterer
dada25b14e
app: port GimpToolEditor to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
3b37a7a1c8
app: port GimpDockWindow to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
cc0b48d710
libgimpwidgets: move all GimpColorProfileStore members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
dc529eb3d2
plug-ins: don't use style->black and style->white
2018-05-20 21:06:28 +02:00
Michael Natterer
3374e32264
app: port GimpPaletteView to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
132485779e
app: port GimpStrokeEditor to GtkStyleContext
2018-05-20 21:06:28 +02:00
Michael Natterer
d9171ef627
libgimpwidgets: move all GimpMemsizeEntry members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
72ad56006b
app: don't use style->black and style->white
2018-05-20 21:06:28 +02:00
Michael Natterer
6e84d584f4
libgimpwidgets: move all GimpEnumLabel members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
86603f30b9
libgimpwidgets: move all GimpColorSelection members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
7eac782a15
libgimpwidgets: move GimpColorProfileComboBox::dialog to private
2018-05-20 21:06:28 +02:00
Michael Natterer
f20b2d1a43
libgimpwidgets: move all GimpColorScale members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
0e35af2723
libgimpwidgets: move all GimpColorNotebook members to a private struct.
2018-05-20 21:06:28 +02:00
Michael Natterer
9c15020c41
libgimpwidgets: add padding
2018-05-20 21:06:28 +02:00
Michael Natterer
455f2e2e38
libgimpwidgets: move all GimpColorHexEntry members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
c32681f4c3
libgimpwidgets: move all GimpColorDisplayStack members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
79dd44fb18
libgimpwidgets: move all GimpColorDisplay members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
db6c2ea658
libgimpwidgets: move all GimpBrowser members to a private struct
...
The newly added API is ugly and will change.
2018-05-20 21:06:28 +02:00
Michael Natterer
fd45ea2051
libgimpwidgets: move all GimpChainButton members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
482be36a00
libgimpwidgets: move all GimpCellRendererToggle members to a private struct
2018-05-20 21:06:28 +02:00
Michael Natterer
651e313f49
libgimpwidgets: move all GimpColorButton members to a private struct
2018-05-20 21:06:28 +02:00