ed00d86496
inspector: Allow editing css node properties
...
This reuses the property editor infrastructure from the
property list pages. Good that css nodes are objects.
2015-10-26 23:39:51 -04:00
6852a1eef9
inspector: Support editing interned string properties
...
Sadly, interned string properties cannot be handled generically
at all - GObject insists on inserting a strcpy in any attempt
to set a string property with generic api, destroying the
internedness of the string.
Therefore, we have to special-case GtkCssNode in the property
editor code :-(
2015-10-26 23:39:51 -04:00
b7d001e613
Add some api annotations
...
Nothing is using the /*interned*/ annotations currently,
but if we are doing this, we should be consistent.
2015-10-26 23:39:50 -04:00
a648afae12
widget: Add name to widget paths
...
This changes widget paths for widgets with a CSS name to return that CSS
name, now that we have added API for it.
This means that style properties are now matches using the CSS name.
Also fix the theme to use the correct name when matching style properties.
2015-10-27 03:13:42 +01:00
517cea36ed
cssmatcher: Actually match names for widget paths
...
The type is always 0 when we use names. So this would always return
FALSE. Oops.
2015-10-27 03:13:42 +01:00
d717afd4d4
entry: properly update css subnode state
...
Update the state of the css subnodes for icons when
appropriate, and avoid calling set_state after save_to_node.
2015-10-26 22:09:07 -04:00
c72d094ae0
entry: Use better element name for progress
...
Change the name of the CSS subnode for progress rendering from
progressbar to progress. This will align better with GtkProgressBar.
2015-10-26 21:34:16 -04:00
aefa1ba611
gdk: Deprecate gdk_display_get_screen
2015-10-27 14:17:52 +13:00
101df329ae
API: Add gtk_widget_path_iter_set_object_name()
...
... and gtk_widget_path_iter_get_object_name(). This allows applications
that still use widget paths to use the new object names to get the
correct styling.
Mutter and webkit-gtk are examples here.
2015-10-27 01:44:50 +01:00
aedd193c69
GtkTreeView: Rework the search window hack so it also works on Wayland
...
The search window of a tree view was implemented by showing without
making it visible by by positioning it outside the screen edge. This is
not possible on Wayland, so implement another method for being able to
enter text into a non-visible entry.
The new method is implemented by, before showing the window, pass the
key event directly to the IM context backing the entry. If the key
event triggered the context to commit new text or change the preedit
content, the search window is shown, and from that point the key events
are forwarded directly to the entry widget.
https://bugzilla.gnome.org/show_bug.cgi?id=756780
2015-10-27 08:41:02 +08:00
97dbef451e
GtkTreeView: Make a search window destroy helper
...
https://bugzilla.gnome.org/show_bug.cgi?id=756780
2015-10-27 08:41:02 +08:00
2eb7d7476b
GtkTreeView: Use more consistent search window naming
...
Instead of alternating between search dialog and search window, use
search window everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=756780
2015-10-27 08:41:02 +08:00
76619cf1ae
entry: Bring back icon padding
...
Not sure why this is necessary now, but it is.
2015-10-26 16:51:28 -04:00
ed8641ff26
entry: Only set one of the .left, .right style classes
...
We were not removing the old style class when adding a new one.
2015-10-26 15:28:50 -04:00
e28b3d1296
assistant: Handle page-type and title changes properly
...
We need to update our state when a pages' type or title changes.
2015-10-26 09:01:07 -04:00
6efbf329c3
shortcuts: Cosmetic change
...
The .flat style class is controlled by the relief property,
so just use that instead of manually setting style classes.
2015-10-26 07:23:07 -04:00
953aa45c04
label docs: Mention common style classes
...
Mention some of the style classes that are commonly used
with labels.
2015-10-26 07:23:07 -04:00
305b34aa15
GtkWindow: fix move/get position with CSD
...
Take into account and compensate for the size of the client side
decorations widgets in gtk_window_move() and gtk_window_get_pos()
including gravity.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618
2015-10-26 08:40:36 +01:00
3450f53907
GtkWindow: add up CSD size in gtk_window_resize()
...
When client side decoration is used, the size passed to
gtk_window_resize() or retrieved from gtk_window_get_size() for top-
level windows also accounts for the client side decorations widgets
such as the title bar or the shadow borders.
Add up the size of these additional controls to the given size to get
the size expected.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618
2015-10-26 08:40:36 +01:00
bf65b06781
HighContrast: Don't use GtkInfoBar type name
...
We have a proper element name for it now.
2015-10-25 17:19:34 -04:00
91ec104dd3
Adwaita: Don't use GtkInfoBar type name
...
We have a proper element name for it now.
2015-10-25 17:19:01 -04:00
f1248ccea4
infobar: Add a name to the css node
...
This lets us avoid the type name in css.
2015-10-25 17:18:20 -04:00
2de0f06af9
HighContrast: Update separator rendering
...
Adapt HighContrast t othe changes in the pre-previous commit.
2015-10-25 16:29:11 -04:00
0ba03aac16
Adwaita: Update separator styling
...
Adapt Adwaita to the changes in the previous commit.
2015-10-25 16:28:38 -04:00
2eb6599b29
separator: Use the element name separator
...
Switch GtkSeparator from using the .separator style class to
using the element name separator for its css node.
2015-10-25 16:27:44 -04:00
aa67ad0011
Adwaita: Update accel label styling
...
Adapt Adwaita to the changes in the previous commit.
2015-10-25 15:45:13 -04:00
caa6fb0732
accel label: Use a css node for the accelerator
...
Use a permanent subnode with name accelerator instead of the
.accelerator style class.
2015-10-25 15:45:13 -04:00
2b20bd54c5
HighContrast: Update spinner rendering
...
Adapt HighContrast to the changes in the pre-previous commit.
2015-10-25 15:45:13 -04:00
bd80b1d037
Adwaita: Update spinner styling
...
Adapt Adwaita to the changes in the previous commit.
2015-10-25 15:45:13 -04:00
9269525f07
spinner: Use the element name spinner
...
Switch GtkSpinner from using the .spinner style class to
using the element name spinner for its css node.
2015-10-25 15:45:13 -04:00
f55e3f7eda
inspector: Be more careful with dead objects
...
gtk_inspector_object_tree_find_object accesses the type information
of the object, so we can't safely use it on an already decaying
object when we get a weak notify. Instead just walk the tree and
compare pointers, that is safe.
https://bugzilla.gnome.org/show_bug.cgi?id=756852
2015-10-25 13:11:17 -04:00
4305aa1def
inspector: Improve css node UI
...
All the other object pages have a title, this one was missing it.
Add one, so the page fits in with the rest.
2015-10-25 09:20:43 -04:00
1e112ca75e
inspector: Allow editing strv-valued properties
...
These do occur in some places, and we can easily allow editing
them.
2015-10-25 02:14:04 -04:00
e440050134
Fix the build
2015-10-24 17:04:38 -04:00
f1b7560938
notebook: Document css nodes and style class
...
This will have to be updates as we do further changes to the
way GtkNotebook does its rendering.
2015-10-24 10:54:56 -04:00
8917ee5373
notebook: Drop unneeded code
...
We no longer need to set the position classes on the main css node,
since they are already set on the per-tab subnodes.
2015-10-24 10:39:18 -04:00
9f738da11b
HighContrast: Update notebook styling
...
The switch from .notebook to notebook requires minor changes,
such as moving the style properties into a separate selector.
2015-10-24 10:39:18 -04:00
a22e07f374
Adwaita: Update notebook styling
...
The switch from .notebook to notebook requires minor changes,
such as moving the style properties into a separate selector.
2015-10-24 10:39:18 -04:00
f194b9608a
notebook: Use the element name notebook
...
Switch GtkNotebook from using the .notebook style class to
using the element name notebook for its main css node.
2015-10-24 10:39:18 -04:00
e2bfe9e95a
notebook: Cosmetic cleanup
2015-10-24 10:39:17 -04:00
431089f769
entry: Add css node documentation
...
List the css names and the typical style classes that can be
expected to occur with entries.
2015-10-23 16:22:25 -04:00
78309d8b00
HighContrast: Update entry progress rendering
...
Adapt HighContrast to the changes in the pre-previous commit.
2015-10-23 16:16:55 -04:00
d8a3a4e7aa
Adwaita: Update entry progress rendering
...
Adapt Adwaita to the changes in the previous commit.
2015-10-23 16:13:43 -04:00
6a768ba218
entry: Use a permanent css node for progress
...
Create a css node with name progressbar when we start showing progress
in the entry. The node gets the style class .pulse added when we
do pulse mode.
2015-10-23 16:11:08 -04:00
e39ca899ad
Adwaita: Update for entry icon changes
2015-10-23 15:41:05 -04:00
f5e77d0c67
entry: Use css nodes for icons
...
Create css nodes for icons in entries, with name image, and use
gtk_style_context_save_to_node() for them. We still set the
style classes .left and .right on them.
2015-10-23 15:39:29 -04:00
8a8518ed40
HighContrast: Update entry styling
...
Use the new element name instead of the style class.
2015-10-23 14:53:06 -04:00
c6a7ceedc9
Adwaita: Update entry styling
...
Use the new element name instead of the style class.
There is some minor fallout for vertical spin buttons that
will need a second look.
2015-10-23 14:52:27 -04:00
b2dd9cbc59
entry: Use the element name entry
...
Set the element name on the css node and drop the .entry class.
2015-10-23 14:51:35 -04:00
5b0a26f8a3
Adwaita: fix switch styling
...
looks like switch stare are not passed to the slider anymore so
rewrite selectors accordingly.
2015-10-23 17:12:01 +02:00