summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
Commit message (Collapse)AuthorAgeFilesLines
* Drop the can-default propertyMatthias Clasen2019-04-281-6/+0
| | | | | | It was added at a time when default buttons had a very large external border that would disrupt aligment. Not a problem nowadays.
* widget: Drop gtk_widget_grab_defaultMatthias Clasen2019-04-281-2/+0
| | | | | | | | The default widget is mostly a dialog concept, and does not really need this generic api. If you need to mark a widget as default, use gtk_window_set_default() directly.
* Add gtk_widget_activate_defaultMatthias Clasen2019-04-281-0/+3
| | | | | This is a convenience wrapper for activating the "default.activate" action.
* widget: Add a convenience api to activate actionsMatthias Clasen2019-04-281-0/+5
| | | | | | Since actions are used increasingly, we should have a convenient way to trigger an action in the context of a widget.
* widget: Drop gtk_widget_set_parent_surfaceMatthias Clasen2019-04-241-6/+0
| | | | | And the getter, too. Widgets no longer have extra surfaces that could serve as parent surfaces.
* Rename thingsMatthias Clasen2019-04-081-3/+3
| | | | | Rename the can-pick property to can-target, and redo the pick flags with more descriptive names.
* Add a flags argument to gtk_widget_pickMatthias Clasen2019-04-071-3/+4
| | | | | | | This will be used to let the inspector and other users pick insensitive widgets again. For now, update all callers to pass no flags, preserving the current behavior.
* widget: Drop the pick vfuncMatthias Clasen2019-04-071-4/+0
| | | | | The way to influence picking is to implement contains, we no longer use the pick vfunc.
* Drop child property related apisMatthias Clasen2019-04-051-16/+0
| | | | | We no longer have any child properties in our containers, so drop the infrastructure for it.
* Widget: Don't refer to the old get_preferred_*()Daniel Boles2019-03-301-2/+2
| | | | measure() replaced get_preferred_height() and get_preferred_width().
* Hook GtkLayoutManager into GtkWidgetEmmanuele Bassi2019-03-261-0/+6
| | | | | | We delegate the size request mode, the measuring, and the allocation of a widget through a GtkLayoutManager instance, if one has been attached to the widget; otherwise, we fall back to the widget's own implementation.
* Make gtk_widget_get_focus_child publicMatthias Clasen2019-03-161-0/+3
| | | | | It doesn't really make sense to have only the setter, but not the getter public.
* Drop gtk_widget_send_focus_changeMatthias Clasen2019-03-161-3/+0
| | | | Replace this with gtk_widget_set_has_focus + gtk_widget_event.
* transform: Move to GSKBenjamin Otte2019-03-041-1/+1
| | | | The renaming of the prefix makes this a large patch.
* Document that root and unroot must chain upMatthias Clasen2019-02-231-3/+2
| | | | I overlooked this at first.
* widget: Drop ::hierarchy-changedMatthias Clasen2019-02-231-4/+0
| | | | | It is no longer used and has been replaced by the root and unroot vfuncs.
* widget: Remove ::event leftoversMatthias Clasen2019-02-221-4/+0
| | | | | The signal is long gone, no need for this unused vfunc anymore.
* Make gtk_widget_set/get_can_pick publicMatthias Clasen2019-02-211-0/+7
| | | | | This is a generally useful property to make widgets 'transparent' for input purposes.
* widget: Make gtk_widget_allocate() take a GtkTransformBenjamin Otte2019-02-211-1/+1
| | | | | We can reason about GtkTransform way better - and determine its category or do equality checks.
* widget: Mark compute functions as G_GNUC_WARN_UNUSED_RESULTBenjamin Otte2019-02-201-3/+3
| | | | | Lots of code does not error-check these functions, and when we add CSS transforms, they will start failing. And we want people to check that.
* widget: Remove gtk_widget_get_allocated_size()Benjamin Otte2019-02-191-4/+0
| | | | | Use gtk_widget_get_allocated_width/height in the only user (GtkStack), even though that isn't 100% correct.
* widget: Add gtk_widget_compute_point()Benjamin Otte2019-02-191-7/+12
| | | | It's the replacement for gtk_widget_translate_coordinates()
* widget: Add gtk_widget_compute_transformTimm Bäder2019-02-191-0/+4
|
* widget: Save transform as matrixTimm Bäder2019-02-161-0/+6
| | | | | | The transform matrix is a translation matrix from the parent's origin to the widget origin. We will later allow more transformations than just translations.
* widget: Add a GtkWidget::root property and gtk_widget_get_root()Benjamin Otte2019-02-151-2/+5
| | | | | The property is just for API completeness, the getter is meant to replace toplevel usage.
* widget: Add GtkWidgetClass:root and :unroot functionsBenjamin Otte2019-02-151-0/+5
| | | | | They get added whenever a widget gets added into a hierarchy with a root widget.
* widget: Add gtk_widget_set_overflow()Benjamin Otte2019-02-081-0/+6
| | | | | This adds a simple abilities for widget implementations to clip their content. See future commits for users of this.
* Remove vestigial ::event supportMatthias Clasen2019-01-261-2/+0
| | | | The signal is gone, no need to keep the vfunc around.
* Remove gtk_widget_intersectTimm Bäder2018-11-291-5/+0
| | | | | It's been broken for quite a while now and doesn't make sense anymore these days.
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-1/+2
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* widget: Add gtk_widget_observe_controllers()Benjamin Otte2018-09-161-0/+2
| | | | | This mirrors gtk_widget_observe_children() - just that it observes the controllers, not the children.
* widget: Add gtk_widget_observe_children()Benjamin Otte2018-09-161-0/+2
| | | | | This creates a listmodel that tracks a widget's children. Doing so turns adding/removing children from O(1) to O(N) though, so use with caution.
* gdk: Rename GdkDragContext to GdkDragMatthias Clasen2018-07-021-6/+6
| | | | | | | This is to go along with the newly introduced GdkDrop. This commit includes the necessary updates to the X11, Wayland and Broadway backends. Other backends have to be updated separately.
* widget: Remove time argument from drag_data_get() vfuncBenjamin Otte2018-06-181-2/+1
|
* dnd: Make drag-motion and drag-drop signals use GdkDropBenjamin Otte2018-06-181-6/+4
|
* dnd: Make drag-data-received use a GdkDropBenjamin Otte2018-06-181-3/+2
|
* widget: Make GtkWidgetClass::drag_leave() take a GdkDropBenjamin Otte2018-06-181-2/+1
| | | | Drag Contexts are on their way out!
* Drop the ::key-press/release-event signalskill-key-eventsMatthias Clasen2018-05-211-6/+0
| | | | | These are the last event-type specific signals, we are just relying on the generic ::event signal now.
* Remove key-press-event from more docsMatthias Clasen2018-05-191-5/+2
| | | | This signal will be going away, so stop mentioning it so much.
* Fixes to the gtk docsMatthias Clasen2018-05-051-3/+3
|
* widget: add shortcut to gtk_widget_set_child_visibleTimm Bäder2018-05-011-1/+1
| | | | | So we don't do unnecessary work when just setting priv->child_visible to the same value again.
* widget: Expose gtk_widget_add_controller()Benjamin Otte2018-04-261-0/+6
| | | | .. and gtk_widget_remove_controller().
* widget: Remove gtk_widget_set_realized()Benjamin Otte2018-04-111-3/+0
| | | | Everybody chains up now.
* widget: Fix variable namesBenjamin Otte2018-04-051-1/+1
| | | | Stop docs build from complaining
* widget: Add gtk_widget_compute_bounds()Benjamin Otte2018-04-051-0/+5
| | | | | The first in a set of functions intended to query widget coordinates from another widget's coordinate system.
* widget: Remove GtkWidget.draw vfuncBenjamin Otte2018-04-051-3/+0
| | | | | | Widgets are exclusively snapshot now. The draw signal still exists.
* widget: Remove gtk_widget_draw()Benjamin Otte2018-04-051-3/+0
| | | | | | | | | If you want to draw a widget to cairo today, you create a widget paintable, snapshot it to a render node and then draw the render node to cairo. And yes, this is that complicated on purpose. Don't draw widgets to Cairo.
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-4/+2
| | | | As the clip is no longer needed, get rid of it.
* widget: Don't keep track of clip anymore.Benjamin Otte2018-04-051-4/+0
| | | | It's not used anywhere, so why would we need it?
* gtk: Remove gtk_widget_queue_draw_region()Benjamin Otte2018-04-051-9/+0
| | | | | | ... and gtk_widget_queue_draw_area(). They don't doi anything anymore.