Christoph Reiter
c235747847
GtkFileChooserWidget: remove unused fields and cleanup code.
...
These fields are never set, so we don't need the code to clean them up.
https://bugzilla.gnome.org/show_bug.cgi?id=725164
2015-01-24 17:28:28 -05:00
Matthias Clasen
95fad690d2
wayland: Don't claim to support selection notification
...
We don't support selection notification, so don't claim
we do, only to fail later.
https://bugzilla.gnome.org/show_bug.cgi?id=743229
2015-01-24 17:25:43 -05:00
Matthias Clasen
b6551c84c9
Initialize variables
...
No need to risk valgrind complaints about initialized
values.
https://bugzilla.gnome.org/show_bug.cgi?id=743422
2015-01-24 16:45:04 -05:00
Debarshi Ray
aa0811d320
GtkTreeModel: Documentation fix
...
https://bugzilla.gnome.org/show_bug.cgi?id=743286
2015-01-24 16:16:35 -05:00
Christoph Reiter
f4dee9b682
Fix transfer annotation for tree_model parameter of gtk_tree_get_row_drag_data() and add nullable, optional
...
The GtkSelectionData does not own the model set with
gtk_tree_set_row_drag_data so change the out param to "transfer none".
This fixes a crash after multiple DnD actions due to the bindings
stealing a reference each time this function is called.
This also adds nullable and optional annotations for tree_model and path while at it.
https://bugzilla.gnome.org/show_bug.cgi?id=743193
2015-01-24 16:11:51 -05:00
Timm Bäder
9668962da1
gtkdnd: Set the dnd window's screen before its visual
...
This makes dnd icons work for widgets on a !default screen.
https://bugzilla.gnome.org/show_bug.cgi?id=743393
2015-01-24 15:57:46 -05:00
Matthias Clasen
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
Matthias Clasen
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
Matthias Clasen
a0ecb44b41
gtk-demo: Show search entry signals
2015-01-24 08:44:30 -05:00
Matthias Clasen
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
Matthias Clasen
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
Matthias Clasen
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
Sveinn í Felli
82a5edceca
Updated Icelandic translation
2015-01-23 13:37:21 +00:00
Timm Bäder
ad180c4335
inspector: Make gl extension rows unactivatable
2015-01-22 21:18:25 +01:00
Piotr Drąg
2e71fbacbf
Updated POTFILES.skip
2015-01-22 20:20:43 +01:00
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
bd31310c40
widget: Add debug spew for setting the clip
2015-01-22 16:25:30 +01:00
Benjamin Otte
3fcb892831
headerbar: Implement clipping
2015-01-22 16:25:24 +01:00
Benjamin Otte
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
Sebastian Keller
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
Benjamin Otte
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
Sebastian Keller
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
Matthias Clasen
da163469f9
3.15.4
2015-01-20 08:18:03 -05:00
Matthias Clasen
c7efbeddd0
More updates
2015-01-20 06:46:58 -05:00
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
f6d64f6591
render: Split icon rendering into its own file
2015-01-20 06:30:19 +01:00
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
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
Benjamin Otte
ebb64c2288
inspector: Remove unused hash table
2015-01-20 06:30:19 +01:00
Benjamin Otte
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
Benjamin Otte
4ba710ea30
inspector: Use GtkCssStyle and gtk_css_value_to_string()
2015-01-20 06:30:19 +01:00
Benjamin Otte
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
Benjamin Otte
5ec97f6144
render: Remove unused header
2015-01-20 06:30:19 +01:00
Benjamin Otte
717877dff2
render: Rename gtkborderimage.[ch]
...
I want the gtkrender prefix for all filenames about rendering.
2015-01-20 06:30:18 +01:00
Benjamin Otte
cb0ca9a804
render: Use a GtkCssStyle instead of GtkStyleContext for focus
2015-01-20 06:30:18 +01:00
Benjamin Otte
5cc0cae4b7
render: Rename gtkthemingbackground.[ch]
...
I want the gtkrender prefix for all filenames about rendering.
2015-01-20 06:30:18 +01:00
Benjamin Otte
d25b4105d6
render: Take a GtkCssStyle for rendering frames
...
... and move the whole function into gtkthemingbackground.c
2015-01-20 01:23:19 +01:00
Benjamin Otte
d0a12d477e
borderimage: Use a GtkCssStyle instead of GtkStyleContext
2015-01-20 01:23:19 +01:00
Benjamin Otte
dd2202288a
themingbackground: Use a GtkCssStyle instead of GtkStyleContext
2015-01-20 01:23:19 +01:00
Benjamin Otte
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