Bastien Nocera
1877bb8a27
inspector: Show app ID and resource path in the General tab
...
This makes it easier to figure out those values (which are mentioned in
the GtkApplication documentation) rather than working that out from the
way they're generated (or documented as being generated).
2022-02-17 15:14:16 +01:00
Bastien Nocera
0621dbc745
inspector: Search by pointer address
...
Useful to find a widget that corresponds to a pointer address in gdb.
2022-02-04 18:39:56 +01:00
Timm Bäder
1354854d23
inspector: Fix coding style
...
ffs
2021-12-31 14:41:35 +01:00
Alexander Mikhaylenko
b997d1e892
inspector: Register extension on startup
2021-12-29 04:42:51 +05:00
Alexander Mikhaylenko
4b71fba540
Revert "inspector: Export gtk_inspector_init"
...
This reverts commit 3f5107cea5
.
2021-12-29 04:12:16 +05:00
Benjamin Otte
6da952100c
inspector: Add dnd inspection support
...
This has lots of issues:
* It randomly crashes when data is loading while the dnd goes away.
* The data gets randomly reset at the wrong time
* Can't scroll the window on Wayland
* ...
But it's better than nothing, so better get it committed.
2021-12-27 05:59:16 +01:00
Benjamin Otte
99c2936e90
Merge branch 'wip/otte/inspector' into 'main'
...
inspector: Add measure graph
See merge request GNOME/gtk!4260
2021-12-16 21:46:52 +00:00
Benjamin Otte
66c74d6091
inspector: Add measure graph
...
Generates a graph visualizing calls to gtk_widget_measure().
Generation of the graph can be slow - like when it forces Pango to wrap
a huge label 1000s of times.
You can dnd the graph to look at it closer or to impress people in
gitlab issues.
2021-12-16 19:36:54 +01:00
Benjamin Otte
a43ba245e2
inspector: Remove a stray g_print()
2021-12-16 19:36:54 +01:00
Matthias Clasen
4f751aa53d
inspector: Highlight event sequences
...
Optionally, highlight rows of events whose
event sequences match the selected event.
2021-12-15 22:07:07 -05:00
Matthias Clasen
69b160cfe8
inspector: Details about touchpad events
...
Useful to have for debugging these.
2021-12-15 21:58:57 -05:00
Matthias Clasen
ee7541c032
inspector: Add axes to event details in recorder
...
This is useful information if you have devices
producing such events.
2021-12-15 21:58:57 -05:00
Matthias Clasen
9648cf226b
inspector: Show event history in recorder
...
This was instrumental in debugging why
scroll compression does not work.
2021-12-14 23:43:29 -05:00
Matthias Clasen
6bb2e5625a
inspector: Remove debug spew
2021-12-14 22:03:52 -05:00
Matthias Clasen
d57a5dffa1
inspector: Add event recording
...
Make the recorder also keep track of events,
and show them in some detail.
2021-12-14 22:01:40 -05:00
Matthias Clasen
1028ca0841
inspector: More tweaks to the recorder
...
Put the two left columns in a stack, and add
an empty page there. This will let us add
other recording types in the future, with
their own pages.
2021-12-14 19:51:35 -05:00
Matthias Clasen
6dbe6b42c2
inspector: Tweaks to the recorder
...
Don't show the profiler data in the frame list,
instead show timestamps there.
2021-12-14 19:34:53 -05:00
Matthias Clasen
e9fd7b7ed6
inspector: Use a listview in the recorder
...
Its the awesome new list widget, lets use it!
2021-12-14 15:10:11 -05:00
Matthias Clasen
dbe5e57b8e
inspector: Show more datatypes for the clipboard
...
It is easy enough to show colors, files and pixbufs.
2021-12-12 18:36:58 -05:00
Benjamin Otte
600ab5ba5f
inspector: Add a clipboard page
...
Shows all the formats supported by the clipboard (and primary clipboard)
and allows displaying them (by potentially downloading them)
2021-12-11 23:01:42 +01:00
Christian Hergert
6be352f446
inspector: add im-module
...
This adds a new row to the Global/Information section which displays the
GTK im-module that is likely to be in use unless changed by an application.
It responds to updates of GtkSettings:gtk-im-module unless the
GTK_IM_MODULE environment variable is set.
Fixes #4512
2021-12-03 12:11:25 -08:00
Matthias Clasen
e0deacd236
inspector: Make dropdowns bigger
...
If there's enough values to warrant scrolling,
the dropdown was much too small for comfort.
2021-11-30 18:38:33 -05:00
Alexander Mikhaylenko
83319a3ea6
inspector: Expand the controllers column view
2021-10-24 22:27:50 +05:00
Alexander Mikhaylenko
516dc79605
inspector: Use .list for property list as well
2021-10-24 22:27:50 +05:00
Alexander Mikhaylenko
2aa2b7f61e
inspector: Clean up the .list style
...
Make it work with the property list as well, handle spinbuttons, adjust
paddings so that buttons don't touch each other, don't override horizontal
padding unnecessarily.
2021-10-24 22:27:24 +05:00
Alexander Mikhaylenko
0053160f28
inspector: Stop using .sidebar for the recorder page
...
Those aren't sidebars. Add separators manually instead of misusing the
style class.
2021-10-24 04:01:35 +05:00
Alexander Mikhaylenko
2ac8132499
inspector: Use consistent GtkTextView margins
2021-10-24 03:58:21 +05:00
Alexander Mikhaylenko
7aa34cb3d2
inspector: Add a separator under toolbar in css editor
...
Same as object properties.
2021-10-24 03:55:26 +05:00
Alexander Mikhaylenko
3aee23c172
inspector: Use tabular figures for list position label
...
Avoid buttons jumping around while moving through list models.
2021-10-24 03:37:01 +05:00
Alexander Mikhaylenko
bec9141233
inspector: Use .toolbar for toolbars
...
Remove all of the manual margins, spacing and has-frame=0, be more
consistent.
2021-10-24 03:37:01 +05:00
Alexander Mikhaylenko
131683fdcf
inspector: Use a GtkSeparator for the object details toolbar
...
Remove a hardcoded light grey border from the sidebar that was used for
this.
2021-10-24 02:53:22 +05:00
Alexander Mikhaylenko
8176b0c2fc
inspector: Remove list header style
...
The one from the theme works just fine.
2021-10-24 02:51:07 +05:00
Matthias Clasen
144f727d5a
Rename ngl to gl
...
We have only one gl renderer now, and it is
a bit odd for it not be called gl.
2021-10-07 13:05:53 -04:00
Matthias Clasen
3f5107cea5
inspector: Export gtk_inspector_init
...
Quietly export this function mainly for the benefit
of libadwaita, which can can use this to install its
implementation of the gtk-inspector-page extension
point.
2021-10-05 20:10:34 -04:00
Benjamin Otte
659181f74b
win32: Fix GTK warnings
2021-09-24 23:26:45 +02:00
Benjamin Otte
a29474567a
gdk: Remove gdkinternals.h
2021-09-24 22:50:29 +02:00
Benjamin Otte
811b5d995b
gdk: Don't include gdkinternals.h in gdk-private.h
2021-09-24 22:11:57 +02:00
Timm Bäder
2bc82da34d
inspector: Cache if we have ever constructed a window
...
Silly optimization to get rid of
gtk_main_do_event
gtk_inspector_handle_event
gtk_inspector_window_get_for_display
g_object_get_data
showing up in profiles even though it's useless since we've never even
created any inspector window in the first place.
2021-09-18 08:29:18 +02:00
Matthias Clasen
d75246a543
inspector: Cosmetics
...
Make some settings entries smaller, and make the
scales match in size. Also, inline adjustments
in the ui file, since we can do that now.
2021-09-05 12:59:11 -04:00
Benjamin Otte
cbc050b9ed
recorder: Make the render nodes in the list draggable
...
You can (soon) drag any of the nodes directly into the node-editor.
2021-08-30 06:02:16 +02:00
Benjamin Otte
72e2a46c05
inspector: Add support for displaying GL errors
...
Also, no need to show a GL version if GL isn't available.
2021-07-22 16:27:32 +02:00
Christian Hergert
352898ae9e
inspector: fix compilation with broadway
2021-06-17 11:54:00 -07:00
Matthias Clasen
8c75e6896e
inspector: Use new get_egl_display apis
...
This makes the code a bit more concise.
Also, get WGL information when we are using it.
2021-05-13 15:25:18 -04:00
Matthias Clasen
ea162ed016
inspector: Avoid a crash with GL variants
...
When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.
2021-05-10 21:25:08 -04:00
Matthias Clasen
e2aa161590
inspector: Show EGL info for X11 as well
2021-05-10 21:24:50 -04:00
Matthias Clasen
a723baec4b
inspector: Show text direction
...
This is not a property, so show it on the misc tab.
2021-05-10 20:55:43 -04:00
Matthias Clasen
564d835fba
Merge branch 'broadway-display-scale' into 'master'
...
broadway: Add a setter for display scale
Closes #3934
See merge request GNOME/gtk!3538
2021-05-10 20:11:38 +00:00
Matthias Clasen
b13c2e17f1
inspector: Support scale changes on Broadway
2021-05-10 10:55:41 -04:00
Matthias Clasen
0108ffe059
inspector: Fix saving css
...
g_file_replace_contents() does not accept -1
as length, unlike similar apis.
2021-05-09 11:19:43 -04:00
Matthias Clasen
f9d6134247
inspector: Improve monitor information display
...
Avoid a nested listbox, show the connector,
don't show information we don't have. Also,
disconnect all signal handlers from the display
when the inspector is going away.
2021-05-02 21:02:09 -04:00