| 1 | /* |
| 2 | * Copyright (c) 2008-2009 Christian Hammond |
| 3 | * Copyright (c) 2008-2009 David Trowbridge |
| 4 | * |
| 5 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | * copy of this software and associated documentation files (the "Software"), |
| 7 | * to deal in the Software without restriction, including without limitation |
| 8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 | * and/or sell copies of the Software, and to permit persons to whom the |
| 10 | * Software is furnished to do so, subject to the following conditions: |
| 11 | * |
| 12 | * The above copyright notice and this permission notice shall be included |
| 13 | * in all copies or substantial portions of the Software. |
| 14 | * |
| 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 21 | * THE SOFTWARE. |
| 22 | */ |
| 23 | |
| 24 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 25 | #include <glib/gi18n-lib.h> |
| 26 | |
| 27 | #include "prop-list.h"cxx . . $ `<file>/gtk/inspector/prop-list.h`/ |
| 28 | |
| 29 | #include "prop-editor.h"cxx . . $ `<file>/gtk/inspector/prop-editor.h`/ |
| 30 | |
| 31 | #include "gtkpopover.h"cxx . . $ `<file>/gtk/gtkpopover.h`/ |
| 32 | #include "gtksearchentry.h"cxx . . $ `<file>/gtk/gtksearchentry.h`/ |
| 33 | #include "gtklabel.h"cxx . . $ `<file>/gtk/gtklabel.h`/ |
| 34 | #include "gtkmain.h"cxx . . $ `<file>/gtk/gtkmain.h`/ |
| 35 | #include "gtkstack.h"cxx . . $ `<file>/gtk/gtkstack.h`/ |
| 36 | #include "gtkeventcontrollerkey.h"cxx . . $ `<file>/gtk/gtkeventcontrollerkey.h`/ |
| 37 | #include "gtklayoutmanager.h"cxx . . $ `<file>/gtk/gtklayoutmanager.h`/ |
| 38 | #include "gtksizegroup.h"cxx . . $ `<file>/gtk/gtksizegroup.h`/ |
| 39 | #include "gtkroot.h"cxx . . $ `<file>/gtk/gtkroot.h`/ |
| 40 | #include "prop-holder.h"cxx . . $ `<file>/gtk/inspector/prop-holder.h`/ |
| 41 | #include "window.h"cxx . . $ `<file>/gtk/inspector/window.h`/ |
| 42 | |
| 43 | enumcxx . . $ $anonymous_type_fc071696133fe9d4_0# |
| 44 | { |
| 45 | PROP_0cxx . . $ PROP_0., |
| 46 | PROP_SEARCH_ENTRYcxx . . $ PROP_SEARCH_ENTRY. |
| 47 | }; |
| 48 | |
| 49 | struct _GtkInspectorPropListPrivatecxx . . $ _GtkInspectorPropListPrivate# |
| 50 | { |
| 51 | GObjectcxx . . $ GObject# *objectcxx . . $ _GtkInspectorPropListPrivate#object.; |
| 52 | gulongcxx . . $ gulong# notify_handler_idcxx . . $ _GtkInspectorPropListPrivate#notify_handler_id.; |
| 53 | GtkWidgetcxx . . $ GtkWidget# *search_entrycxx . . $ _GtkInspectorPropListPrivate#search_entry.; |
| 54 | GtkWidgetcxx . . $ GtkWidget# *search_stackcxx . . $ _GtkInspectorPropListPrivate#search_stack.; |
| 55 | GtkWidgetcxx . . $ GtkWidget# *listcxx . . $ _GtkInspectorPropListPrivate#list.; |
| 56 | GtkStringFiltercxx . . $ GtkStringFilter# *filtercxx . . $ _GtkInspectorPropListPrivate#filter.; |
| 57 | GtkColumnViewColumncxx . . $ GtkColumnViewColumn# *namecxx . . $ _GtkInspectorPropListPrivate#name.; |
| 58 | GtkColumnViewColumncxx . . $ GtkColumnViewColumn# *typecxx . . $ _GtkInspectorPropListPrivate#type.; |
| 59 | GtkColumnViewColumncxx . . $ GtkColumnViewColumn# *origincxx . . $ _GtkInspectorPropListPrivate#origin.; |
| 60 | }; |
| 61 | |
| 62 | G_DEFINE_TYPE_WITH_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:1876:9`! (GtkInspectorPropList, gtk_inspector_prop_list, GTK_TYPE_BOXcxx . . $ `gtk/gtkbox.h:38:9`!) |
| 63 | |
| 64 | static void |
| 65 | search_close_clickedcxx . . $ search_close_clicked(d1fde4f58d2267a4). (GtkWidgetcxx . . $ GtkWidget# *button, |
| 66 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 67 | { |
| 68 | gtk_editable_set_textcxx . . $ gtk_editable_set_text(dd7674303aab4ac4). (GTK_EDITABLEcxx . . $ `gtk/gtkeditable.h:38:9`! (pl->priv->search_entry), ""); |
| 69 | gtk_stack_set_visible_child_namecxx . . $ gtk_stack_set_visible_child_name(1f0a433b96d04ad5). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (pl->priv->search_stack), "title"); |
| 70 | } |
| 71 | |
| 72 | static void |
| 73 | show_search_entrycxx . . $ show_search_entry(26701e69f4677965). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 74 | { |
| 75 | gtk_stack_set_visible_childcxx . . $ gtk_stack_set_visible_child(49e424d5d1cc8631). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (pl->priv->search_stack), |
| 76 | pl->privcxx . . $ _GtkInspectorPropList#priv.->search_entrycxx . . $ _GtkInspectorPropListPrivate#search_entry.); |
| 77 | } |
| 78 | |
| 79 | static char * |
| 80 | holder_propcxx . . $ holder_prop(27bbe3287fd28b0c). (gpointercxx . . $ gpointer# item) |
| 81 | { |
| 82 | GParamSpeccxx . . $ GParamSpec# *prop = prop_holder_get_pspeccxx . . $ prop_holder_get_pspec(9c0ea78f8b16887b). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 83 | |
| 84 | return g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (prop->name); |
| 85 | } |
| 86 | |
| 87 | static char * |
| 88 | holder_typecxx . . $ holder_type(27bbe3287fd28b0c). (gpointercxx . . $ gpointer# item) |
| 89 | { |
| 90 | GParamSpeccxx . . $ GParamSpec# *prop = prop_holder_get_pspeccxx . . $ prop_holder_get_pspec(9c0ea78f8b16887b). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 91 | |
| 92 | return g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_type_name (prop->value_type)); |
| 93 | } |
| 94 | |
| 95 | static char * |
| 96 | holder_origincxx . . $ holder_origin(27bbe3287fd28b0c). (gpointercxx . . $ gpointer# item) |
| 97 | { |
| 98 | GParamSpeccxx . . $ GParamSpec# *prop = prop_holder_get_pspeccxx . . $ prop_holder_get_pspec(9c0ea78f8b16887b). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 99 | |
| 100 | return g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_type_name (prop->owner_type)); |
| 101 | } |
| 102 | |
| 103 | static void |
| 104 | gtk_inspector_prop_list_initcxx . . $ gtk_inspector_prop_list_init(26701e69f4677965). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 105 | { |
| 106 | GtkSortercxx . . $ GtkSorter# *sorter; |
| 107 | |
| 108 | pl->privcxx . . $ _GtkInspectorPropList#priv. = gtk_inspector_prop_list_get_instance_privatecxx . . $ gtk_inspector_prop_list_get_instance_private(6170f43890278026). (pl); |
| 109 | gtk_widget_init_templatecxx . . $ gtk_widget_init_template(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl)); |
| 110 | pl->privcxx . . $ _GtkInspectorPropList#priv.->filtercxx . . $ _GtkInspectorPropListPrivate#filter. = gtk_string_filter_newcxx . . $ gtk_string_filter_new(31c86573a0fa63ce). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 111 | gtk_string_filter_set_match_modecxx . . $ gtk_string_filter_set_match_mode(485d97f2a5430722). (pl->privcxx . . $ _GtkInspectorPropList#priv.->filtercxx . . $ _GtkInspectorPropListPrivate#filter., GTK_STRING_FILTER_MATCH_MODE_SUBSTRINGcxx . . $ GTK_STRING_FILTER_MATCH_MODE_SUBSTRING.); |
| 112 | |
| 113 | sorter = GTK_SORTERcxx . . $ GTK_SORTER(cf32dcc2d2e89335). (gtk_string_sorter_newcxx . . $ gtk_string_sorter_new(f674aa67d9a0c09d). (gtk_cclosure_expression_newcxx . . $ gtk_cclosure_expression_new(243abf66fba4de24). (G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 114 | 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 115 | (GCallbackcxx . . $ GCallback#)holder_propcxx . . $ holder_prop(27bbe3287fd28b0c)., |
| 116 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))); |
| 117 | |
| 118 | gtk_string_filter_set_expressioncxx . . $ gtk_string_filter_set_expression(fe68ee1d6a687670). (pl->privcxx . . $ _GtkInspectorPropList#priv.->filtercxx . . $ _GtkInspectorPropListPrivate#filter., |
| 119 | gtk_string_sorter_get_expressioncxx . . $ gtk_string_sorter_get_expression(1118d1e3e427cf5). (GTK_STRING_SORTERcxx . . $ GTK_STRING_SORTER(aa390d9b8ab526d). (sorter))); |
| 120 | |
| 121 | gtk_column_view_column_set_sortercxx . . $ gtk_column_view_column_set_sorter(b7f853d7dddc23dd). (pl->privcxx . . $ _GtkInspectorPropList#priv.->namecxx . . $ _GtkInspectorPropListPrivate#name., sorter); |
| 122 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (sorter); |
| 123 | |
| 124 | sorter = GTK_SORTERcxx . . $ GTK_SORTER(cf32dcc2d2e89335). (gtk_string_sorter_newcxx . . $ gtk_string_sorter_new(f674aa67d9a0c09d). (gtk_cclosure_expression_newcxx . . $ gtk_cclosure_expression_new(243abf66fba4de24). (G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 125 | 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 126 | (GCallbackcxx . . $ GCallback#)holder_typecxx . . $ holder_type(27bbe3287fd28b0c)., |
| 127 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))); |
| 128 | |
| 129 | gtk_column_view_column_set_sortercxx . . $ gtk_column_view_column_set_sorter(b7f853d7dddc23dd). (pl->privcxx . . $ _GtkInspectorPropList#priv.->typecxx . . $ _GtkInspectorPropListPrivate#type., sorter); |
| 130 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (sorter); |
| 131 | |
| 132 | sorter = GTK_SORTERcxx . . $ GTK_SORTER(cf32dcc2d2e89335). (gtk_string_sorter_newcxx . . $ gtk_string_sorter_new(f674aa67d9a0c09d). (gtk_cclosure_expression_newcxx . . $ gtk_cclosure_expression_new(243abf66fba4de24). (G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 133 | 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 134 | (GCallbackcxx . . $ GCallback#)holder_origincxx . . $ holder_origin(27bbe3287fd28b0c)., |
| 135 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))); |
| 136 | |
| 137 | gtk_column_view_column_set_sortercxx . . $ gtk_column_view_column_set_sorter(b7f853d7dddc23dd). (pl->privcxx . . $ _GtkInspectorPropList#priv.->origincxx . . $ _GtkInspectorPropListPrivate#origin., sorter); |
| 138 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (sorter); |
| 139 | } |
| 140 | |
| 141 | static void |
| 142 | get_propertycxx . . $ get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 143 | guintcxx . . $ guint# param_id, |
| 144 | GValuecxx . . $ GValue# *value, |
| 145 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 146 | { |
| 147 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl = GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (object); |
| 148 | |
| 149 | switch (param_id) |
| 150 | { |
| 151 | case PROP_SEARCH_ENTRYcxx . . $ PROP_SEARCH_ENTRY.: |
| 152 | g_value_take_objectcxx . . $ g_value_take_object(e945b84c1e9702f). (value, pl->privcxx . . $ _GtkInspectorPropList#priv.->search_entrycxx . . $ _GtkInspectorPropListPrivate#search_entry.); |
| 153 | break; |
| 154 | |
| 155 | default: |
| 156 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec); |
| 157 | break; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | static void |
| 162 | set_propertycxx . . $ set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 163 | guintcxx . . $ guint# param_id, |
| 164 | const GValuecxx . . $ GValue# *value, |
| 165 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 166 | { |
| 167 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl = GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (object); |
| 168 | |
| 169 | switch (param_id) |
| 170 | { |
| 171 | case PROP_SEARCH_ENTRYcxx . . $ PROP_SEARCH_ENTRY.: |
| 172 | pl->privcxx . . $ _GtkInspectorPropList#priv.->search_entrycxx . . $ _GtkInspectorPropListPrivate#search_entry. = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value); |
| 173 | break; |
| 174 | |
| 175 | default: |
| 176 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, param_id, pspec); |
| 177 | break; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | static void |
| 182 | show_objectcxx . . $ show_object(99b0a14c1530c0d2). (GtkInspectorPropEditorcxx . . $ GtkInspectorPropEditor# *editor, |
| 183 | GObjectcxx . . $ GObject# *object, |
| 184 | const char *name, |
| 185 | const char *tab, |
| 186 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 187 | { |
| 188 | GtkInspectorWindowcxx . . $ GtkInspectorWindow# *iw; |
| 189 | |
| 190 | iw = GTK_INSPECTOR_WINDOWcxx . . $ `gtk/inspector/window.h:31:9`! (gtk_widget_get_ancestor (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl), GTK_TYPE_INSPECTOR_WINDOWcxx . . $ `gtk/inspector/window.h:30:9`!)); |
| 191 | gtk_inspector_window_push_objectcxx . . $ gtk_inspector_window_push_object(a3cc9165799521ab). (iw, object, CHILD_KIND_PROPERTYcxx . . $ CHILD_KIND_PROPERTY., 0); |
| 192 | } |
| 193 | |
| 194 | |
| 195 | static void cleanup_objectcxx . . $ cleanup_object(26701e69f4677965). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl); |
| 196 | |
| 197 | static void |
| 198 | finalizecxx . . $ finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 199 | { |
| 200 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl = GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (object); |
| 201 | |
| 202 | cleanup_objectcxx . . $ cleanup_object(26701e69f4677965). (pl); |
| 203 | |
| 204 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_inspector_prop_list_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object); |
| 205 | } |
| 206 | |
| 207 | static void |
| 208 | update_filtercxx . . $ update_filter(6275c4c2b1f1a93b). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl, |
| 209 | GtkSearchEntrycxx . . $ GtkSearchEntry# *entry) |
| 210 | { |
| 211 | const char *text; |
| 212 | |
| 213 | text = gtk_editable_get_textcxx . . $ gtk_editable_get_text(87ef08b8498f8205). (GTK_EDITABLEcxx . . $ `gtk/gtkeditable.h:38:9`! (entry)); |
| 214 | gtk_string_filter_set_searchcxx . . $ gtk_string_filter_set_search(b19a886b867d6afe). (pl->privcxx . . $ _GtkInspectorPropList#priv.->filtercxx . . $ _GtkInspectorPropListPrivate#filter., text); |
| 215 | } |
| 216 | |
| 217 | static void |
| 218 | constructedcxx . . $ constructed(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 219 | { |
| 220 | GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl = GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (object); |
| 221 | |
| 222 | pl->privcxx . . $ _GtkInspectorPropList#priv.->search_stackcxx . . $ _GtkInspectorPropListPrivate#search_stack. = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (pl->privcxx . . $ _GtkInspectorPropList#priv.->search_entrycxx . . $ _GtkInspectorPropListPrivate#search_entry.); |
| 223 | |
| 224 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (pl->priv->search_entry, "stop-search", |
| 225 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (search_close_clicked), pl); |
| 226 | |
| 227 | g_signal_connect_swappedcxx . . $ `<external>/15952772511652638895/gsignal.h:617:9`! (pl->priv->search_entry, "search-started", |
| 228 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (show_search_entry), pl); |
| 229 | g_signal_connect_swappedcxx . . $ `<external>/15952772511652638895/gsignal.h:617:9`! (pl->priv->search_entry, "search-changed", |
| 230 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (update_filter), pl); |
| 231 | } |
| 232 | |
| 233 | static void |
| 234 | update_key_capturecxx . . $ update_key_capture(26701e69f4677965). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 235 | { |
| 236 | GtkWidgetcxx . . $ GtkWidget# *capture_widget; |
| 237 | |
| 238 | if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl))) |
| 239 | { |
| 240 | GtkWidgetcxx . . $ GtkWidget# *toplevel; |
| 241 | GtkWidgetcxx . . $ GtkWidget# *focus; |
| 242 | |
| 243 | toplevel = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (gtk_widget_get_root (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl))); |
| 244 | focus = gtk_root_get_focuscxx . . $ gtk_root_get_focus(6cfa63b8db06e3bd). (GTK_ROOTcxx . . $ GTK_ROOT(f6c8ec4260875b7f). (toplevel)); |
| 245 | |
| 246 | if (GTK_IS_EDITABLEcxx . . $ `gtk/gtkeditable.h:39:9`! (focus) && |
| 247 | gtk_widget_is_ancestorcxx . . $ gtk_widget_is_ancestor(d05965862da967f). (focus, pl->privcxx . . $ _GtkInspectorPropList#priv.->listcxx . . $ _GtkInspectorPropListPrivate#list.)) |
| 248 | capture_widget = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 249 | else |
| 250 | capture_widget = toplevel; |
| 251 | } |
| 252 | else |
| 253 | capture_widget = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 254 | |
| 255 | gtk_search_entry_set_key_capture_widgetcxx . . $ gtk_search_entry_set_key_capture_widget(7e1da897f4a41403). (GTK_SEARCH_ENTRYcxx . . $ `gtk/gtksearchentry.h:39:9`! (pl->priv->search_entry), |
| 256 | capture_widget); |
| 257 | } |
| 258 | |
| 259 | static void |
| 260 | mapcxx . . $ map(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 261 | { |
| 262 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_inspector_prop_list_parent_class)->mapcxx . . $ _GtkWidgetClass#map. (widget); |
| 263 | |
| 264 | update_key_capturecxx . . $ update_key_capture(26701e69f4677965). (GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (widget)); |
| 265 | } |
| 266 | |
| 267 | static void |
| 268 | unmapcxx . . $ unmap(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 269 | { |
| 270 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_inspector_prop_list_parent_class)->unmapcxx . . $ _GtkWidgetClass#unmap. (widget); |
| 271 | |
| 272 | update_key_capturecxx . . $ update_key_capture(26701e69f4677965). (GTK_INSPECTOR_PROP_LISTcxx . . $ `gtk/inspector/prop-list.h:29:9`! (widget)); |
| 273 | } |
| 274 | |
| 275 | static void |
| 276 | rootcxx . . $ root(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 277 | { |
| 278 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_inspector_prop_list_parent_class)->rootcxx . . $ _GtkWidgetClass#root. (widget); |
| 279 | |
| 280 | g_signal_connect_swappedcxx . . $ `<external>/15952772511652638895/gsignal.h:617:9`! (gtk_widget_get_root (widget), "notify::focus-widget", |
| 281 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (update_key_capture), widget); |
| 282 | } |
| 283 | |
| 284 | static void |
| 285 | unrootcxx . . $ unroot(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 286 | { |
| 287 | g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (gtk_widget_get_root (widget), |
| 288 | update_key_capture, widget); |
| 289 | |
| 290 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_inspector_prop_list_parent_class)->unrootcxx . . $ _GtkWidgetClass#unroot. (widget); |
| 291 | } |
| 292 | |
| 293 | static void |
| 294 | setup_name_cbcxx . . $ setup_name_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 295 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 296 | { |
| 297 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 298 | |
| 299 | label = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 300 | gtk_label_set_xaligncxx . . $ gtk_label_set_xalign(5155ad053c7b621). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), 0.0); |
| 301 | gtk_list_item_set_childcxx . . $ gtk_list_item_set_child(dbfde0321fb20275). (list_item, label); |
| 302 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (label, "cell"); |
| 303 | } |
| 304 | |
| 305 | static void |
| 306 | bind_name_cbcxx . . $ bind_name_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 307 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 308 | { |
| 309 | GObjectcxx . . $ GObject# *item; |
| 310 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 311 | |
| 312 | item = gtk_list_item_get_itemcxx . . $ gtk_list_item_get_item(560e9f2e67ce4232). (list_item); |
| 313 | label = gtk_list_item_get_childcxx . . $ gtk_list_item_get_child(7a2363d05ab11c5f). (list_item); |
| 314 | |
| 315 | gtk_label_set_labelcxx . . $ gtk_label_set_label(3d016a7109913fca). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), prop_holder_get_namecxx . . $ prop_holder_get_name(77d4862b74c235dd). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item))); |
| 316 | } |
| 317 | |
| 318 | static void |
| 319 | setup_type_cbcxx . . $ setup_type_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 320 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 321 | { |
| 322 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 323 | |
| 324 | label = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 325 | gtk_label_set_xaligncxx . . $ gtk_label_set_xalign(5155ad053c7b621). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), 0.0); |
| 326 | gtk_list_item_set_childcxx . . $ gtk_list_item_set_child(dbfde0321fb20275). (list_item, label); |
| 327 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (label, "cell"); |
| 328 | } |
| 329 | |
| 330 | static void |
| 331 | bind_type_cbcxx . . $ bind_type_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 332 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 333 | { |
| 334 | GObjectcxx . . $ GObject# *item; |
| 335 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 336 | GParamSpeccxx . . $ GParamSpec# *prop; |
| 337 | const char *type; |
| 338 | |
| 339 | item = gtk_list_item_get_itemcxx . . $ gtk_list_item_get_item(560e9f2e67ce4232). (list_item); |
| 340 | label = gtk_list_item_get_childcxx . . $ gtk_list_item_get_child(7a2363d05ab11c5f). (list_item); |
| 341 | |
| 342 | prop = prop_holder_get_pspeccxx . . $ prop_holder_get_pspec(9c0ea78f8b16887b). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 343 | type = g_type_namecxx . . $ g_type_name(30dde979ed96a187). (G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (prop)); |
| 344 | |
| 345 | gtk_label_set_labelcxx . . $ gtk_label_set_label(3d016a7109913fca). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), type); |
| 346 | } |
| 347 | |
| 348 | static void |
| 349 | setup_origin_cbcxx . . $ setup_origin_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 350 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 351 | { |
| 352 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 353 | |
| 354 | label = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 355 | gtk_label_set_xaligncxx . . $ gtk_label_set_xalign(5155ad053c7b621). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), 0.0); |
| 356 | gtk_list_item_set_childcxx . . $ gtk_list_item_set_child(dbfde0321fb20275). (list_item, label); |
| 357 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (label, "cell"); |
| 358 | } |
| 359 | |
| 360 | static void |
| 361 | bind_origin_cbcxx . . $ bind_origin_cb(c3c4d1de22d96d22). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 362 | GtkListItemcxx . . $ GtkListItem# *list_item) |
| 363 | { |
| 364 | GObjectcxx . . $ GObject# *item; |
| 365 | GtkWidgetcxx . . $ GtkWidget# *label; |
| 366 | GParamSpeccxx . . $ GParamSpec# *prop; |
| 367 | const char *origin; |
| 368 | |
| 369 | item = gtk_list_item_get_itemcxx . . $ gtk_list_item_get_item(560e9f2e67ce4232). (list_item); |
| 370 | label = gtk_list_item_get_childcxx . . $ gtk_list_item_get_child(7a2363d05ab11c5f). (list_item); |
| 371 | |
| 372 | prop = prop_holder_get_pspeccxx . . $ prop_holder_get_pspec(9c0ea78f8b16887b). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 373 | origin = g_type_namecxx . . $ g_type_name(30dde979ed96a187). (prop->owner_typecxx . . $ _GParamSpec#owner_type.); |
| 374 | |
| 375 | gtk_label_set_labelcxx . . $ gtk_label_set_label(3d016a7109913fca). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (label), origin); |
| 376 | } |
| 377 | |
| 378 | static void |
| 379 | setup_value_cbcxx . . $ setup_value_cb(8e6a247c3d7e2195). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 380 | GtkListItemcxx . . $ GtkListItem# *list_item, |
| 381 | gpointercxx . . $ gpointer# data) |
| 382 | { |
| 383 | GtkWidgetcxx . . $ GtkWidget# *widget; |
| 384 | |
| 385 | widget = gtk_box_newcxx . . $ gtk_box_new(b19e0ce02196028e). (GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., 0); |
| 386 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (widget, "cell"); |
| 387 | gtk_list_item_set_childcxx . . $ gtk_list_item_set_child(dbfde0321fb20275). (list_item, widget); |
| 388 | } |
| 389 | |
| 390 | static void |
| 391 | bind_value_cbcxx . . $ bind_value_cb(8e6a247c3d7e2195). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 392 | GtkListItemcxx . . $ GtkListItem# *list_item, |
| 393 | gpointercxx . . $ gpointer# data) |
| 394 | { |
| 395 | GObjectcxx . . $ GObject# *item; |
| 396 | GtkWidgetcxx . . $ GtkWidget# *editor; |
| 397 | GtkWidgetcxx . . $ GtkWidget# *widget; |
| 398 | GObjectcxx . . $ GObject# *object; |
| 399 | const char *name; |
| 400 | |
| 401 | item = gtk_list_item_get_itemcxx . . $ gtk_list_item_get_item(560e9f2e67ce4232). (list_item); |
| 402 | |
| 403 | object = prop_holder_get_objectcxx . . $ prop_holder_get_object(98d1d6077df75edb). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 404 | name = prop_holder_get_namecxx . . $ prop_holder_get_name(77d4862b74c235dd). (PROP_HOLDERcxx . . $ PROP_HOLDER(6d7ab28980037f6d). (item)); |
| 405 | |
| 406 | editor = gtk_inspector_prop_editor_newcxx . . $ gtk_inspector_prop_editor_new(393014f13da798d0). (object, name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 407 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (editor, "show-object", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (show_object), data); |
| 408 | widget = gtk_list_item_get_childcxx . . $ gtk_list_item_get_child(7a2363d05ab11c5f). (list_item); |
| 409 | gtk_box_appendcxx . . $ gtk_box_append(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (widget), editor); |
| 410 | } |
| 411 | |
| 412 | static void |
| 413 | unbind_value_cbcxx . . $ unbind_value_cb(8e6a247c3d7e2195). (GtkSignalListItemFactorycxx . . $ GtkSignalListItemFactory# *factory, |
| 414 | GtkListItemcxx . . $ GtkListItem# *list_item, |
| 415 | gpointercxx . . $ gpointer# data) |
| 416 | { |
| 417 | GtkWidgetcxx . . $ GtkWidget# *widget; |
| 418 | |
| 419 | widget = gtk_list_item_get_childcxx . . $ gtk_list_item_get_child(7a2363d05ab11c5f). (list_item); |
| 420 | gtk_box_removecxx . . $ gtk_box_remove(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (widget), gtk_widget_get_first_childcxx . . $ gtk_widget_get_first_child(ef973e1b01680070). (widget)); |
| 421 | } |
| 422 | |
| 423 | static void |
| 424 | gtk_inspector_prop_list_class_initcxx . . $ gtk_inspector_prop_list_class_init(9362ccf70a562d23). (GtkInspectorPropListClasscxx . . $ GtkInspectorPropListClass# *klass) |
| 425 | { |
| 426 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 427 | GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (klass); |
| 428 | |
| 429 | object_class->finalizecxx . . $ _GObjectClass#finalize. = finalizecxx . . $ finalize(6087475fa43034d3).; |
| 430 | object_class->get_propertycxx . . $ _GObjectClass#get_property. = get_propertycxx . . $ get_property(cee2c52f22407c66).; |
| 431 | object_class->set_propertycxx . . $ _GObjectClass#set_property. = set_propertycxx . . $ set_property(d7c4bb29f36c0dc4).; |
| 432 | object_class->constructedcxx . . $ _GObjectClass#constructed. = constructedcxx . . $ constructed(6087475fa43034d3).; |
| 433 | |
| 434 | widget_class->mapcxx . . $ _GtkWidgetClass#map. = mapcxx . . $ map(d7cf858254b37903).; |
| 435 | widget_class->unmapcxx . . $ _GtkWidgetClass#unmap. = unmapcxx . . $ unmap(d7cf858254b37903).; |
| 436 | widget_class->rootcxx . . $ _GtkWidgetClass#root. = rootcxx . . $ root(d7cf858254b37903).; |
| 437 | widget_class->unrootcxx . . $ _GtkWidgetClass#unroot. = unrootcxx . . $ unroot(d7cf858254b37903).; |
| 438 | |
| 439 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, PROP_SEARCH_ENTRYcxx . . $ PROP_SEARCH_ENTRY., |
| 440 | g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("search-entry", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 441 | GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!, G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY.)); |
| 442 | |
| 443 | gtk_widget_class_set_template_from_resourcecxx . . $ gtk_widget_class_set_template_from_resource(6333614c746ab65a). (widget_class, "/org/gtk/libgtk/inspector/prop-list.ui"); |
| 444 | gtk_widget_class_bind_template_child_privatecxx . . $ `gtk/gtkwidget.h:806:9`! (widget_class, GtkInspectorPropList, list); |
| 445 | gtk_widget_class_bind_template_child_privatecxx . . $ `gtk/gtkwidget.h:806:9`! (widget_class, GtkInspectorPropList, name); |
| 446 | gtk_widget_class_bind_template_child_privatecxx . . $ `gtk/gtkwidget.h:806:9`! (widget_class, GtkInspectorPropList, type); |
| 447 | gtk_widget_class_bind_template_child_privatecxx . . $ `gtk/gtkwidget.h:806:9`! (widget_class, GtkInspectorPropList, origin); |
| 448 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, setup_name_cb); |
| 449 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, bind_name_cb); |
| 450 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, setup_type_cb); |
| 451 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, bind_type_cb); |
| 452 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, setup_origin_cb); |
| 453 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, bind_origin_cb); |
| 454 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, setup_value_cb); |
| 455 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, bind_value_cb); |
| 456 | gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, unbind_value_cb); |
| 457 | } |
| 458 | |
| 459 | /* Like g_strdup_value_contents, but keeps the type name separate */ |
| 460 | void |
| 461 | strdup_value_contentscxx . . $ strdup_value_contents(3f88100df6b5d4d6). (const GValuecxx . . $ GValue# *value, |
| 462 | char **contents, |
| 463 | char **type) |
| 464 | { |
| 465 | const char *src; |
| 466 | |
| 467 | if (G_VALUE_HOLDS_STRINGcxx . . $ `<external>/11191352410969199049/gvaluetypes.h:140:9`! (value)) |
| 468 | { |
| 469 | src = g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (value); |
| 470 | |
| 471 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("char*"); |
| 472 | |
| 473 | if (!src) |
| 474 | { |
| 475 | *contents = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("NULL"); |
| 476 | } |
| 477 | else |
| 478 | { |
| 479 | char *s = g_strescapecxx . . $ g_strescape(a713fe7b9a57cf96). (src, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 480 | *contents = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("\"%s\"", s); |
| 481 | g_freecxx . . $ g_free(5d22bdacc48458e8). (s); |
| 482 | } |
| 483 | } |
| 484 | else if (g_value_type_transformablecxx . . $ g_value_type_transformable(8bdd4f646c1f3ab7). (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (value), G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!)) |
| 485 | { |
| 486 | GValuecxx . . $ GValue# tmp_value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!; |
| 487 | |
| 488 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_type_name (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (value))); |
| 489 | |
| 490 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&tmp_value, G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!); |
| 491 | g_value_transformcxx . . $ g_value_transform(78a71817ef2e7272). (value, &tmp_value); |
| 492 | src = g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (&tmp_value); |
| 493 | if (!src) |
| 494 | *contents = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("NULL"); |
| 495 | else |
| 496 | *contents = g_strescapecxx . . $ g_strescape(a713fe7b9a57cf96). (src, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 497 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&tmp_value); |
| 498 | } |
| 499 | else if (g_value_fits_pointercxx . . $ g_value_fits_pointer(f890c5c75ead5b21). (value)) |
| 500 | { |
| 501 | gpointercxx . . $ gpointer# p = g_value_peek_pointercxx . . $ g_value_peek_pointer(e12dff36056c2cce). (value); |
| 502 | |
| 503 | if (!p) |
| 504 | { |
| 505 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_type_name (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (value))); |
| 506 | *contents = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("NULL"); |
| 507 | } |
| 508 | else if (G_VALUE_HOLDS_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:136:9`! (value)) |
| 509 | { |
| 510 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (G_OBJECT_TYPE_NAMEcxx . . $ `<external>/1341695927569185362/gobject.h:108:9`! (p)); |
| 511 | *contents = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("%p", p); |
| 512 | } |
| 513 | else if (G_VALUE_HOLDS_PARAMcxx . . $ `<external>/7453068347527694854/gparam.h:114:9`! (value)) |
| 514 | { |
| 515 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (G_PARAM_SPEC_TYPE_NAMEcxx . . $ `<external>/7453068347527694854/gparam.h:98:9`! (p)); |
| 516 | *contents = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("%p", p); |
| 517 | } |
| 518 | else if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (value, G_TYPE_STRVcxx . . $ `<external>/9334670746570349148/glib-types.h:73:9`!)) |
| 519 | { |
| 520 | GStrvcxx . . $ GStrv# strv = g_value_get_boxedcxx . . $ g_value_get_boxed(e12dff36056c2cce). (value); |
| 521 | GStringcxx . . $ GString# *tmp = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). ("["); |
| 522 | |
| 523 | while (*strv != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 524 | { |
| 525 | char *escaped = g_strescapecxx . . $ g_strescape(a713fe7b9a57cf96). (*strv, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 526 | |
| 527 | g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (tmp, "\"%s\"", escaped); |
| 528 | g_freecxx . . $ g_free(5d22bdacc48458e8). (escaped); |
| 529 | |
| 530 | if (*++strv != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 531 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (tmp, ", "); |
| 532 | } |
| 533 | |
| 534 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (tmp, "]"); |
| 535 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("char**"); |
| 536 | *contents = g_string_freecxx . . $ `<external>/2906017559248664336/gstring.h:73:9`! (tmp, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 537 | } |
| 538 | else if (G_VALUE_HOLDS_BOXEDcxx . . $ `<external>/7915311671163328299/gboxed.h:45:9`! (value)) |
| 539 | { |
| 540 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_type_name (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (value))); |
| 541 | *contents = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("%p", p); |
| 542 | } |
| 543 | else if (G_VALUE_HOLDS_POINTERcxx . . $ `<external>/11191352410969199049/gvaluetypes.h:162:9`! (value)) |
| 544 | { |
| 545 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("gpointer"); |
| 546 | *contents = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("%p", p); |
| 547 | } |
| 548 | else |
| 549 | { |
| 550 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("???"); |
| 551 | *contents = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("???"); |
| 552 | } |
| 553 | } |
| 554 | else |
| 555 | { |
| 556 | *type = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("???"); |
| 557 | *contents = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("???"); |
| 558 | } |
| 559 | } |
| 560 | |
| 561 | static void |
| 562 | cleanup_objectcxx . . $ cleanup_object(26701e69f4677965). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl) |
| 563 | { |
| 564 | if (pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object. && |
| 565 | g_signal_handler_is_connectedcxx . . $ g_signal_handler_is_connected(c0a5f96701d3f89). (pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object., pl->privcxx . . $ _GtkInspectorPropList#priv.->notify_handler_idcxx . . $ _GtkInspectorPropListPrivate#notify_handler_id.)) |
| 566 | g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object., pl->privcxx . . $ _GtkInspectorPropList#priv.->notify_handler_idcxx . . $ _GtkInspectorPropListPrivate#notify_handler_id.); |
| 567 | |
| 568 | pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 569 | pl->privcxx . . $ _GtkInspectorPropList#priv.->notify_handler_idcxx . . $ _GtkInspectorPropListPrivate#notify_handler_id. = 0; |
| 570 | } |
| 571 | |
| 572 | gbooleancxx . . $ gboolean# |
| 573 | gtk_inspector_prop_list_set_objectcxx . . $ gtk_inspector_prop_list_set_object(f3e06848768aba70). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl, |
| 574 | GObjectcxx . . $ GObject# *object) |
| 575 | { |
| 576 | GParamSpeccxx . . $ GParamSpec# **props; |
| 577 | guintcxx . . $ guint# num_properties; |
| 578 | guintcxx . . $ guint# i; |
| 579 | GListStorecxx . . $ GListStore# *store; |
| 580 | GListModelcxx . . $ GListModel# *list; |
| 581 | GListModelcxx . . $ GListModel# *filtered; |
| 582 | GtkSortListModelcxx . . $ GtkSortListModel# *sorted; |
| 583 | |
| 584 | if (!object) |
| 585 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 586 | |
| 587 | if (pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object. == object) |
| 588 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 589 | |
| 590 | cleanup_objectcxx . . $ cleanup_object(26701e69f4677965). (pl); |
| 591 | |
| 592 | gtk_editable_set_textcxx . . $ gtk_editable_set_text(dd7674303aab4ac4). (GTK_EDITABLEcxx . . $ `gtk/gtkeditable.h:38:9`! (pl->priv->search_entry), ""); |
| 593 | gtk_stack_set_visible_child_namecxx . . $ gtk_stack_set_visible_child_name(1f0a433b96d04ad5). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (pl->priv->search_stack), "title"); |
| 594 | |
| 595 | props = g_object_class_list_propertiescxx . . $ g_object_class_list_properties(d52fafbf4f6bc2). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (object), &num_properties); |
| 596 | |
| 597 | pl->privcxx . . $ _GtkInspectorPropList#priv.->objectcxx . . $ _GtkInspectorPropListPrivate#object. = object; |
| 598 | |
| 599 | store = g_list_store_newcxx . . $ g_list_store_new(3a1260efc23394a5). (PROP_TYPE_HOLDERcxx . . $ `gtk/inspector/prop-holder.h:5:9`!); |
| 600 | |
| 601 | for (i = 0; i < num_properties; i++) |
| 602 | { |
| 603 | GParamSpeccxx . . $ GParamSpec# *prop = props[i]; |
| 604 | PropHoldercxx . . $ PropHolder# *holder; |
| 605 | |
| 606 | if (! (prop->flagscxx . . $ _GParamSpec#flags. & G_PARAM_READABLEcxx . . $ G_PARAM_READABLE.)) |
| 607 | continue; |
| 608 | |
| 609 | holder = prop_holder_newcxx . . $ prop_holder_new(1bd5791f06fc820e). (object, prop); |
| 610 | g_list_store_appendcxx . . $ g_list_store_append(fe077dfa3c2ace38). (store, holder); |
| 611 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (holder); |
| 612 | } |
| 613 | |
| 614 | g_freecxx . . $ g_free(5d22bdacc48458e8). (props); |
| 615 | |
| 616 | if (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (object)) |
| 617 | g_signal_connect_objectcxx . . $ g_signal_connect_object(567cfbe0c886a38e). (object, "destroy", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (cleanup_object), pl, G_CONNECT_SWAPPEDcxx . . $ G_CONNECT_SWAPPED.); |
| 618 | |
| 619 | filtered = G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (gtk_filter_list_model_newcxx . . $ gtk_filter_list_model_new(f511b3b230a4d91a). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (GTK_FILTER (pl->priv->filter)))); |
| 620 | sorted = gtk_sort_list_model_newcxx . . $ gtk_sort_list_model_new(8824ba106326af8f). (filtered, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 621 | list = G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (gtk_no_selection_newcxx . . $ gtk_no_selection_new(72d35e499826e3e2). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (sorted))); |
| 622 | |
| 623 | gtk_column_view_set_modelcxx . . $ gtk_column_view_set_model(c3133dc2561428c6). (GTK_COLUMN_VIEWcxx . . $ `gtk/gtkcolumnview.h:34:9`! (pl->priv->list), GTK_SELECTION_MODELcxx . . $ GTK_SELECTION_MODEL(26da0a312d84729c). (list)); |
| 624 | gtk_sort_list_model_set_sortercxx . . $ gtk_sort_list_model_set_sorter(2def8541674f11ea). (sorted, gtk_column_view_get_sortercxx . . $ gtk_column_view_get_sorter(49c0d65ab33f6f7f). (GTK_COLUMN_VIEWcxx . . $ `gtk/gtkcolumnview.h:34:9`! (pl->priv->list))); |
| 625 | gtk_column_view_sort_by_columncxx . . $ gtk_column_view_sort_by_column(4c632f19a2b00a42). (GTK_COLUMN_VIEWcxx . . $ `gtk/gtkcolumnview.h:34:9`! (pl->priv->list), pl->privcxx . . $ _GtkInspectorPropList#priv.->namecxx . . $ _GtkInspectorPropListPrivate#name., GTK_SORT_ASCENDINGcxx . . $ GTK_SORT_ASCENDING.); |
| 626 | |
| 627 | gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 628 | |
| 629 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (list); |
| 630 | |
| 631 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 632 | } |
| 633 | |
| 634 | void |
| 635 | gtk_inspector_prop_list_set_layout_childcxx . . $ gtk_inspector_prop_list_set_layout_child(f89ee73f221909a1). (GtkInspectorPropListcxx . . $ GtkInspectorPropList# *pl, |
| 636 | GObjectcxx . . $ GObject# *object) |
| 637 | { |
| 638 | GtkWidgetcxx . . $ GtkWidget# *stack; |
| 639 | GtkStackPagecxx . . $ GtkStackPage# *page; |
| 640 | GtkWidgetcxx . . $ GtkWidget# *parent; |
| 641 | GtkLayoutManagercxx . . $ GtkLayoutManager# *layout_manager; |
| 642 | GtkLayoutChildcxx . . $ GtkLayoutChild# *layout_child; |
| 643 | |
| 644 | stack = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl)); |
| 645 | page = gtk_stack_get_pagecxx . . $ gtk_stack_get_page(bc36c75693d73164). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (stack), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (pl)); |
| 646 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (page, "visible", FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 647 | |
| 648 | if (!GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (object)) |
| 649 | return; |
| 650 | |
| 651 | parent = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (object)); |
| 652 | if (!parent) |
| 653 | return; |
| 654 | |
| 655 | layout_manager = gtk_widget_get_layout_managercxx . . $ gtk_widget_get_layout_manager(f39d5da42f817d25). (parent); |
| 656 | if (!layout_manager) |
| 657 | return; |
| 658 | |
| 659 | if (GTK_LAYOUT_MANAGER_GET_CLASScxx . . $ GTK_LAYOUT_MANAGER_GET_CLASS(51ff573bf97a10cd). (layout_manager)->layout_child_typecxx . . $ _GtkLayoutManagerClass#layout_child_type. == G_TYPE_INVALIDcxx . . $ `<external>/9567554376676449156/gtype.h:65:9`!) |
| 660 | return; |
| 661 | |
| 662 | layout_child = gtk_layout_manager_get_layout_childcxx . . $ gtk_layout_manager_get_layout_child(171c47ee439b0a3). (layout_manager, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (object)); |
| 663 | if (!layout_child) |
| 664 | return; |
| 665 | |
| 666 | if (!gtk_inspector_prop_list_set_objectcxx . . $ gtk_inspector_prop_list_set_object(f3e06848768aba70). (pl, G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (layout_child))) |
| 667 | return; |
| 668 | |
| 669 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (page, "visible", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 670 | } |
| 671 | |
| 672 | // vim: set et sw=2 ts=2: |