summaryrefslogtreecommitdiff
path: root/gtk/inspector
Commit message (Collapse)AuthorAgeFilesLines
* theme: Port .boxed-list style from libadwaitaAlexander Mikhaylenko2023-03-145-1781/+1646
| | | | | | Consistently use it for boxed lists in inspector and gtk-demo. Fixes issues like https://gitlab.gnome.org/GNOME/gtk/-/issues/3145
* inspector: Force a full redraw for debug nodesMatthias Clasen2023-03-112-1/+29
| | | | | | Without this, debug nodes randomly are missing in the tree, where we are reusing older render nodes.
* inspector: Make really sure we don't inspect ourselvesBenjamin Otte2023-03-061-1/+9
| | | | | | | | The problem here is that new windows appear in the list before the window's dispay gets set and we don't update the filter when the display changes (would need watches support for the filtermodel). So add this somewhat hacky method.
* Merge branch 'wip/chergert/fix-action-activation-crash' into 'main'Emmanuele Bassi2023-03-041-1/+1
|\ | | | | | | | | inspector: be defensive against out parameters See merge request GNOME/gtk!5591
| * inspector: be defensive against out parametersChristian Hergert2023-03-031-1/+1
| | | | | | | | | | | | | | Set initial state to NULL so that we don't risk accessing an unset out parameter. Fixes a crash when activating certain actions.
* | a11y: Plug reference leaksEmmanuele Bassi2023-03-031-6/+21
|/ | | | | The gtk_accessible_get_at_context() getter is now transfer full, which means we need to drop the reference when getting the GtkATContext.
* inspector: Remove debug spewMatthias Clasen2023-03-011-2/+0
|
* inspector: Look for icon themes in system data dirsMatthias Clasen2023-02-281-0/+20
| | | | For some reason, these were not included, and they should.
* Make mask nodes more versatileMatthias Clasen2023-02-141-0/+6
| | | | | Add a GskMaskMode enumeration and implement it in the GL and cairo renderers.
* gsk: Introduce mask nodesMatthias Clasen2023-02-121-0/+10
| | | | | | | | | Add GskMaskNode, and support it in the render node parser, in the inspector and in GtkSnapshot. The rendering is just fallback for now. Based on old work by Timm Bäder.
* gsk: Introduce GskTextureScaleNodeMatthias Clasen2023-02-111-0/+20
|
* inspector: Show if accessibles aren't realizedMatthias Clasen2023-02-031-2/+9
| | | | | This prevents confusion and makes it clear what is going on.
* inspector: Show monitor descriptionsMatthias Clasen2023-02-021-0/+1
|
* object_tree.c: One gtk_list_item_get_child call is redundantLukáš Tyrychtr2023-01-271-1/+0
| | | | Fixes #5551
* inspector: Avoid super-wide windowMatthias Clasen2022-12-311-0/+2
| | | | | Ellipsize values that can get long, to avoid forcing an excessively wide window.
* filedialog: Add gtk_file_dialog_set_initial_file()Benjamin Otte2022-12-242-2/+2
| | | | | | A shortcut for setting initial-folder and initial-name at the same time. We can remove all arguments from the actual async calls this way.
* filedialog: Add gtk_file_dialog_set_initial_name()Benjamin Otte2022-12-242-4/+6
|
* gtk: Stop using gtk_widget_show/hideMatthias Clasen2022-11-2810-115/+44
| | | | | | | gtk_widget_set_visible and gtk_window_present are better alternatives, and calling gtk_widget_show on newly created widgets is no longer necessary anyway.
* Inspector: Add a missing event typeMatthias Clasen2022-11-151-1/+4
| | | | | | | | We did not have a name for the new touchpad hold events. To prevent this from happening again in the future, add a static assertion.
* Deprecate GtkFileChooser and implementationsMatthias Clasen2022-10-291-1/+0
| | | | | | | | | These are being replaced by GtkFileDialog. This commit only moves the headers for GtkFileChooserWidget and GtkFileChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkFileChooserWindow.
* Deprecate GtkMessageDialogMatthias Clasen2022-10-291-1/+0
| | | | | | | | | It is getting replaced by GtkAlertDialog This commit only moves the header to deprecated/, and keeps the implementation in gtk/, since it will eventually be salvaged into a private, dialog-free widget.
* inspector: Port to async dialog APIMatthias Clasen2022-10-293-95/+76
|
* inspector: Fix accessibility callsMatthias Clasen2022-10-202-5/+5
| | | | | The argument list of gtk_accessible_update_property is -1-terminated, not NULL-terminated.
* Rename gtk_widget_get_style_colorMatthias Clasen2022-10-161-1/+1
| | | | | This name wasn't everybody's favorite, so go with the generic name gtk_widget_get_color() instead.
* inspector: Use gtk_widget_get_style_colorMatthias Clasen2022-10-121-6/+1
| | | | | | The graph renderer in the statistics page needs the CSS foreground color to draw the graph. Use the just introduced api for it.
* stylecontext: Deprecate most apisMatthias Clasen2022-10-123-3/+3
| | | | | | | The notable exception here are the global provider apis, which are needed in some form and don't have a replacement yet. Move them to gtkstyleprovider.[hc], so we can wholly deprecated gtkstylecontext.[hc].
* Merge branch 'deprecate-all-the-cells' into 'main'Matthias Clasen2022-10-1210-292/+18
|\ | | | | | | | | Deprecate treeviews and cell renderers See merge request GNOME/gtk!5098
| * Deprecate treeviews and cell renderersMatthias Clasen2022-10-118-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes GtkCellArea GtkCellAreaBox GtkCellAreaContext GtkCellEditable GtkCellRenderer GtkCellRendererAccel GtkCellRendererCombo GtkCellRendererPixbuf GtkCellRendererProgress GtkCellRendererSpin GtkCellRendererSpinner GtkCellRendererText GtkCellRendererToggle GtkCellView GtkComboBox GtkComboBoxText GtkIconView GtkListStore GtkTreeModel GtkTreeModelFilter GtkTreeModelSort GtkTreeStore GtkTreeView GtkTreeViewColumn GtkTreeSelection
| * inspector: Drop an unused fileMatthias Clasen2022-10-112-274/+0
| |
* | GtkInspector: make the inspector at least a little bit more accessibleLukáš Tyrychtr2022-10-113-2/+36
|/ | | | Namely, it adds accessible name to the property value editors and to a few labels in the a11y panel.
* inspector: Fix some criticalsMatthias Clasen2022-10-091-8/+12
| | | | This is fallout from the recent porting to GtkColumnView.
* inspector: Drop the css node tree modelMatthias Clasen2022-10-072-723/+0
| | | | This is not used anymore.
* inspector: Stop using GtkTreeView for css nodesMatthias Clasen2022-10-073-198/+298
| | | | | Replace the css node tree with a GtkColumnView, using the new gtk_css_node_observe_children api.
* inspector: Stop using GtkTreeView for statisticsMatthias Clasen2022-10-0710-724/+972
| | | | | GtkTreeView is heading towards deprecation; use a GtkColumnView instead.
* inspector: FixupMatthias Clasen2022-10-071-3/+7
| | | | We were overlooking a transfer full here.
* inspector: Stop using a treeview for css propertiesMatthias Clasen2022-10-052-78/+237
| | | | Treeviews are heading towards deprecation.
* inspector: CosmeticsMatthias Clasen2022-10-051-1/+1
|
* inspector: Use more compact list stylesMatthias Clasen2022-10-043-1/+12
| | | | | Use the same style classes throughout for data lists that benefit from smaller fonts.
* inspector: Stop using a treeview for menusMatthias Clasen2022-10-042-83/+235
| | | | Replace this with a GtkColumnView.
* Drop unused includesMatthias Clasen2022-10-045-10/+0
| | | | This gets rid of treeview includes in a number of places.
* inspector: Don't use treeviews in the recorderMatthias Clasen2022-10-042-194/+293
| | | | | Replace the event and render node details views with columnviews.
* inspector: Fix some lifecycle issuesMatthias Clasen2022-10-048-6/+18
| | | | | | | | | The template use in the inspector was not properly disposing all widgets. gtk_widget_dispose_template will only unparent widgets that have been named as template children, so we need to make the toplevel elements in the ui file named children, or manually dispose them. This commit does the former.
* Drop gtkintl.hMatthias Clasen2022-09-245-5/+0
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Rename gdkdebug.h to gdkdebugprivate.hMatthias Clasen2022-09-234-4/+4
| | | | This is the naming convention for private headers.
* Drop the software-gl debug flagMatthias Clasen2022-09-212-69/+0
| | | | This was not doing anything.
* Rename clear_template to dispose_templateEmmanuele Bassi2022-07-1112-12/+12
| | | | | Make it more clear that the function is supposed to be called during the dispose sequence of a widget.
* Port the inspector to gtk_widget_clear_template()Emmanuele Bassi2022-07-1112-35/+29
| | | | Use clear_template() instead of unparenting widgets manually.
* inspector: Hide measure graphs by defaultMatthias Clasen2022-07-102-2/+20
| | | | | It is much more valuable to have a responsive inspector, than to have these graphs.
* inspector: Add an "inspect inspector" buttonBenjamin Otte2022-06-212-2/+41
| | | | | | | And launch a new inspector. The location of that button is rather random - I had no idea where to put it.
* object-tree: Allow inspecting inspectorsBenjamin Otte2022-06-211-3/+0
| | | | | We filter by display, so the inspector window should show up only when inspecting the inspector.