Lapo Calamandrei
940c77ad43
Adwaita: flatten scale and progressbar trough
2016-04-16 13:19:41 +02:00
Lapo Calamandrei
8ee4e45f8a
Adwaita: ensure titlebar corners are not rounded...
...
...when the window is maximized or tiled, by using more specific
selectors, since there were cases of erroneusly rounded corners.
See https://bugzilla.gnome.org/show_bug.cgi?id=765038
2016-04-16 12:04:02 +02:00
Руслан Ижбулатов
3ed9cb2488
gtk-builder-tool: use g_printf() instead of g_print()
...
1) g_print() can be redirected
2) g_print() does some extra processing, such as character set conversion.
Specifically, on W32 it will detect system codepage via GetACP(),
and will convert UTF-8 output into that codepage, even though
the output should stay unchanged (whether gtk-builder-tool interprets
strings from ui files as UTF-8 is a separate matter).
https://bugzilla.gnome.org/show_bug.cgi?id=765118
2016-04-15 17:45:27 +00:00
Lapo Calamandrei
159c65dcb8
Adwaita: really fix solid-csd
...
add a specificity bump hack in the titlebar solid-csd styling to
avoid being overridden by the split titlebar theme logic.
2016-04-15 18:28:26 +02:00
Lapo Calamandrei
de78627494
Adwaita: fix backdrop solid-csd
...
titlebar rounded corners were not overridden for backdrop state.
2016-04-15 18:00:37 +02:00
Lapo Calamandrei
266ae74afc
Adwaita: better solid-csd styling
2016-04-15 16:51:29 +02:00
Matthias Clasen
8a2061f581
inspector: Don't lie with statistics
...
If we don't have statistics, despite GOBJECT_DEBUG being set,
explain how to fix this.
2016-04-14 22:52:59 -04:00
Matthias Clasen
7552b7fca8
GtkBuilder: Mention how GVariant properties are parsed
2016-04-14 15:30:59 -04:00
Benjamin Otte
3bc58d01e3
iconhelper: Invalidate on clear()
...
When clearing the icon helper, we need to invalidate it. Otherwise the
previous icon keeps lingering along.
This is not relevant inside gtkiconhelper.c where other code causes the
invalidation, but happens when external code calls
_gtk_icon_helper_clear().
https://bugzilla.gnome.org/show_bug.cgi?id=765066
2016-04-14 15:17:02 -04:00
Sebastien Bacher
e92eaaa049
gtkplacessidebar: don't margins in the code
...
those should rather be defined by the theme
https://bugzilla.gnome.org/show_bug.cgi?id=763768
2016-04-14 11:46:34 +02:00
Carlos Garnacho
46cdb44fdd
GtkWindow: Ensure the toplevel is realized before realizing popovers
...
Otherwise those get a NULL parent window, which is toplevel-y enough
to disembody the popover.
https://bugzilla.gnome.org/show_bug.cgi?id=764060
2016-04-14 11:39:48 +02:00
Matt Watson
df08fc91bd
css: always get default font size in pixels
...
Fixes a couple bugs...
- Pixel font sizes in css would render as point sizes.
- For em font sizes, where the parent size was set and not default, we would
incorrectly convert a pixel value from points to pixels.
We'll always grab the default font size in pixels so we don't keep confusing
things.
Worth noting that gtk css font-size will still behave differently than the
web. Pango interprets font-size differently.
2016-04-12 16:58:55 -07:00
Sébastien Wilmet
f9ba55eaad
app: add missing g_returns
...
And have the g_returns in the same order as the function parameters.
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-12 20:32:49 +02:00
Rico Tzschichholz
c8d1108574
gtk: Annotate GtkFlowBoxCreateWidgetFunc as "transfer full"
2016-04-12 13:30:04 +02:00
Balló György
413d27508f
GtkTrayIcon: fix uninitialised variable
...
https://bugzilla.gnome.org/show_bug.cgi?id=764863
2016-04-11 22:03:48 -04:00
Mohammed Sadik
3f8313c735
documentation: trivial typo fixes in GtkWidget
...
https://bugzilla.gnome.org/show_bug.cgi?id=764925
2016-04-11 22:03:48 -04:00
Matthias Clasen
28042ef336
listbox: Fix css node ordering
...
When inserting a child at the top, we were not inserting its
css node properly.
https://bugzilla.gnome.org/show_bug.cgi?id=764710
2016-04-11 07:52:39 -04:00
Emmanuele Bassi
9610675faf
recent-manager: Always ensure that size is reset on creation
...
Whenever we create a new GBookmarkFile, we need to set the size to 0.
https://bugzilla.gnome.org/show_bug.cgi?id=620065
2016-04-10 18:41:23 +01:00
Emmanuele Bassi
cc08a965be
recent-manager: Fix the error domain and message on move_item()
...
Using NOT_FOUND when moving is wrong and unhelpful.
https://bugzilla.gnome.org/show_bug.cgi?id=620065
2016-04-10 18:39:33 +01:00
Emmanuele Bassi
bccef4e41a
recent-manager: Emit ::changed on file deletion
...
This will clear out the list of recently used files, and will allow GVFS
to handle this case.
https://bugzilla.gnome.org/show_bug.cgi?id=693077
2016-04-10 18:35:38 +01:00
Emmanuele Bassi
90d28d6bbf
Assign a recent manager if one is set
...
The GtkRecentAction implementation ignored a GtkRecentManager passed to
its :manager property.
https://bugzilla.gnome.org/show_bug.cgi?id=620065
2016-04-10 18:35:38 +01:00
Sébastien Wilmet
ee58a52a61
app: minor code improvements
...
- use GDK_EVENT_PROPAGATE
- pass better zero-values to gtk_init(), since the parameters are
pointers.
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
1f87c1cc0b
app: improve code of extract_accels_from_menu()
...
sub_model is clearer than "m". And we don't use the key, so we can pass
NULL instead.
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
687d3eb48f
app: use g_set_object()
...
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
29971b0cc9
app: don't use deprecated function
...
gtk_application_add_accelerator() is deprecated, but was still used
inside IGNORE_DEPRECATIONS's.
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
399e8db336
app: improve doc of gtk_application_get_window_by_id()
...
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
40e40b7ffc
app: improve doc of gtk_application_set_accels_for_action()
...
When reading the API for the first time I didn't know what was the
"detailed" action name.
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:07 +02:00
Sébastien Wilmet
48afd8a5f0
app: avoid code duplication for setting accels
...
The implementation of the deprecated functions is now based on the
non-deprecated gtk_application_set_accels_for_action().
https://bugzilla.gnome.org/show_bug.cgi?id=764846
2016-04-10 16:54:06 +02:00
Lukas K
8fc1ca1ef2
Fix gtk_scrollable_get_border annotation
...
https://bugzilla.gnome.org/show_bug.cgi?id=764540
2016-04-10 15:56:29 +02:00
Matthias Clasen
abff6e23c0
inspector: simplify some code
2016-04-09 15:48:34 -04:00
Sébastien Wilmet
6db7de3f7b
app: fix indentation
...
And add missing curly braces.
2016-04-09 18:54:42 +02:00
Matthias Clasen
af1c873bca
inspector: Use GdkAxes instead of GdkAxisUse
2016-04-09 12:14:33 -04:00
Matthias Clasen
d83ad00f9e
inspector: Add an origin mark to the slowdown scale
...
Makes it easier to get back to the original speed.
2016-04-09 11:56:08 -04:00
Matthias Clasen
e6c408c08a
inspector: Give the font scale an entry
...
This matches what Matt did for the slowdown.
2016-04-09 11:56:08 -04:00
Sébastien Wilmet
b3dc473057
docs: trivial fixes in GtkApplication-related documentation
2016-04-09 09:45:33 +02:00
Matt Watson
a970ba5ef6
animatedstyle: don't share styleanimations
...
Because of our port of css animation and css transition to
progress tracker, we should not think of animated styles as
immutable objects that can map any timestamp to css values.
Rather, timestamps can correspond to different values depending
on the value of GTK_SLOWDOWN over the course of the animation.
To keep animated styles and style animations totally immutable,
we will not share styleanimations between animatedstyles, and
make a new copy of a styleanimation for each timestamp.
2016-04-08 16:09:30 -07:00
Matt Watson
7b68bdb831
animatedstyle: just ref current style if timestamp the same
2016-04-08 16:09:30 -07:00
Matt Watson
6a88ac3b4c
animatedstyle: fail to create new style if timestamp goes backwards
...
With slowdown factor, we will only we be able to handle timestamps
that monotonically increase.
2016-04-08 16:09:30 -07:00
Matt Watson
2800b00e1d
cssanimation: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
50e057e025
csstransition: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
511f138328
entry: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
d57ebe2de7
progressbar: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
5237b7a6b0
scrolledwindow: port indicator fade to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
dc8b80cd32
popover: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
7ad64a20aa
switch: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
2ff62595ed
revealer: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
62b224a8df
stack: skip first frame for animations
...
Not the ideal solution for this problem, but in practice leads to
much better performance on lower end hardware.
Stack does a double draw on the first frame of its animation, of
both the old contents (into a cairo surface) and the new contents.
Homogeneous stacks only need to reallocate contents on the first
frame.
On lower powered hardware where our frames will be a good deal
slower than the refresh rate anyway, we can assure a smother
experience by waiting a frame to start tweening where frame duration
will be more consistent.
2016-04-08 16:09:30 -07:00
Matt Watson
3909f818c4
stack: port to progress tracker
2016-04-08 16:09:30 -07:00
Matt Watson
46b120b35e
inspector: add slider to control slowdown factor
2016-04-08 16:09:29 -07:00
Matt Watson
f2979323bf
progresstracker: add GTK_SLOWDOWN environment variable
...
As we consolidate widgets to use progress tracker, this will allow
us to control the speed of all animations in a centralized place
2016-04-08 16:09:29 -07:00