summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
Commit message (Collapse)AuthorAgeFilesLines
* viewport: Tweak docsMatthias Clasen2021-03-111-3/+2
|
* viewport: Convert docsMatthias Clasen2021-03-111-23/+33
| | | | Convert link format, add property annotations. General cleanup.
* viewport: Small cleanupTimm Bäder2021-01-031-4/+2
| | | | No need to check for visibility before calling gtk_widget_measure().
* docs: Add "Accessibility" section to various widgetsEmmanuele Bassi2020-11-121-1/+5
| | | | | There are a few widgets that gained an accessible role, which means adding an "Accessibility" section in their description.
* a11y: Mark more containers as structural elementsEmmanuele Bassi2020-11-111-0/+1
| | | | | Widgets that just provide grouping and layout to other widgets should not be relevant to the accessible tree.
* Remove unneeded gtkstylecontext.h includesTimm Bäder2020-10-141-1/+0
|
* viewport: Remove unused framenana-42020-08-221-1/+0
| | | | We've always removed this with Adwaita.
* Drop style class definesMatthias Clasen2020-08-141-1/+1
| | | | | | We document the supported style classes by name, not by macro name, and these macros don't really add any value. Drop them for GTK 4.
* Avoid refering to old GtkContainer API in the docsTimm Bäder2020-08-011-8/+0
|
* Remove ATKEmmanuele Bassi2020-07-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To build a better world sometimes means having to tear the old one down. -- Alexander Pierce, "Captain America: The Winter Soldier" ATK served us well for nearly 20 years, but the world has changed, and GTK has changed with it. Now ATK is mostly a hindrance towards improving the accessibility stack: - it maps to a very specific implementation, AT-SPI, which is Linux and Unix specific - it requires implementing the same functionality in three different layers of the stack: AT-SPI, ATK, and GTK - only GTK uses it; every other Linux and Unix toolkit and application talks to AT-SPI directly, including assistive technologies Sadly, we cannot incrementally port GTK to a new accessibility stack; since ATK insulates us entirely from the underlying implementation, we cannot replace it piecemeal. Instead, we're going to remove everything and then incrementally build on a clean slate: - add an "accessible" interface, implemented by GTK objects directly, which describe the accessible role and state changes for every UI element - add an "assistive technology context" to proxy a native accessibility API, and assign it to every widget - implement the AT context depending on the platform For more information, see: https://gitlab.gnome.org/GNOME/gtk/-/issues/2833
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-2/+2
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Change coordinate translation apis to take doublesMatthias Clasen2020-05-171-3/+3
| | | | | | Change gtk_widget_translate_coordinates and gtk_native_get_surface_transform to operate on doubles. Update all callers.
* Remove lots of focus vfuncsMatthias Clasen2020-05-111-3/+0
| | | | | In many cases, the default widget vfuncs work just fine, combined with setting focusable.
* viewport: Use dispose instead of destroyMatthias Clasen2020-05-051-33/+24
| | | | The destroy vfunc is going away.
* viewport: Derive from GtkWidgetMatthias Clasen2020-05-041-32/+103
| | | | | | | | | | We want to remove GtkBin and GtkContainer as they don't provide much useful functionality anymore. This requires us to move get_request_mode and compute_expand down. We have to implement GtkBuildable in order to keep the <child> element working for viewports in ui files. See #2681
* viewport: Add a child propertyMatthias Clasen2020-05-041-22/+73
|
* viewport: Drop the Private structMatthias Clasen2020-04-261-51/+31
|
* Assorted documentation fixesMatthias Clasen2020-04-201-0/+17
|
* viewport: Add GtkViewport:scroll-to-focusMatthias Clasen2020-04-181-2/+174
| | | | | | And implement this property by listening for focus changes, and updating the adjustments. This is a replacement for setting focus adjustments on containers.
* viewport: Drop shadow-typeMatthias Clasen2020-04-171-67/+2
| | | | | | | The viewport draws a frame at the same place as the scrolled window, so there is really no need to have that ability in both. Just drop the frame from viewports.
* Rename gtk_widget{get,set,has}_style_class to _css_classTimm Bäder2020-02-071-3/+3
| | | | We want to use css instead of style everywhere now.
* Start using GtkWidget's new style class APITimm Bäder2020-02-071-12/+4
|
* Remove gtk_widget_get/set_has_surfaceMatthias Clasen2019-05-281-1/+0
| | | | | These serve no purpose anymore - widgets don't have surfaces, unless they're a GtkNative.
* viewport: Make finalMatthias Clasen2019-05-261-0/+13
| | | | No need to derive from it.
* gtk: Don't include gtkstylecontext.h from gtkcsstypesprivate.hBenjamin Otte2019-03-191-0/+1
| | | | And make sure it's included everywhere it's needed.
* viewport: Use gtk_widget_set_overflow()Benjamin Otte2019-02-081-39/+1
|
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-6/+8
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* snapshot: Redo debug messagesBenjamin Otte2018-04-241-2/+1
| | | | | Instead of every snapshot function having debug messages, have an explicit gtk_snapshot_push_debug() function that appends a debug node.
* viewport: Remove useless importTimm Bäder2018-04-211-1/+1
| | | | Just a debugging remnant
* viewport: Remove outdated commentTimm Bäder2018-04-211-1/+0
|
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-6/+4
| | | | As the clip is no longer needed, get rid of it.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* viewport: Remove priv pointerTimm Bäder2018-03-061-21/+21
|
* viewport: Remove some unused includesTimm Bäder2018-01-171-2/+0
|
* Remove some more gtk_widget_get_content_size usesTimm Bäder2017-12-041-6/+7
|
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* viewport: Implement clipping for pickingBenjamin Otte2017-11-051-0/+20
| | | | | | | | This is necessary because picking is no longer automatically constrained to a widget's box. So all clipping widgets need to constrain their clipping, too. This patch does that for GtkViewport only.
* viewport: Simplify child allocationTimm Bäder2017-10-311-2/+2
| | | | allocation->x and allocation->y are always 0
* widget: Remove gtk_widget_set_redraw_on_allocTimm Bäder2017-08-091-1/+0
| | | | | | | Since gtk+ draws more than the widget and allocates more size to it than it knows about, this flag doesn't work anymore. Removing it (or setting it to TRUE for widgets that used to set it to FALSE) fixes drawing invalidation when these widgets get allocated a new size.
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-10/+11
| | | | | | | | | | | Since setting a clip is mandatory for almost all widgets, we can as well change the size-allocate signature to include a out_clip parameter, just like GtkCssGadget did. And since we now always propagate baselines, we might as well pass that one on to size-allocate. This way we can also make sure to transform the clip returned from size-allocate to parent-coordinates, i.e. the same coordinate space priv->allocation is in.
* Replace a few get_content_allocation calls with get_content_sizeTimm Bäder2017-07-191-16/+9
| | | | | The position of the content allocation is almost never relevant since it's 0/0 for measure, size_allocate and snapshot.
* viewport: Remove bin_windowTimm Bäder2017-07-191-118/+5
|
* viewport: Remove gadgetTimm Bäder2017-07-191-141/+71
|
* gtkviewport: Remove view windowCarlos Garnacho2017-05-251-21/+6
| | | | It is not really necessary for clipping nor receiving events.
* gtk: Mass delete all GtkWidget event mask APICarlos Garnacho2017-05-251-4/+2
| | | | | | | | | | We now rely on toplevels receiving and forwarding all the events the windowing should be able to handle. Event masks are no longer a way to determine whether an event is deliverable ot a widget. Events will always be delivered in the three captured/target/bubbled phases, widgets can now just attach GtkEventControllers and let those handle the events.
* snapshot: Redo pop() APIBenjamin Otte2017-01-131-1/+1
| | | | | | | | gtk_snapshot_pop() => removed gtk_snapshot_pop_and_append() => gtk_snapshot_pop() So now there is no way to get a rendernode out of the snapshotting API until you gtk_snapshot_finish().
* Avoid some more type checks for internal callsAlexander Larsson2017-01-111-1/+1
|
* viewport: Remove API to query GdkWindowsBenjamin Otte2017-01-081-36/+0
|
* gadget: Remove gtk_css_gadget_draw()Benjamin Otte2016-12-201-1/+0
| | | | | | | And with it, remove the draw func from custom gadgets, that has been NULL everywhere. All gadgets are snapshot now.