Commit Graph

19 Commits

Author SHA1 Message Date
19ca2e4ecc alignment: fix armel/armhf/mipsel build failure
This commit extends commit faf1e24edf
"zoom-manager: bring back attribute aligned(8)"
to both places where the attribute was previously dropped from
in commit 63579451b5 "alignment: set alignment on structs".

3.22.3 + commit 6a3d7282ec + commit faf1e24edf + this patch
has been successfully build tested on Debian armhf porterbox
(harris.debian.org). (It also means we end up with exactly
the same as the 3.22.2 + patch situation currently shipped
in Debian 'stretch' 9.0 regarding alignment/cast fixes.)

https://bugzilla.gnome.org/show_bug.cgi?id=784466
2017-07-04 18:15:06 +02:00
6a3d7282ec visualizer: use cast macro with type check 2017-02-17 00:20:13 -08:00
63579451b5 alignment: set alignment on structs
This uses an alternate idea for setting the structure alignments. Lets
see if this silents the ARM builder cast alignment issues.

GSlice (which is what is used for GObjects) guarantees a 2-pointer size
allocation, which means we can be ensured that the alignment is at least
8 bytes.
2016-11-15 22:18:09 -08:00
a760a6ca10 build: silence some cast-align warnings on ARM 2016-10-14 11:40:55 -07:00
c12c8bc345 visualizer-ticks: remove GdkWindow from ticks widget
This is preventing us from selecting using the region where the
ticks are drawn. This allows the GtkOverlay pass-through child
property to work.
2016-10-10 15:51:48 -07:00
e85707f5c9 visualizer-ticks: make lines sharper
These multi-width lines were blurry, so for now just make them
1px wide.
2016-10-07 12:58:30 -07:00
8f613b5352 visualizer-ticks: fix msec value 2016-10-06 22:26:52 -07:00
6eee3343de visualizer-ticks: avoid FPE 2016-09-30 18:25:22 -07:00
76b92cec99 visualizer-ticks: don't render 00:00:00.0000
If we are at the beginning of a capture, we would end up drawing
the msec because h/m/s were all zero. Make sure we also have a
non-zero msec or just fallback to regular timestamps.
2016-09-30 17:07:33 -07:00
0d8f45f034 visualizer-ticks: draw position labels next to ticks
This adds label text next to important epochs. We determine
which epochs are important by trying to choose the waypoints
that had more than 2 epochs land in view.

This avoids showing numbers for multiple time-spans, but giving
enough context to be useful.
2016-09-30 16:54:17 -07:00
c116120563 visualizer-ticks: adjust ticks for capture epoch
We need to take into account the real start of the capture to
land the ticks in the right position. Add "epoch" concept
to SpVisualizerTicks for just this purpose.
2016-09-30 13:21:17 -07:00
4d48f98f6d visualizer-ticks: remove extraneous assertion
This isn't exactly true anymore, so we need to remove it now
that we can have more interesting time spans.
2016-09-28 14:13:15 -07:00
f8a0f2701e visualizer-view: add SpVisualizerView
This adds a new helper widget SpVisualizerView to simplify using
visualizers from applications using libsysprof-ui-2 such as
Builder.

We can manage the view range, zoom, etc from this widget going
forward.
2016-09-27 23:15:56 -07:00
f2f03259a2 visualizer-ticks: set CSS element name to "ticks" 2016-09-27 17:21:49 -07:00
fa1a8d9276 visualizer-ticks: use color from GtkStyleContext
This should improve the coloring when used with a dark theme.
2016-09-27 17:21:28 -07:00
3a3b4f1fa0 visualizer-ticks: adjust line draw ordering
We want to draw the most important ticks on top, which will
improve things should we start using CSS to define styling.
2016-09-27 17:09:37 -07:00
857082b222 visualizer-ticks: tweak half-line positioning
Just to get things a bit more friendly should we choose even
line widths.
2016-09-27 17:08:52 -07:00
984fac73b6 visualizer-ticks: adjust tick positioning and add 5sec span
Just some improvements to out positioning so things line up
as expected.
2016-09-27 16:38:17 -07:00
aa21c2379f visualizer-ticks: start on minimal ticks implementation
We need some sort of scale for content, so we will do this with
an overlay for now. However, we will also want something to be
able to do selections in the future.

This still needs some iteration for correctness, but this sort
of gets the ball rolling.
2016-09-27 15:42:26 -07:00