Benjamin Otte
dcb15d6728
cssgadget: Compute clip correctly
...
We were computing it relative to the gadget allocation, but it should be
relative to the widget allocation.
2017-01-09 01:12:06 +01:00
Timm Bäder
deb458c656
widget: Document child/sibling accessors
2017-01-08 16:58:27 +01:00
Timm Bäder
545fb271b7
switch: Use a widget as slider
2017-01-08 16:54:34 +01:00
Timm Bäder
9b76badb50
widget: Add construct-only css-name property
...
So we can set the css name of a widget to something that's not related
to the class name. If the css-name property is set to NULL, we will
still fall back to the one set using gtk_widget_class_set_css_name which
is alwasys non-NULL since GtkWidget itself sets it to "widget".
2017-01-08 16:44:46 +01:00
Timm Bäder
d15ca3b2b4
actionbar: Fix class and instance struct parent member
2017-01-08 15:12:45 +01: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
Timm Bäder
c392f41bb2
builderparser: Shuffle if-statements around once more
...
The previous reordering broke the builderparser test case.
2017-01-08 13:07:12 +01:00
Timm Bäder
de6b788a91
printunixdialog: Remove leftover draw handler
2017-01-08 11:06:49 +01:00
Timm Bäder
48d5f7843b
actionbar: Add revealer as internal child
2017-01-08 10:49:06 +01:00
Timm Bäder
12c2274750
actionbar: Remove show() and hide() implementations
...
They only show/hide the widget in a delayed fashion which doesn't
work, just like it doesn't work with infobars and popovers.
2017-01-08 10:46:26 +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
Matthias Clasen
507a1e4d7a
Make GTK_DEBUG=interactive work better
...
We currently have various ways to initialize GTK+, and not
all of them were supporting this way of bringing up the
inspector. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=776807
2017-01-07 19:16:15 -05: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
f486805ba0
Unparent child widgets
2017-01-07 17:19:30 +01:00
Timm Bäder
5f98597a0c
Add gtk_widget_set_focus_child
...
With a very useful implementation, but at least now we don't get runtime
warnings.
2017-01-07 17:19:30 +01:00
Timm Bäder
52aed5d607
Add gtk_widget_snapshot_child
2017-01-07 17:19:30 +01:00
Timm Bäder
08d644c4a5
widget: Warn if children are left in finalize()
2017-01-07 17:19:30 +01:00
Timm Bäder
7d0e534969
gtkmain: Correctly notify all widgets of a grab
2017-01-07 17:19:30 +01:00
Timm Bäder
8960bb7c8e
widget: Fix :parent property type
...
Parent widgets can now also be widgets, not just containers.
2017-01-07 17:19:30 +01:00
Timm Bäder
9aedbc376b
inspector: Don't try to access child props of non-containers
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
Timm Bäder
25236dbed8
spinbutton: Use widgets for up/down buttons
2017-01-07 17:19:30 +01:00
Timm Bäder
b2b4d9e418
switch: Use GtkLabels for on/off labels
2017-01-07 17:19:30 +01:00
Timm Bäder
42f1ff0123
inspector: Show child widgets of widgets
2017-01-07 17:19:29 +01:00
Timm Bäder
d77b288e65
widget: Implement create_path for widgets with non-container parent
2017-01-07 17:19:26 +01:00
Timm Bäder
af9d932e47
widget: Unparent widgets in dispose()
...
If they have a non-container parent.
2017-01-07 16:44:01 +01:00
Timm Bäder
ef44d05894
widget: Check for containerness before calling container API
2017-01-07 16:44:01 +01:00
Timm Bäder
8ef73660e4
widget: Implement map/unmap with child widgets
...
Once again, do what GtkContainer did before.
2017-01-07 16:44:01 +01:00
Timm Bäder
b15b9e028f
widget: Implement show_all
...
Do what gtk_container_forall did: show_all all children, then the widget
itself.
2017-01-07 16:44:01 +01:00
Timm Bäder
8a55a6975c
widget: Iterate over child widgets instead of gtk_container_forall
2017-01-07 16:44:01 +01:00
Timm Bäder
1e031cba99
widget: Add children and sibling pointers
...
and a (private) way to access them. We will later use these pointers to
manage children of non-container widgets and containers alike.
2017-01-07 16:44:00 +01:00
Timm Bäder
626868c7ba
combobox: Remove unused define
2017-01-07 16:15:12 +01:00
Matthias Clasen
5fa1b14a96
Revert "Use CSS for styling links in labels"
...
This reverts commit 60a8769e7f0c952fdc8090b1ecd96cca00123ad9.
This needs more work to work properly.
2017-01-05 20:57:42 -05:00
Matthias Clasen
4170f79eea
Use CSS for styling links in labels
...
This was implemented only halfway, and was hardcoding the
underline. We don't need to do that anymore.
2017-01-05 20:57:42 -05:00
Matthias Clasen
f3779b42c5
Make it possible to set style classes for label links
...
This makes it possible to style links in labels differently
in certain situations.
2017-01-05 16:55:45 -05:00
Sébastien Wilmet
88699f588d
docs: improve the documentation of GtkEntry:attributes
...
See the implementation of gtk_entry_create_layout():
pango_attr_list_splice() is used to add the PangoAttrList of the preedit
string. And that is done *after* applying the PangoAttrList of the
"attributes" property.
https://bugzilla.gnome.org/show_bug.cgi?id=776868
2017-01-04 19:56: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
aa917ce3b7
css: Redo GtkCssAffects
...
We now have GTK_CSS_AFFECTS_CONTENT for properties that have an effect
on content rendering.
Using GTK_CSS_AFFECTS_ICON is wrong for icon-transform and icon-filter
as they don't change the icon, just how the icon is rendered, so we use
GTK_CSS_AFFECTS_CONTENT for those.
We also introduce GTK_CSS_AFFECTS_POSTEFFECT for opacity and filter -
properties that affect the whole drawing of the widget by applying an
effect after everything is said and done.
2017-01-01 19:53:36 +01:00
Benjamin Otte
2571036c07
gsk: Turn GskTexture into a GObject
2017-01-01 19:53:36 +01:00
Benjamin Otte
4ead5c3ba8
colorplane: Implement snapshot()
2017-01-01 19:53:36 +01:00
Benjamin Otte
e542d411ac
accellabel: Initialize allocation variable
...
I have no idea why gcc didn't catch this.
2016-12-31 14:37:20 +01:00
Benjamin Otte
fb43807fbb
cssfiltervalue: Change node name
...
We're not just using this for icon filters, but for regular filters, so
the existing name is confusing.
2016-12-31 14:37:20 +01:00
Daniel Boles
0259312142
scrolledwindow: Fix func summary being cut off in bindings using doxygen
...
...which treats the first '.' in doc comments as the end of the summary.
So, e.g., in gtkmm, get_kinetic_scrolling() is currently summarised as
"Changes the behaviour of @scrolled_window wrt." Not very informative!
No need for a period there & anyway, the phrase "wrt to" is superfluous,
and we have space to actually say "with regard to", so just do that now.
2016-12-31 13:27:15 +00:00
Benjamin Otte
959f80e6e9
css: Implement filter
...
So far, it's only implemented for widgets, not for gadgets.
Not sure how to do it for gadgets without conflicts for widget gadgets
yet...
2016-12-31 02:49:47 +01:00
Benjamin Otte
45fbc25e5e
css: Remove -gtk-icon-effect
...
-gtk-icon-filter replaces this now.
2016-12-31 02:49:47 +01:00
Benjamin Otte
5b33127692
gtk: Replace -gtk-icon-effect with -gtk-icon-filter
...
Instead of
-gtk-icon-effect: dim;
-gtk-icon-effect: hilight;
we now use
-gtk-icon-filter: opacity(0.5);
-gtk-icon-filter: brightness(1.2);
respectively.
2016-12-31 02:49:47 +01:00
Benjamin Otte
2645b5a7d7
gtk: Implement -gtk-icon-filter
...
This uses the new GskColorMatrixNode to implement a filter that applies
to icons. It's meant to replace -gtk-icon-effect.
2016-12-31 02:49:47 +01:00