b3c28e14fe
file chooser: search improvements
...
Make it so that typing switches to search unless we have a better
use for the key events, and stop search if the entry is emptied.
2015-01-24 13:32:31 -05:00
8f9c8120b9
file chooser: Turn off typeahead search
...
It is the third kind of navigation entry in the file chooser after
the location entry and search, and it interacts badly with both
of the others.
2015-01-24 08:44:30 -05:00
a0ecb44b41
gtk-demo: Show search entry signals
2015-01-24 08:44:30 -05:00
3bf12c44e2
Use the new API in GtkSearchBar if we can
...
Sadly, GtkSearchBar allows connecting plain entries, so we have
to keep the old code around.
2015-01-24 08:44:30 -05:00
354536d464
inspector: Use some of the new GtkSearchEntry API
...
Avoid repetitive, manual event handling in various places
in GtkInspector.
2015-01-24 08:44:30 -05:00
500c8d82fc
GtkSearchEntry: Add more API
...
Add ::next-match, ::previous-match and ::stop-search keybinding
signals that are bound to Ctrl-g, Ctrl-Shift-g and Escape. Also
add a gtk_search_entry_handle_event() function to handle key events.
2015-01-24 08:44:30 -05:00
82a5edceca
Updated Icelandic translation
2015-01-23 13:37:21 +00:00
ad180c4335
inspector: Make gl extension rows unactivatable
2015-01-22 21:18:25 +01:00
2e71fbacbf
Updated POTFILES.skip
2015-01-22 20:20:43 +01:00
7e5ac3a58d
roundedbox: Treat path segments differently
...
If a side of the box is 0px wide, make the corners owned by the adjacent
sides. This avoids spilling over of unwanted colors from the 0-width
side into the corner.
New test for this case is included.
2015-01-22 16:25:54 +01:00
3a9bf0fe1d
widget: Compute clip of children properly
...
For widgets with a window, we need to adjust the allocation of their
children.
2015-01-22 16:25:43 +01:00
d879a13600
widget: Correctly handle which widgets to include in the clip
...
Previously, we would not include any child widget on the first
allocation, which happens right after realize(), but before map(). No
widget is drawable at that point.
2015-01-22 16:25:35 +01:00
bd31310c40
widget: Add debug spew for setting the clip
2015-01-22 16:25:30 +01:00
3fcb892831
headerbar: Implement clipping
2015-01-22 16:25:24 +01:00
ba06066158
border: Don't special case according to border styles
...
This is now done (as it should) in the compute code.
2015-01-21 16:22:30 +01:00
728bce2cf8
css: Move "border-style: none" special case to CssValueNumber
...
This fixes the background being shifted by the border-width even though
the border-style was none.
2015-01-21 16:20:42 +01:00
610f7e8f70
stylecontext: Don't do unnecessary workarounds
...
when calling get_padding/border/margin, there is no need to go through
the fallback API.
This is a huge speedup for certain benchmarks.
2015-01-21 02:16:44 +01:00
8836a0d6ce
render: fix arrow orientation
...
The rotation code in the draw_arrow function was assuming that the arrow
would be drawn pointing upwards but it was pointing to the right
resulting in the rotated arrows pointing in the wrong direction.
The recent refactoring caused a pi/2 rotation to be lost. Rather than
adding that back somehwere (to lose it again in the future), we just
draw the arrow pointing upwards as it is expected to do with a 0 angle.
2015-01-21 01:38:51 +01:00
da163469f9
3.15.4
2015-01-20 08:18:03 -05:00
c7efbeddd0
More updates
2015-01-20 06:46:58 -05:00
22967f1612
image: Compute clip properly
...
Use the helper function we have for this, don't do it manually. This has
the side effect of also supporting icon transforms.
2015-01-20 06:30:20 +01:00
f7433557ab
render: Implement -gtk-icon-transform for icon surfaces
...
Yes, I like playing around. To enjoy, add this CSS to your application
of choice (preferrably glade or something with lots of images):
GtkImage { animation: spin 2s linear infinite; }
You can thank me later.
2015-01-20 06:30:20 +01:00
8c745088d5
render: Split icon surface rendering out
...
Just like normal icons, icon surfaces belong into gtkrendericon.c.
2015-01-20 06:30:20 +01:00
f6d64f6591
render: Split icon rendering into its own file
2015-01-20 06:30:19 +01:00
e697213b35
render: Remove spinner special-cases
...
The spinner is a regular builtin image now. There is no need to go
through the shadows code manually anymore as regular items do get
shadows automatically.
This also allows simplifying the actual spinner drawing code so that it
actually works.
2015-01-20 06:30:19 +01:00
cc4d34e688
render: Render builtin images as regular CSS images
...
This not only reduces code, but also allows for builtin images to have
shadows or be transformed using -gtk-icon-transform.
2015-01-20 06:30:19 +01:00
45541cbf10
render: Don't require passing CSS properties to builtin images
...
Instead, make the buiultin image get those properties itself in the
compute vfunc.
2015-01-20 06:30:19 +01:00
9ce8ce1198
css: Move icon properties to the end
...
The order in which properties are defined depends on the order in which
they are computed. And that means that properties can only depend on
other properties that are defined before them.
The next patches will need this reordering.
2015-01-20 06:30:19 +01:00
fe028e2789
render: Only render 4 different arrows
...
Instead of supporting every angle, just support top, right, bottom and
left and round the angle to one of those directions.
Adwaita overrides arrows anyway and doesn't even look at the angle, so
this should not be a problem.
2015-01-20 06:30:19 +01:00
118c887656
render: Don't pass junction sides to builtin image
...
Instead, split the grip into 8 different builtin images (one for each
side and corner).
2015-01-20 06:30:19 +01:00
e6b228f12a
render: Extend builtin images to account for states
...
We add to the enum to account for the images generated for different
states.
2015-01-20 06:30:19 +01:00
1c3dd5d46b
render: Move code for rendering builtin images
...
Also, make it have a generic entry point with
gtk_css_image_builtin_draw().
The only feature lost so is the drawing of shadows for spinners, but
that will come back later.
2015-01-20 06:30:19 +01:00
ebb64c2288
inspector: Remove unused hash table
2015-01-20 06:30:19 +01:00
7ba7dff69e
inspector: Remove unused treemodel properties
...
As a side effect, we can use _gtk_css_section_to_string() to format the
section and save a lot of code.
2015-01-20 06:30:19 +01:00
4ba710ea30
inspector: Use GtkCssStyle and gtk_css_value_to_string()
2015-01-20 06:30:19 +01:00
8b6d419e02
render: Move border rendering into its own file
...
gtkrenderborder.c now contains the implementation for
gtk_css_style_render_border
gtk_css_style_render_outline
2015-01-20 06:30:19 +01:00
5ec97f6144
render: Remove unused header
2015-01-20 06:30:19 +01:00
717877dff2
render: Rename gtkborderimage.[ch]
...
I want the gtkrender prefix for all filenames about rendering.
2015-01-20 06:30:18 +01:00
cb0ca9a804
render: Use a GtkCssStyle instead of GtkStyleContext for focus
2015-01-20 06:30:18 +01:00
5cc0cae4b7
render: Rename gtkthemingbackground.[ch]
...
I want the gtkrender prefix for all filenames about rendering.
2015-01-20 06:30:18 +01:00
d25b4105d6
render: Take a GtkCssStyle for rendering frames
...
... and move the whole function into gtkthemingbackground.c
2015-01-20 01:23:19 +01:00
d0a12d477e
borderimage: Use a GtkCssStyle instead of GtkStyleContext
2015-01-20 01:23:19 +01:00
dd2202288a
themingbackground: Use a GtkCssStyle instead of GtkStyleContext
2015-01-20 01:23:19 +01:00
8d94140da9
roundedbox: Take a GtkCssStyle instead of a GtkStyleContext
...
This is in preparation for iusing GtkCssStyle instead of GtkStyleContext
in render functions.
2015-01-20 01:23:18 +01:00
73b3b9ee94
stylecontext: Rename function and export it.
...
The name now better reflects what it does, since GtkCssComputedValues
was renamed to GtkCssStyle, too.
2015-01-20 01:23:18 +01:00
f313a8235b
reftests: Fix border-style-none reftest
...
Unset all CSS; Adwaita was messing up things.
2015-01-20 01:15:04 +01:00
8c534fefca
dnd: Draw dnd icon with regular code
...
Overriding the window background is ugly because the window background
is owned by GTK and can be reset at any time.
https://bugzilla.gnome.org/show_bug.cgi?id=742646
2015-01-20 01:07:13 +01:00
dbb8d1dd07
stylecontext: Keep track of the CSS ID
...
This is necessary since we do the new caching and need to distinguish
between styles with different IDs.
Fixes various test cases.
2015-01-20 01:07:13 +01:00
39d6ec167e
Updated Lithuanian translation
2015-01-19 23:00:55 +02:00
c1a013fe4a
Updated Spanish translation
2015-01-19 18:26:58 +01:00