Benjamin Otte
cf2d549e92
widget: Implement gtk_widget_pick()
...
... and use it.
2017-11-05 05:13:17 +01:00
Benjamin Otte
2d959553e9
image: Add the ability to set textures
...
This also adds it to all other places that use the same infrastructure:
GtkEntry and GtkCellRendererPixbuf
2017-11-05 00:07:17 +01:00
Benjamin Otte
b38a4cb824
widget: Export gtk_widget_set_cursor()
...
Widgets can now set their favorite cursor using public API.
This is very necessary because all cursor-setting APIs are still
setting it on their GdkWindow, which by now is the toplevel - oops.
2017-11-04 01:00:27 +01:00
Timm Bäder
8f55647fbb
widget: Add get_width() and get_height()
2017-11-02 11:54:06 +01:00
Benjamin Otte
d88c441764
widget: Add gtk_widget_contains()
2017-11-01 19:46:59 +01:00
Matthias Clasen
a27bfaa0a3
Drop the GDK_DPI_SCALE variable
...
It complicates the dpi handling, and was really just a workaround
for non-dpi aware applications when hidpi support was first introduced.
2017-10-31 18:37:54 -04:00
Benjamin Otte
ccd52a410e
settings: Remove gtk_settings_get_for_screen()
...
All users of it are gone now.
2017-10-31 08:25:37 +01:00
Benjamin Otte
648d040395
widget: Remove gtk_widget_get_screen()
...
Replace the remaining users with "correct" code that does not need that
function anymore.
2017-10-31 08:25:37 +01:00
Benjamin Otte
b9504a547a
mountoperation: Move from screen to display
2017-10-31 08:25:37 +01:00
Benjamin Otte
07164e098a
window: Turn gtk_window_set_screen() into gtk_window_set_display()
...
And have a priv->display instead of a priv->screen.
Includes turning gtk_menu_set_screen() into gtk_menu_set_display(),
because that function just forwards to its window.
2017-10-31 08:25:37 +01:00
Benjamin Otte
c8986e66ce
window: Remove gtk_window_get_screen()
...
It's identical to gtk_widget_get_screen(), just use that one.
2017-10-31 04:33:54 +01:00
Benjamin Otte
1c36c6ed4d
widget: Remove gtk_widget_has_screen()
...
All widgets always have a screen (or display).
2017-10-31 04:33:11 +01:00
Benjamin Otte
ecd5b399a4
icontheme: Use GdkDisplay instead of GdkScreen
2017-10-31 03:05:55 +01:00
Benjamin Otte
9151e0b9f5
stylecontext: Port to use display instead of screen
2017-10-31 03:05:54 +01:00
Benjamin Otte
59cfd56365
settings: Don't store the screen in the settings object
...
Screens are going away.
Code that still needs the screen just gets it from the display.
2017-10-31 00:42:32 +01:00
Matthias Clasen
a1a5f556cb
Some documentation updates
...
Document gtk_settings_get_for_display instead of for_screen.
2017-10-30 18:59:41 -04:00
Matthias Clasen
5bdc67f3f6
Drop gtk_cell_renderer_get_size
...
This function has been deprecated since 3.0, time to drop it.
2017-10-25 22:27:19 -04:00
Matthias Clasen
4f6cee3ee3
Mention pixbufs in the migration guide
...
They are being phased out.
2017-10-23 18:33:15 +02:00
Alexander Larsson
96b04836d8
Drop all uses of GdkPixbufAnimation in the gtk APIs
...
These are basically animated gifs, and don't fit well in how
modern things animate.
2017-10-23 16:56:49 +02:00
Alexander Larsson
2b194089dd
GtkImage: Drop support for storing pixbufs
...
This drops the pixbuf property and the pixbuf getters. We keep
gtk_image_new/set_from_pixbuf, but these are small helpers that
immediately convert to a surface, and there is no way to later get
back the pixbuf you passed in.
The from file/resource codepaths are also changed to load a surface
instead of a pixbuf.
2017-10-23 15:28:33 +02:00
Matthias Clasen
493f5d6b18
dnd: Add more surface apis
...
The new function, gtk_drag_source_set_icon_surface, is for setting
a drag source icon without using GdkPixbuf.
2017-10-23 14:16:31 +02:00
Alexander Larsson
6f8644ad25
GtkEntry: Use surfaces, not pixbufs for bitmapped icons
2017-10-23 13:45:25 +02:00
Matthias Clasen
02db8ccd89
icon theme: Add a texture cache
...
Return cached textures for icons. This lets us avoid duplicate
texture uploads for icons whose surfaces we already cache.
2017-10-23 08:07:35 +02:00
Matthias Clasen
e584a70820
Drop gtk_drag_set_icon_pixbuf from the docs too
...
It no longer exists.
2017-10-23 06:21:59 +02:00
Matthias Clasen
8b84df422b
Drop gtk_recent_info_get_icon
...
We are moving away from pixbuf-based apis.
Use gtk_recent_info_get_gicon instead.
2017-10-23 06:21:59 +02:00
Matthias Clasen
b940872005
Add gtk_image_get_surface to the docs
...
This was missed.
2017-10-23 05:59:30 +02:00
Matthias Clasen
b775238bc4
Document new clipboard apis
...
These are surface-based replacements for some pixbuf apis.
2017-10-23 05:58:54 +02:00
Matthias Clasen
65408a0b0c
Document new selection apis
...
Document the new cairo surface-based apis for GtkSelection.
2017-10-23 05:58:54 +02:00
Matthias Clasen
366fb44d20
Fix docs build
...
this include file can't be found, so just do without it.
2017-10-09 21:58:50 -04:00
Matthias Clasen
07b1030438
Towards a working docs build
...
Add back images, content_files and expand_content files.
2017-10-09 19:36:12 -04:00
Matthias Clasen
6bfdd772a5
Towards a working docs build
...
Pass mode: 'none' so escaping of <> in doc comments works.
2017-10-09 19:07:05 -04:00
Daniel Boles
29d40196e6
docs: css-properties: Fix wrongly repeated colour
2017-09-29 18:14:07 +01:00
Matthias Clasen
dd4361a638
Rename enable-documentation and enable-man-pages options
...
You can now disable the documentation build with
-Ddocumentation=false and -Dman-pages=false.
2017-09-06 11:10:55 -04:00
Matthias Clasen
15edfbbc88
Rename and document the enable-gir option
...
You can disable introspection now with -Dintrospection=false.
2017-09-06 09:53:34 -04:00
Matthias Clasen
b5e00d36f0
Allow building without tests and demos
...
This is meant to cut down build time in flatpak and similar
situations. Since it produces technically incomplete builds,
we list these options in the status output at the end of
the meson run.
2017-09-06 09:53:20 -04:00
Daniel Boles
b5afe75700
docs: css-overview: Don’t recommend broken syntax
...
Using this produced warnings about the Pango syntax of <Family> <size>
being deprecated, and the size being invalid due to no unit specified.
Also, that multi-word font family presumably wouldn’t work as expected.
2017-09-03 12:26:07 +01:00
Javier Jardón
bc3968d2ff
gtk/gtkshow: Remove deprected gtk_show_uri()
2017-08-28 23:47:36 +01:00
Daniel Boles
5f593ff306
getting_started: Sync filenames & section headings
...
The order of Examples 3 and 4 was swapped, so the headings updated
themselves, but the filenames were left reflecting the old order.
https://bugzilla.gnome.org/show_bug.cgi?id=786553
2017-08-22 14:15:46 +01:00
Timm Bäder
b24535ea75
container: Remove gtk_container_propagate_draw
...
It's superseded by gtk_widget_snapshot_child now.
2017-08-21 12:30:42 +02:00
Emmanuele Bassi
9957dd59b0
docs: Update references to Meson CLI utilities
...
The separate `mesonconf` and `mesontest` binaries have been deprecated,
in favour of `meson` sub-commands.
2017-08-15 14:08:57 +01:00
Emmanuele Bassi
0803ee2df4
docs: Update the 'building gtk' guide
...
Clean up for Meson.
2017-08-14 22:23:09 +01:00
Emmanuele Bassi
391d1a04ec
Drop Autotools build
...
We are officially switching to Meson as the default build system for
GTK+.
2017-08-14 22:23:09 +01:00
Timm Bäder
a8a755e5cd
widget: Remove gtk_widget_set_redraw_on_alloc
...
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.
2017-08-09 16:26:26 +02:00
Matthias Clasen
80afb8c90a
Fix docs build
2017-08-07 22:21:22 -04:00
Daniel Boles
d6e4ce127a
docs: gtk/running: Document the GTK_CSD env var
...
It was not documented before.
https://bugzilla.gnome.org/show_bug.cgi?id=778791#c1
2017-08-06 17:44:18 +01:00
Benjamin Otte
47fe08528d
eventbox: Remove
2017-08-02 16:59:09 +01:00
Timm Bäder
b71f644cf5
eventbox: Remove visible-window property
...
The GdkWindow that was supposed to back it is gone.
2017-07-27 21:53:42 +02:00
Timm Bäder
5720f2a845
widget: Make _set_clip private
...
We don't need this anymore since clips are now reported in
size-allocate.
2017-07-19 21:27:16 -04:00
Timm Bäder
36ab70ddf5
widget: Add baseline and out_clip parameters to size-allocate
...
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.
2017-07-19 21:27:16 -04:00
Timm Bäder
0ebd8840a8
widget: Remove gtk_cairo_transform_to_window
...
Useless in a world without windows and cairo.
2017-07-19 21:27:15 -04:00
Timm Bäder
c4f6cea111
fix a few documentation problems
2017-07-19 21:27:15 -04:00
Timm Bäder
8dc5e13e8c
iconview: Remove bin_window
2017-07-19 21:27:14 -04:00
Timm Bäder
e36ddfec17
Remove all widget style property code
2017-07-19 21:27:14 -04:00
Timm Bäder
a73d3418bc
layout: Remove bin_window
2017-07-19 21:27:14 -04:00
Timm Bäder
4a4897a9b6
paned: Reimplement handle dragging
2017-07-19 21:27:13 -04:00
Timm Bäder
b9f70b473c
scrollbar: Add new API to gtk4-sections.txt
...
and update the css node docs
2017-07-19 21:27:13 -04:00
Timm Bäder
34af3d3940
accellabel: Inherit from GtkWidget
...
Use a box and 2 labels.
2017-07-19 21:27:13 -04:00
Timm Bäder
9ab43dfe9e
spinbutton: Add accessors for (max-)width-chars
2017-07-19 21:27:12 -04:00
Timm Bäder
2cedf1be9c
widget: Remove gtk_widget_set_allocation
2017-07-19 21:27:12 -04:00
Timm Bäder
f736b071b4
spinbutton: Add text property
2017-07-19 21:27:11 -04:00
Daniel Boles
d7b175a3fb
css-overview: Don’t document deleted pseudoclasses
...
Commit b52966a318
stopped the parser from
handling various deprecated pseudoclasses, which were aliases of others,
but it did not update the documentation to reflect that they were gone.
2017-06-22 23:56:44 +01:00
Daniel Boles
6eb58fa67b
css-overview: Fix typo “{with=>which} is disabled”
2017-06-22 20:40:06 +01:00
Matthias Clasen
f135b2527f
center box: complete the baseline support
...
When there is no externally allocated baseline, we should
do the same thing that GtkBox does, and determine one from
the children that want baseline alignment.
This commit adds a GtkCenterBox::baseline-position property
with setters and getters.
2017-06-10 09:14:16 -04:00
Matthias Clasen
e936a35d66
Make GtkCenterBox public
...
It provides functionality that GtkBox used to have,
and is generally useful.
2017-06-04 21:20:27 -04:00
Carlos Garnacho
d9d0c56eb7
gtktoolitem: Remove gtk_tool_item_set_use_drag_window()
...
This API call is not necessary anymore, since it's no longer necessary
to receive events.
2017-05-25 16:25:59 +02:00
Carlos Garnacho
a72404dd5a
gtk: Mass delete all GtkWidget event mask API
...
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.
2017-05-25 16:25:58 +02:00
Carlos Garnacho
02932bc406
gtkgesture: Drop GdkWindow checks
...
Those are now needless and wrong, as we get guarantees that handled
events will contain widget-relative coordinates. A side effect is
that these events are very possibly not explicitly sent to the
GdkWindow that implementations expect, any extra checks performed
through gtk_gesture_set_window() will be wrong, so the function has
been dropped entirely.
2017-05-25 16:25:58 +02:00
Matthias Clasen
c05b317b1e
Fix the docs build
...
gtk-doc behavior changed, it seems, and these options now
cause the build to break.
2017-05-22 17:35:58 -04:00
Emmanuele Bassi
db2c80d9db
meson: Generate man pages for the installed tools
2017-05-05 11:35:31 +01:00
Timm Bäder
3d21128dbb
Remove gtk_widget_get_preferred_*
...
They are unnecessary now that we have gtk_widget_measure.
2017-05-05 11:18:25 +02:00
Emmanuele Bassi
8acf5a8174
build: Update autotools for API reference changes
2017-05-03 15:10:58 +01:00
Emmanuele Bassi
c984c3b55e
build: Initial attempt at fixing the docs build
...
We need to reference the types file directly, because it won't be copied
into the builddir by Meson — except for GTK, which needs to generate its
own types file using configure_file().
2017-05-03 15:10:57 +01:00
Emmanuele Bassi
ba87e857e2
build: Generate the API references (WIP)
...
Still a work in progress.
2017-05-03 15:10:57 +01:00
Matthias Clasen
92b0d2e8ea
Remove GtkWindow::hide-titlebar-when-maximized
...
This was only every implemented under X11, and with CSD,
this is clearly in the application realm. We should not
pretend that we can support it on the toolkit level.
https://bugzilla.gnome.org/show_bug.cgi?id=775061
2017-05-01 13:26:46 -04:00
Timm Bäder
bb1deaafa4
migration guide: Extend GtkBox child property section
...
Mention the removed expand and fill child properties as well.
2017-04-28 17:14:10 +02:00
Timm Bäder
db4b1d28f5
label: Remove angle property
2017-04-25 20:30:37 +02:00
Timm Bäder
fb927d1993
box: Remove center child
2017-04-25 20:30:37 +02:00
Timm Bäder
ba363fbb71
widget: Add gtk_widget_insert_before/after
...
To insert a widget into the widget tree before or after a child widget
of the soon-to-be parent.
2017-04-25 20:29:02 +02:00
Timm Bäder
d5c6692104
gtk4-sections: Add missing GtkWidget child/sibling accessors
2017-04-24 14:15:57 +02:00
Jeremy Bicha
fc70267158
docs: Use https for more links
...
https://bugzilla.gnome.org/show_bug.cgi?id=780878
2017-04-03 16:02:22 -04:00
Timm Bäder
0ce9f26dc5
window: Remove has-toplevel-focus property
...
Since embedded toplevels don't exist anymore, :has-toplevel-focus is
equivalent to :active.
2017-03-31 09:50:39 +02:00
Timm Bäder
6353433f0e
Make gtk_container_set_focus_child private
2017-03-31 09:50:39 +02:00
Timm Bäder
0d480a3eb0
Remove gtk_container_get_focus_child
2017-03-31 09:50:39 +02:00
Matthias Clasen
e70380a4dd
Document GTK_INSPECTOR_RENDERER
...
Also add GTK_INSPECTOR_DISPLAY to the docs at the same time.
2017-03-30 09:15:22 -04:00
Daniel Boles
a2b72f89e2
css-overview: Fix inconsistent British English use
2017-03-18 12:31:29 +00:00
Daniel Boles
c3892874cb
css-overview: Fix+Explain color expr number ranges
...
Last try, promise. They don’t all use 0 to 1. We should probably explain
the effects too. Hopefully this manages that while not being too verbose
2017-03-18 01:17:14 +00:00
Daniel Boles
e5ae946be3
css-overview: Elaborate how color expressions work
2017-03-17 23:56:25 +00:00
Daniel Boles
a69083c95e
docs/css-overview: Fix color functions’ arg orders
...
shade/alpha/mix() take colour(s) and a number that is the ratio by which
to transform them. It was written here that these shall be passed in the
order (number, colour). That was wrong: they must be passed in the order
(colour[s], number) to work, and for the Inspector not to flag an error.
2017-03-17 23:31:41 +00:00
Murray Cumming
158015be6c
docs: Remove mentions of gtk_init_with_args().
...
Because it has been removed: See commit 7e8eb3ddcd
2017-03-17 21:12:12 +01:00
Timm Bäder
f860ff8647
widget: Remove get_valign_with_baseline
...
This only existed for backwards compat reasons which aren't interesting
for gtk4.
2017-03-05 15:18:32 +01:00
Daniel Boles
385e1236a7
docs/css-properties: Fix info on 3value properties
...
https://developer.mozilla.org/en/docs/Web/CSS/margin#Values
2017-02-17 15:18:24 +00:00
Chris Martin
705fc62840
getting-started: typo tie->the
...
https://bugzilla.gnome.org/show_bug.cgi?id=775864
2017-02-05 20:02:10 +00:00
Timm Bäder
2aea8dfee9
togglebutton: Move :inconsistent to GtkCheckButton
2017-01-30 18:11:00 +01:00
Timm Bäder
66d584ce6e
togglebutton: Move :draw-indicator property to GtkCheckButton
...
It's not used in GtkToggleButton at all, only in GtkCheckButton and
GtkRadioButton.
2017-01-30 18:11:00 +01:00
Timm Bäder
6c6ed7496c
widget: Remove gtk_widget_class_list_style_properties
...
Unused.
2017-01-30 18:11:00 +01:00
Daniel Boles
19e2f347e1
3to4: Fix typo in previous commit
2017-01-21 22:43:50 +00:00
Daniel Boles
0a347c6ff2
3to4: Fix suggested replacements for border-width
...
The new CSS border-spacing does what Grid::(row|column)_spacing and
Box::spacing already did, i.e. controlling the space added between child
widgets, so it’s not a replacement for Container::border-width.
2017-01-21 22:39:06 +00:00
Daniel Boles
439fcf7578
combobox: Remove property cell-area
...
The CellArea is going to become a pure implementation detail & be moved
to the .ui, instead of letting users mess with it (if anyone ever did).
2017-01-21 21:34:45 +00:00
Timm Bäder
f4341ee9f7
widget: Remove show-all property
...
Doesn't make sense anymore now that gtk_widget_show_all is gone.
2017-01-20 21:37:07 +01:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Matthias Clasen
47bc8603b0
Add a section about initialization to the migration guide
...
Just the facts.
2017-01-19 13:53:11 -05:00
Timm Bäder
32783a8187
gtk4-section: Add GtkInfoBar:revealed setter+getter
2017-01-16 17:22:11 +01:00
Benjamin Otte
87497ca2e1
snapshot: Rename gtk_snapshot_translate_2d()
...
It's now called gtk_snapshot_offset().
2017-01-13 14:37:48 +01:00
Benjamin Otte
6055028c96
snapshot: Rename append APIs
...
Instead of having gtk_snapshot_append_foo_node(), just have
gtk_snapshot_append_foo(). Nobody needs to know that this internally
uses nodes.
2017-01-13 04:46:09 +01:00
Benjamin Otte
b58de2d16c
snapshot: Redo pop() API
...
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().
2017-01-13 03:38:36 +01:00
Benjamin Otte
bc3ba68641
snapshot: Add gtk_snapshot_push_blend()
...
and use it for backgrounds.
2017-01-13 03:38:36 +01:00
Benjamin Otte
d9b0685b49
Add gtk_snapshot_push_cross_fade()
...
... and use it.
The function is a bit awkward because it requires 2 calls to
gtk_snapshot_pop(), but once you accept that, it's very convenient to
use, as can be seen by the 2 implementations.
2017-01-13 03:38:36 +01:00
Matthias Clasen
0868757cfd
More filter documentation updates
...
Actually document the filter property, not just -gtk-icon-filter.
2017-01-11 14:07:56 -05:00
Matthias Clasen
5f2a7ed3c1
Correct the -gtk-icon-filter docs
...
I was overlooking that it is possible to specify multiple
functions. Also add a reference to the relevant spec draft.
2017-01-11 13:42:58 -05:00
Matthias Clasen
249a0b1f22
Some updates to the migration guide
2017-01-10 21:21:26 -05:00
Matthias Clasen
8a83362fb8
Document -gtk-icon-filter
...
Not much detail here yet, but the syntax is documented.
2017-01-10 21:21:26 -05:00
Timm Bäder
3d5a62a0c9
actionbar: Add revealed property
...
So we can show and hide it with a transition as well as bind another
property to it.
2017-01-08 14:57:11 +01:00
Benjamin Otte
2a9ae1e8df
tests: Remove gtk_widget_send_key()
...
It's unused in GTK.
2017-01-08 03:46:30 +01:00
Benjamin Otte
daf0270f1a
tests: Remove widget find functions
...
They are all unused by GTK.
And other people can write their own find functions if they need any in
their tests.
2017-01-08 03:36:05 +01:00
Benjamin Otte
c1f1dae997
viewport: Remove API to query GdkWindows
2017-01-08 00:48:13 +01:00
Benjamin Otte
d50b73f66d
treeview: Remove gtk_tree_view_get_bin_window()
...
We don't want to expose GdkWindows in the public API.
2017-01-08 00:48:12 +01:00
Timm Bäder
47d4ad71fb
Remove gtk_container_snapshot_child
...
Replace it with the already existing gtk_widget_snapshot_child.
2017-01-07 17:19:30 +01:00
Timm Bäder
5ab2377afa
widget: Remove gtk_widget_style_get_property
2017-01-07 17:19:30 +01:00
Benjamin Otte
b993acfe2c
gsk: Add GskRepeatNode
...
Also add gtk_snapshot_push_repeat() and use that to draw backgrounds.
With that change, CSS background snapshots are created without Cairo
nodes.
2017-01-01 19:53:36 +01:00
Benjamin Otte
8973191278
snapshot: Add gtk_snapshot_push_color_matrix()
...
So far, this is unused.
2016-12-31 02:49:47 +01:00
Benjamin Otte
677c5bdedf
cellrenderer: Move snapshotting down into cell renderers
...
Now that every call to GtkCellArea is a snapshot call and no more cairo
calls are left, move the actual differentiation between Cairo and
Snapshot down to the cell renderer.
2016-12-23 09:23:04 +01:00
Benjamin Otte
def94f03e2
debug: Add GTK_DEBUG=snapshot
...
This causes the snapshotting algorithm to dump all widget nodes into
their own container node. We then name that group accordingly (ie
"GtkSwitch<0xdeadbeef>") so you can easily see which node belongs where.
The feature is toggleable in the inspector's visual tab.
There's a few problems with it, becuse GtkSnapshot optimized container
nodes away if they are not needed, so we are losing some widgets...
2016-12-20 19:26:40 +01:00
Benjamin Otte
c4065b9ee0
API: Export gtk_container_snapshot_child()
...
It's equivalent to gtk_container_propagate_draw() and then one is
public, too.
2016-12-20 19:26:40 +01:00
Benjamin Otte
22a657004b
debug: Remove pixel-cache debug categories
...
We have no more pixel cache, so they are kind of useless.
2016-12-20 19:26:40 +01:00
Benjamin Otte
4d9eedafcd
roundedbox: Add gtk_rounded_boxes_init_for_style()
...
Instead of making people intiialize a rectangle and then applying border
radius manually, provide a constructor that does it for them.
While doing that, also allow people to instead request the padding box
or the content box.
Refactor all relevant code to use this new constructor.
2016-12-20 18:01:12 +01:00
Benjamin Otte
95a2a5c54c
gtk: Remove GtkJunctionSides
2016-12-20 18:01:12 +01:00
Benjamin Otte
15e8a22f08
gsk: Move gtk/gtkcairoblur.c to gsk/gskcairoblur.c
2016-12-20 18:01:11 +01:00
Benjamin Otte
23e35706b4
gsk: Add support for rounded clip rectangles
...
Also add support to GtkSnapshot, so people can push rounded clips.
2016-12-20 18:01:10 +01:00
Benjamin Otte
1137483d15
snapshot: Work on pushing and popping again
...
It is now possible to call push() subfunctions for simple container
nodes with just a single child. So you can for example
gtk_snapshot_push_clip() a clip region that all the nodes that get
appended later will then obey.
gtk_snapshot_pop() will then not return a container node, but a clip
node containing the container node (and similar for the transform
example).
This is implemented internally by providing a "collect function" when
pushing that is called when popping to collects all the accumulated
nodes and combine them into the single node that gets returned.
To simplify things even more, gtk_snapshot_pop_and_append() has been
added, which pops the currently pushed node and appends it to the
parent.
The icon rendering code has been converted to this approach.
2016-12-20 18:01:10 +01:00
Benjamin Otte
c258ee403a
snapshot: Make gtk_snapshot_get_renderer() private
...
Public API doesn't need to be concerned with renderers. Worst case, they
can use NULL instead of the actual renderer.
2016-12-20 18:01:10 +01:00
Benjamin Otte
b120075698
snapshot: Add API for colors and textures
2016-12-20 18:01:10 +01:00
Benjamin Otte
8830a1a1ad
gtk: Remove gtk_snapshot_append()
...
It does not make sense to append an empty container node. Those should
only be push()'d.
2016-12-20 18:01:09 +01:00
Benjamin Otte
d1b80a6baa
gtk: Don't push cairo nodes
...
We want to split nodes into containers and nodes that do actual drawing.
So pushing nodes that do drawing is exactly the wrong thing.
Also fix up GtkPopover. There's no need for it to push anything.
2016-12-20 18:01:09 +01:00
Debarshi Ray
7ea199c831
flowbox: Export gtk_flow_box_get_child_at_pos as public API
...
https://bugzilla.gnome.org/show_bug.cgi?id=776187
2016-12-20 00:35:17 +01:00
Benjamin Otte
795f38b4cc
cellview: Remove code to modify the background
...
GtkCellView has a gadget, so peopl can do all their shenanigans with
CSS.
And the original use case (overriding the background so that the
cellview's GdkWindow shares the background color of the combobox) is
outdated since we have transparent backgrounds.
2016-12-19 05:36:06 +01:00
Matthias Clasen
8fb311cb4b
Document the border-spacing CSS property
2016-12-10 20:34:24 -05:00
Benjamin Otte
4850271ae8
API: Remove gtk_cairo_should_draw_window()
...
The answer is: Yes.
2016-11-23 18:48:38 +01:00
Matthias Clasen
8a88745186
Some additions to the migration guide
2016-11-20 08:14:19 -05:00
Matthias Clasen
fd6d28dd8d
Add some things to the sections file
...
This makes gtk-doc happier.
2016-11-19 13:46:13 -05:00
Matthias Clasen
5170218a1d
More work towards a clean doc build
...
Tell gtk-doc about more private headers.
2016-11-19 13:45:04 -05:00
Matthias Clasen
2d65156be3
Add gtk_im_context_simple_add_compose_file
2016-11-19 13:30:27 -05:00
Matthias Clasen
6734f354b4
docs: Add gtk_print_job_set_source_fd
2016-11-19 13:26:49 -05:00
Matthias Clasen
d0f8e324b1
Add gtk_menu_place_on_monitor to the docs
2016-11-19 12:53:13 -05:00
Matthias Clasen
c9c391bd55
Drop macro wrappers for get_version functions
...
These are not really useful, and were added long ago
as a clutch for transitioning to the new names.
2016-11-19 12:28:52 -05:00
Matthias Clasen
aa74d96532
Document newly supported 3d transforms in CSS
2016-11-18 19:34:02 -05:00
Matthias Clasen
7d34229cdd
More docs cleanup
2016-11-18 18:54:45 -05:00
Matthias Clasen
0a75bb4353
Work towards a clean docs build
...
Remove various no-longer-existing functions from the sections
file, and exclude more private headers, etc.
2016-11-18 14:43:34 -05:00
Matthias Clasen
b15bc437a6
Rename broadwayd to gtk4-broadwayd
...
This was the last unprefixed binary, and it was causing file
conflicts between gtk3 and gtk4.
2016-11-18 13:40:37 -05:00
Matthias Clasen
f73c5dd8dd
docs: Name the 3.90 index properly
2016-11-18 08:14:23 -05:00
Matthias Clasen
5c1af1af04
docs: Ignore gtksnapshotprivate.h
2016-11-18 08:12:20 -05:00
Matthias Clasen
95c13ee471
Document GtkSnapshot
...
This is just some initial documentation, more detail needed.
2016-11-18 07:43:39 -05:00
Matthias Clasen
9ecb34b4a0
Add some drawing information the migration guide
...
Mention snapshot(), and the new GtkDrawingArea API.
2016-11-18 07:43:33 -05:00
Matthias Clasen
3c5dbc2f17
docs: Add GtkDrawingAreaDrawFunc
2016-11-18 06:09:46 -05:00
Benjamin Otte
5940625e9e
drawingarea: Add gtk_drawing_area_set_draw_func()
2016-11-18 06:40:53 +01:00
Benjamin Otte
41d1e1fea8
drawingarea: Add content-width and content-height properties
...
People should use these instead of gtk_widget_set_size_request().
2016-11-18 06:40:53 +01:00
Matthias Clasen
fbbd3ccfd7
docs: Fix print-related includes
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774614 .
2016-11-17 09:33:30 -05:00
Matthias Clasen
21570a57f2
docs: Update an example
...
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774490
2016-11-17 06:17:11 -05:00
Benjamin Otte
bcf70e3a03
API: Remove everything relating to "grip"
...
Grips have long been unused in GTK, so remove all support for them.
This removes the GTK_STYLE_CLASS_GRIP and the special
gtk_render_handle() code for drawing those grips.
2016-11-16 19:27:43 +01:00
Benjamin Otte
56e11f057c
API: Remove gtk_render_extension()
...
This is long-gone drawing API.
2016-11-16 18:36:10 +01:00
Matthias Clasen
2520662d13
Allow replacing input file in gtk-builder-tool simplify
2016-11-12 22:33:01 -05:00
Matthias Clasen
5b8646c6e8
Update the migration guide
...
Mention the demise of -gtk-gradient, and explain that CSS syntax
works fine for this now.
2016-11-07 16:00:05 -05:00
Matthias Clasen
fa7d77d407
Revert "Update the CSS docs for the demise of define-color"
...
This reverts commit 12d9451b1c
.
2016-11-07 15:05:37 -05:00
Matthias Clasen
a1e03346d9
Revert "Update the migration guide"
...
This reverts commit b868164381
.
2016-11-07 15:05:28 -05:00
Matthias Clasen
b868164381
Update the migration guide
...
Mention some removed CSS extensions.
2016-11-07 14:59:23 -05:00
Matthias Clasen
12d9451b1c
Update the CSS docs for the demise of define-color
2016-11-07 14:49:46 -05:00
Matthias Clasen
069c5e48d4
Update CSS docs to reflect the demise of -gtk-gradient
2016-11-07 14:46:41 -05:00
Timm Bäder
3b970f4555
button: Remove _get_event_window
2016-11-05 11:56:36 +01:00
Timm Bäder
846cf681e8
Remove gtk_widget_set_mapped
...
Let all the remaining callers chain up.
2016-11-05 11:56:36 +01:00
Matthias Clasen
e6d5a3dce2
Drop GtkTextAttributes from the docs
2016-11-01 13:58:10 -04:00
Timm Bäder
5071206d60
widget: Remove app-paintable
2016-10-31 19:28:28 +01:00
Benjamin Otte
73cd739e19
API: widget: Remove gtk_widget_is_composited()
...
We don't need to clutter our API with functions that are easily
available elsewhere and effectively unused.
2016-10-29 04:49:47 +02:00
Sébastien Wilmet
4dee2535c3
docs: more logical GtkEntry function order in the section file
...
Trivial commit.
Group related functions together. Most of the functions had already the
set -> get order, so keep that order.
2016-10-27 12:30:04 +02:00
Sébastien Wilmet
75ef45f53d
docs: consistent get/set function order for GtkScrolledWindow
...
Trivial commit.
For all the other GtkScrolledWindow functions, the order was get -> set.
Except for 3 functions, so fix that.
2016-10-27 12:29:40 +02:00
Benjamin Otte
dd105f3db8
gdk: Remove gdk_window_set_invalidate_handler()
...
It's not used anymore.
2016-10-27 05:03:06 +02:00
Alexander Larsson
723b588b5d
Make gdk.la and gsk.la a noninst helper library
...
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
2016-10-26 16:34:15 +02:00
Sébastien Wilmet
371aa0dba3
docs: update section file for GtkScrolledWindow
...
Trivial commit.
- More logical ordering (re-group related things).
- Add missing functions: max_content_width/height.
2016-10-26 14:17:00 +02:00
Matthias Clasen
dd0f700bfd
Fix the docs build after offscreen window removal
2016-10-25 21:46:14 -04:00
Matthias Clasen
74d62acf5c
Drop GDK_MULTIDEVICE_SAFE from the docs
...
All the non-multidevice safe API was deprecated and has been
dropped now.
2016-10-25 19:51:24 -04:00
Alexander Larsson
70935f0952
Drop support for offscreen GdkWindows
...
These complicate a lot of GdkWindow internals to implement features
that not a lot of apps use, and will be better achieved using gsk.
So, we just drop it all.
2016-10-25 09:54:37 +02:00
Rico Tzschichholz
540cfd8580
textiter: Remove deprecated gtk_text_iter_begins_tag
2016-10-24 09:07:32 +02:00
Rico Tzschichholz
8abf05e194
gtk: Update path references from gtk-3.0 to gtk-4.0
2016-10-23 20:22:38 +02:00
Rico Tzschichholz
62b19498ac
docs: Follow removal of GtkAction and GtkActivatable
2016-10-23 19:13:15 +02:00
Rico Tzschichholz
b5f9343ab4
treeview: Remove deprecated API
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
502e63eddc
stylecontext: Remove deprecated API
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
5c526c9926
gtkplacessidebar: Remove deprecated "show-connect-to-server"
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
f3bc6619eb
Remove deprecated gtk_im_multicontext_append_menuitems
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
88fcbd946a
testutils: Remove deprecated API
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
24b917165b
Remove stray "stock" references
2016-10-23 13:01:52 +02:00
Rico Tzschichholz
d69f657aec
layout: Remove deprecated API
2016-10-23 12:38:31 +02:00
Rico Tzschichholz
2273f5d28e
iconset: Remove stray references
2016-10-23 11:12:13 +02:00
Rico Tzschichholz
723b4af529
assistant: Remove deprecated API
2016-10-23 11:12:12 +02:00
Rico Tzschichholz
5d41103750
accessible: Drop deprecated connect_widget_destroyed
2016-10-23 11:12:08 +02:00
Timm Bäder
ab467317a1
widget: Add docs for ::measure
2016-10-22 21:40:04 +02:00
Timm Bäder
e2b6044c1b
expander: Remove spacing property
2016-10-22 19:36:58 +02:00
Timm Bäder
85e01b9f39
toolbar: Remove GtkToolbarSpaceStyle
2016-10-22 19:32:45 +02:00
Timm Bäder
d188912338
icontheme: Remove deprecated API
2016-10-22 19:08:29 +02:00
Timm Bäder
66430e683c
toolpalette: Remove deprecated API
2016-10-22 19:08:29 +02:00
Timm Bäder
6525b95e25
textview: Remove deprecated GtkScrollable API
2016-10-22 17:02:06 +02:00
Timm Bäder
2da886dd0e
Remove gtk_cell_view_get_size_of_row
2016-10-22 14:36:22 +02:00
Robert Roth
07724de3d9
Fix css documentation typo for color definition
...
'ligher' should be 'lighter', of course.
https://bugzilla.gnome.org/show_bug.cgi?id=773246
2016-10-21 11:43:03 -04:00