Commit Graph

1030 Commits

Author SHA1 Message Date
64c7bcbab2 batteryaid: port to GTK 4 2022-04-01 13:15:49 -07:00
307fa9c3f9 visualizergroup: port to GTK 4 2022-04-01 13:15:49 -07:00
c7fc10b954 notebook: port to GTK 4 2022-04-01 13:15:49 -07:00
35d401417b display: port to GTK 4 2022-04-01 13:15:49 -07:00
997477c031 eggthreegrid: port to GTK 4 2022-04-01 13:15:49 -07:00
6cc12c0779 memprofpage: port to GTK 4 2022-04-01 13:15:48 -07:00
0de9db52da visualizerticks: port to GTK 4 2022-04-01 13:14:51 -07:00
33a2f42b03 markvisualizer: port to GTK 4 2022-04-01 13:14:51 -07:00
c35e109958 duplexvisualizer: minimal GTK 4 port
This should be rewritten to draw offscreen and then upload textures as
necessary to the GPU for blitting.
2022-04-01 13:14:51 -07:00
52e6727beb scrollmap: port to GTK 4
And use snapshots to paint color blocks
2022-04-01 13:14:51 -07:00
e0b1271994 visualizersframe: inherit from GtkWidget and port to GTK 4
Lots that can go wrong here, and most likely we'll want to redo how
selections work over time to use a drag gesture instead of the sort
of annoying click/motion stuff we're doing here.
2022-04-01 13:14:51 -07:00
f1adbe7d3f memprof: port visualizer to GTK 4 2022-04-01 13:14:51 -07:00
ddb8db5872 cellrendererpercent: subclass private progress implementation
We might get this subclassable in GTK soon, but until then just subclass
so we can move on and port more things.
2022-04-01 13:14:51 -07:00
c6da3d3898 recordingstateview: port to GTK 4 2022-04-01 13:14:51 -07:00
d6b1a820d0 failedstateview: port to GTK 4 2022-04-01 13:14:51 -07:00
e1c2f0ee55 visualizergroup: port to GTK 4 2022-04-01 13:14:51 -07:00
9a95835b59 profilerassistant: port to GTK 4 2022-04-01 13:14:51 -07:00
e29b1836cc page: start porting to GTK 4
More work to be done, but setup the base object.
2022-04-01 13:14:51 -07:00
8136484846 environeditor: port to GTK 4
This required using an intermediate object, so will need further testing.
2022-04-01 13:14:51 -07:00
ae61e9ceca detailspage: port to GTK 4 2022-04-01 13:14:51 -07:00
6759bc4ac8 cpuaid: port to GTK 4 2022-04-01 13:14:51 -07:00
226a1f147b procsvisualizer: port to GTK 4
This is a minimal port. We'll definitely want to cache the rendered cairo
surface going forward instead of redrawing every frame.
2022-04-01 13:14:51 -07:00
234d37ea12 libsysprof-ui: inherit visualizer from GtkWidget 2022-04-01 13:14:51 -07:00
36a9e37ee2 display: inherit from GtkWidget 2022-04-01 13:14:51 -07:00
5e55f5f2cc build: switch build to GTK 4 2022-04-01 13:14:51 -07:00
a1f8f7e9f8 build: remove dazzle reference 2022-04-01 13:14:51 -07:00
b4c8530019 build: remove libdazzle 2022-04-01 13:14:51 -07:00
8835e53741 window: fix runtime issue with missing properties 2022-04-01 13:14:51 -07:00
ae25672f0e memprofpage: cleanup warnings 2022-04-01 13:14:51 -07:00
304b2901ac detailspage: dedazzle 2022-04-01 13:14:51 -07:00
48d8b3da8e libsysprof-ui: add EggThreeGrid
So we can drop our use from libdazzle. We'll need to port this to GTK 4
but it shouldn't be too bad.
2022-04-01 13:14:51 -07:00
a383f4d78a window: dedazzle
This can move to AdwApplicationWindow at some point.
2022-04-01 13:14:51 -07:00
f2aca5a812 app: dedazzle
We will have to find alternate means to load style sheets in the future,
but we can rely on AdwApplication for that.
2022-04-01 13:14:51 -07:00
3b2c111598 visualizergroupheader: dedazzle 2022-04-01 13:14:51 -07:00
0a83abe1e5 sysprof: add EggBindingGroup
Until we have this in GLib, just embed it.
2022-04-01 13:14:51 -07:00
4e8b2ce9c5 sysprof-ui: remove dazzle header 2022-04-01 13:14:51 -07:00
24c1cfe5bf memprofpage: remove dazzle usage
We will need to use some replacements in GTK 4 though.
2022-04-01 13:14:51 -07:00
5a6e0a3594 marksaid: embed rgba shading code 2022-04-01 13:14:51 -07:00
99a4cd8309 css: remove dead CSS 2022-04-01 13:14:51 -07:00
07d2de5d3a cellrendererduration: inline rounded rectangle
We can just embed this instead of relying on dazzle, and inline it at
the same time.
2022-04-01 13:14:51 -07:00
fb16745723 visualizer: remove DzlBin usage
We can just use GtkBin for now, and in GTK 4 we'll switch to using
GtkWidget as the parent type. But this helps us progress on de-dazzling.
2022-04-01 13:14:51 -07:00
94d7e90206 display: use GtkPaned
We don't need MultiPaned here (other than it works nicer than GtkPaned).
We can move to PanelMultiPaned in the future if we need it.
2022-04-01 13:14:51 -07:00
f56c36b054 callgraphpage: remove dazzle for shortcuts
We can do this manually with a key controller.

In the future, we will do this with GTK 4's shortcut controller.
2022-04-01 13:14:51 -07:00
2888ae2ad8 visualizergroup: remove dazzle usage 2022-04-01 13:14:51 -07:00
b307550ea5 build: fix various meson deprecation warnings 2022-04-01 13:09:56 -07:00
c75391e681 tools/sysprof-cli: always inherit stdin
Fixes #76
2022-04-01 12:57:30 -07:00
8799d2f0ca libsysprof: add API to inherit stdin
Related #76
2022-04-01 12:57:02 -07:00
1587bc13b6 libsysprof: add accessors for setting spawnable flags
We need this to be able to allow inheriting stdin from sysprof-cli.
2022-04-01 12:41:49 -07:00
3c5540047f build: bump for development 2022-04-01 12:41:14 -07:00
03652e1a44 proc: fix capture of mapped pathnames
pathnames are listed unescaped in /proc/[pid]/maps, so using %s as the
conversion specifier cuts pathnames off at space characters. Use %[^\n]
instead, to read everything until the end of the line.

Also, the scanf manpage states: "String input conversions store a
terminating null byte ('\0') to mark the end of the input; the maximum
field width does not include this terminator". So set the maximum field
width to 511 instead of 512, to leave one free byte in the buffer for
the terminating null byte.

Fixes #70
2021-11-23 14:41:31 +01:00