Benjamin Otte
26f36ef8ae
cssnodedeclaration: Store the GType of the node
2015-01-07 14:26:48 +01:00
Benjamin Otte
9645daf48f
cssstyle: Move function from vfunc to static func
...
compute_dependencies() is only used internally by GtkCssStaticStyle,
so there's no need to have it elsewhere.
2015-01-07 14:26:47 +01:00
Benjamin Otte
cd056adb2f
cssstaticstyle: Move function
...
And with that move, GtkCssStaticStyle is immutable.
2015-01-07 14:26:47 +01:00
Benjamin Otte
8b823d7e13
cssstaticstyle: Move function
...
We want the new() return values to be immutable, so we have to move the
code that modifes them.
2015-01-07 14:26:47 +01:00
Benjamin Otte
b7be202089
stylecontext: Refactor update_properties()
...
It now always returns a new instance.
2015-01-07 14:26:47 +01:00
Benjamin Otte
7406ec84bc
stylecontext: Simplify function
...
Instead of computing the changes manually everywhere from the parent
changes, just pass in the parent changes.
2015-01-07 14:26:47 +01:00
Benjamin Otte
c0af2d6fa6
stylecontext: Simplify code
...
Compute the differences only once and not in both if branches.
2015-01-07 14:26:47 +01:00
Benjamin Otte
7493e814a9
cssanimatedstyle: Apply animation values after creation
...
This makes GtkCssAnimatedStyle immutable.
2015-01-07 14:26:47 +01:00
Benjamin Otte
a3bf910585
cssanimatedstyle: Make advancing the style return a new style
...
This is another step towards making CssStyles immutable.
2015-01-07 14:26:47 +01:00
Benjamin Otte
b53d5d0643
stylecontext: Fold a function into only caller
2015-01-07 14:26:47 +01:00
Benjamin Otte
f3f021106d
cssanimatedstyle: Avoid creating animation
...
... when no animation exists.
This makes the function name kinda wrong, but I'm not sure what else to
call it.
2015-01-07 14:26:47 +01:00
Benjamin Otte
682abc345f
cssanimatedstyle: Remove unused function
2015-01-07 14:26:47 +01:00
Benjamin Otte
980923c761
cssanimatedstyle: Merge two functions
2015-01-07 14:26:47 +01:00
Benjamin Otte
0bab285fe0
stylecontext: Make build_properties create the style
2015-01-07 14:26:47 +01:00
Benjamin Otte
79f7392109
stylecontext: Make static styles static
...
Instead of keeping an animated style everywhere, we replace it with the
static style when nothing gets animated.
Apart from making the code cleaner, this gets rid of a bunch of animated
style values that do nothing but wrap a static style.
2015-01-07 14:26:47 +01:00
Benjamin Otte
db36ee36a6
stylecontext: Split function
2015-01-07 14:26:47 +01:00
Benjamin Otte
85dd685b3f
stylecontext: Only look up stuff in the cache that can be in the cache
...
Only saved styles are stored in the cache so we should look only those
up there.
2015-01-07 14:26:47 +01:00
Benjamin Otte
77b876fad3
stylecontext: don't unset the current style info when clearing cache
...
Instead, do it manually.
2015-01-07 14:26:47 +01:00
Benjamin Otte
270e73bfcc
stylecontext: Always pass the static style
...
... to build_properties.
There is always one available, so we can insist on that one.
This simplifies a bunch of code.
2015-01-07 14:26:47 +01:00
Benjamin Otte
c7e9489e3e
stylecontext: Use a static style when saved
...
The only style that is animated is the style of the unsaved primary
node. So there's no need to create animated style objects for the other
ones.
There is a bunch of ugliness in the code currently. Further commits are
expected to fix them.
2015-01-07 14:26:47 +01:00
Benjamin Otte
ac215ffc8f
cssstyle: Add GtkCssStaticStyle
...
For now, this is only an implementation detail of the animated style.
The idea is to use GtkCssStaticStyle as the result of CSS queries and
then put a GtkCssAnimatedStyle on top that manages the animations. The
neat thing about this is that you can cache the static values.
2015-01-07 14:26:47 +01:00
Benjamin Otte
4168e0385e
cssstyle: Split into GtkCssStyle and GtkCssAnimatedStyle
...
GtkCssStyle is the base class to be used for all types of styles that do
exist.
GtkCssAnimatedStyle is the only implementation so far, that is exactly a
copy/paste of the old GtkCssStyle code.
2015-01-07 14:26:46 +01:00
Benjamin Otte
572f46067f
cssstyle: Rename GtkCssComputedValues => GtkCssStyle
...
This is literally just renaming of the object (and the associated source
files). No other changes are in there.
2015-01-07 14:26:46 +01:00
Benjamin Otte
f51419adb0
cssstylefuncs: Rename functions
...
This is in preaparation for the big GtkCssComputedValues => GtkCssStyle
rename
2015-01-07 14:26:46 +01:00
Christian Kirbach
314a168916
Updated German translation
2015-01-06 22:42:35 +00:00
Bruce Cowan
bb2be84af0
Updated British English translation
2015-01-05 20:41:18 +00:00
Benjamin Otte
78223932c5
cssselector: Reintroduce GOT_MATCH
...
I removed it in 14f5ce7108
because I
thought it was unnecessary, but it wasn't. When we build a tree like
this:
.matches ─┬─ .doesntmatch
└─ .alsodoesntmatch
We would get the changes for the .matches part returned. This is however
only right if that node of the tree contains results. If results only
exist with the child nodes (all of which don't match), then this part
should not match either.
2015-01-05 21:20:26 +01:00
Benjamin Otte
506639add1
cssselector: The if was the wrong way around
...
We want to keep matching as long as selectors are simple. Otherwise we'd
never be matching, because the first selector is always simple. Oops.
2015-01-05 21:20:26 +01:00
Sebastien Lafargue
43d6ebf9fb
cellrenderertext: notify inverted
...
The notify for "size" and "size-points" properties
are inverted.
https://bugzilla.gnome.org/show_bug.cgi?id=742311
2015-01-04 12:48:14 +01:00
Emmanuele Bassi
b46fdb2d13
calendar: Handle invalid dates
...
GtkCalendar can have an invalid date — mostly at initialization. This
means that GDateTime construction may fail. We need to handle that case
gracefully, like the old code did.
This fixes the `notify` test suite, which started failing with:
/Notification/GtkCalendar:
GLib-CRITICAL **: g_date_time_get_day_of_week: assertion 'datetime != NULL' failed
inside the Continuous builder.
2015-01-02 23:15:55 +00:00
Christian Hergert
21360a453c
textview: fix duplicated binding entries. use kp variants instead.
...
This appears to have accidentally used the normal keypresses twice instead
of the KP variants. This resulted in shift+insert pasting twice.
https://bugzilla.gnome.org/show_bug.cgi?id=742170
2014-12-31 23:27:55 -08:00
Inaki Larranaga Murgoitio
bf3b0ea641
Updated Basque language
2014-12-31 17:46:21 +01:00
Balázs Úr
cfcb43e3ca
Updated Hungarian translation
2014-12-31 13:29:14 +00:00
Gábor Kelemen
dce50674c0
Updated Hungarian translation
2014-12-31 13:02:56 +00:00
Balázs Úr
c0e26aad56
Updated Hungarian translation
2014-12-31 12:03:47 +00:00
Trần Ngọc Quân
38f9e4bf11
Updated Vietnamese translation
...
Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
2014-12-31 15:50:54 +07:00
Ignacio Casal Quinteiro
23fa0e341f
Fix typos in documentation
2014-12-30 13:46:11 +01:00
Jasper St. Pierre
5a41f63426
gtkstylecontext: Don't try to emit a signal when finalizing
2014-12-28 18:13:34 -08:00
Jasper St. Pierre
ecc64f63e4
gdkeventsource-wayland: Fix style
2014-12-28 18:13:34 -08:00
Jasper St. Pierre
915e4c6dd7
inspector: Update translations .ui.h file
2014-12-28 18:13:34 -08:00
Matthias Clasen
b4375cde48
Inspector: Show some X display characteristics
...
This helps diagnose e.g. csd problems.
2014-12-28 11:36:10 -05:00
Matthias Clasen
20f1c06eed
Restore a missing file
...
No wonder nobody has tried my awesome magnifier yet...
2014-12-28 11:14:39 -05:00
Rico Tzschichholz
07efae7288
mir: Add missing reference to gdkmir-private.h
2014-12-28 13:34:16 +01:00
Trần Ngọc Quân
049ec56107
Updated vi translation for gtk+properties
...
Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
2014-12-28 09:20:14 +07:00
Christian Hergert
4d4883f010
scrolledwindow: fix spurious warnings from previous scrollbar commits
2014-12-26 14:19:55 -08:00
Emmanuele Bassi
5d42c55f28
x11/gl: Set the correct minor version
...
The major version is set twice.
https://bugzilla.gnome.org/show_bug.cgi?id=741954
2014-12-25 11:49:58 +00:00
Philip Chimento
ec37fbe2e2
quartz: NSWindow NULL check in get_scale_factor
...
Sending backingScaleFactor to a NULL NSWindow will silently give the
value 0 for the scale factor, causing insidious divide-by-zero bugs down
the line. This checks if the NSWindow is NULL first, as seems to happen
throughout the rest of the file.
Note that I don't have a hi-DPI OS X machine to test this on, though.
https://bugzilla.gnome.org/show_bug.cgi?id=738338
2014-12-24 14:57:40 -08:00
John Ralls
4bd787f2af
Prevent double-free after 8b5d30d43
.
2014-12-24 12:50:57 -08:00
Carlos Garnacho
7f28077b5a
scrolledwindow: Enable "hover" mode in scrollbars after a timeout
...
This way transient mouse movements over scrollbars don't cause flickering,
and more spaced movements have it enabled shortly.
2014-12-24 09:26:43 -05:00
Carlos Garnacho
d2b2b34ae5
scrolledwindow: improve v/hscrollbar proximity detection
...
Only horizontal coordinates are checked for the vertical scrollbar, and
vice versa.
2014-12-24 09:26:43 -05:00