Debian Codegraph @

gtk/deprecated/gtkassistant.c

raw symbols SCIP
1 /*
2 * GTK - The GIMP Toolkit
3 * Copyright (C) 1999 Red Hat, Inc.
4 * Copyright (C) 2002 Anders Carlsson <[email protected]>
5 * Copyright (C) 2003 Matthias Clasen <[email protected]>
6 * Copyright (C) 2005 Carlos Garnacho Parro <[email protected]>
7 *
8 * All rights reserved.
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 /**
25 * GtkAssistant:
26 *
27 * `GtkAssistant` is used to represent a complex as a series of steps.
28 *
29 * <picture>
30 * <source srcset="assistant-dark.png" media="(prefers-color-scheme: dark)">
31 * <img alt="An example GtkAssistant" src="assistant.png">
32 * </picture>
33 *
34 * Each step consists of one or more pages. `GtkAssistant` guides the user
35 * through the pages, and controls the page flow to collect the data needed
36 * for the operation.
37 *
38 * `GtkAssistant` handles which buttons to show and to make sensitive based
39 * on page sequence knowledge and the [[email protected]] of each
40 * page in addition to state information like the *completed* and *committed*
41 * page statuses.
42 *
43 * If you have a case that doesn’t quite fit in `GtkAssistant`s way of
44 * handling buttons, you can use the %GTK_ASSISTANT_PAGE_CUSTOM page
45 * type and handle buttons yourself.
46 *
47 * `GtkAssistant` maintains a `GtkAssistantPage` object for each added
48 * child, which holds additional per-child properties. You
49 * obtain the `GtkAssistantPage` for a child with [[email protected]_page].
50 *
51 * # GtkAssistant as GtkBuildable
52 *
53 * The `GtkAssistant` implementation of the `GtkBuildable` interface
54 * exposes the @action_area as internal children with the name
55 * “action_area”.
56 *
57 * To add pages to an assistant in `GtkBuilder`, simply add it as a
58 * child to the `GtkAssistant` object. If you need to set per-object
59 * properties, create a `GtkAssistantPage` object explicitly, and
60 * set the child widget as a property on it.
61 *
62 * # CSS nodes
63 *
64 * `GtkAssistant` has a single CSS node with the name window and style
65 * class .assistant.
66 *
67 * Deprecated: 4.10: This widget will be removed in GTK 5
68 */
69
70 /**
71 * GtkAssistantPage:
72 *
73 * `GtkAssistantPage` is an auxiliary object used by `GtkAssistant`.
74 *
75 * Deprecated: 4.10: This object will be removed in GTK 5
76 */
77
78 #include "config.h"cxx . . $ `<file>/build/config.h`/
79
80 #include "gtkassistant.h"cxx . . $ `<file>/gtk/deprecated/gtkassistant.h`/
81
82 #include "gtkbox.h"cxx . . $ `<file>/gtk/gtkbox.h`/
83 #include "gtkbuildable.h"cxx . . $ `<file>/gtk/gtkbuildable.h`/
84 #include "gtkbutton.h"cxx . . $ `<file>/gtk/gtkbutton.h`/
85 #include "gtkframe.h"cxx . . $ `<file>/gtk/gtkframe.h`/
86 #include "gtkheaderbar.h"cxx . . $ `<file>/gtk/gtkheaderbar.h`/
87 #include "gtkimage.h"cxx . . $ `<file>/gtk/gtkimage.h`/
88 #include "gtklabel.h"cxx . . $ `<file>/gtk/gtklabel.h`/
89 #include "gtklistlistmodelprivate.h"cxx . . $ `<file>/gtk/gtklistlistmodelprivate.h`/
90 #include "gtkmaplistmodel.h"cxx . . $ `<file>/gtk/gtkmaplistmodel.h`/
91 #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/
92 #include "gtksettings.h"cxx . . $ `<file>/gtk/gtksettings.h`/
93 #include "gtksizegroup.h"cxx . . $ `<file>/gtk/gtksizegroup.h`/
94 #include "gtksizerequest.h"cxx . . $ `<file>/gtk/gtksizerequest.h`/
95 #include "gtkstack.h"cxx . . $ `<file>/gtk/gtkstack.h`/
96 #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/
97
98 G_GNUC_BEGIN_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:771:9`!
99
100 typedef struct _GtkAssistantPageClasscxx . . $ _GtkAssistantPageClass# GtkAssistantPageClasscxx . . $ GtkAssistantPageClass#;
101
102 struct _GtkAssistantPagecxx . . $ _GtkAssistantPage#
103 {
104 GObjectcxx . . $ GObject# instancecxx . . $ _GtkAssistantPage#instance.;
105 GtkAssistantPageTypecxx . . $ GtkAssistantPageType# typecxx . . $ _GtkAssistantPage#type.;
106 guintcxx . . $ guint# completecxx . . $ _GtkAssistantPage#complete. : 1;
107 guintcxx . . $ guint# complete_setcxx . . $ _GtkAssistantPage#complete_set. : 1;
108
109 char *titlecxx . . $ _GtkAssistantPage#title.;
110
111 GtkWidgetcxx . . $ GtkWidget# *pagecxx . . $ _GtkAssistantPage#page.;
112 GtkWidgetcxx . . $ GtkWidget# *regular_titlecxx . . $ _GtkAssistantPage#regular_title.;
113 GtkWidgetcxx . . $ GtkWidget# *current_titlecxx . . $ _GtkAssistantPage#current_title.;
114 };
115
116 struct _GtkAssistantPageClasscxx . . $ _GtkAssistantPageClass#
117 {
118 GObjectClasscxx . . $ GObjectClass# parent_classcxx . . $ _GtkAssistantPageClass#parent_class.;
119 };
120
121 typedef struct _GtkAssistantClasscxx . . $ _GtkAssistantClass# GtkAssistantClasscxx . . $ GtkAssistantClass#;
122
123 struct _GtkAssistantcxx . . $ _GtkAssistant#
124 {
125 GtkWindowcxx . . $ GtkWindow# parentcxx . . $ _GtkAssistant#parent.;
126
127 GtkWidgetcxx . . $ GtkWidget# *cancelcxx . . $ _GtkAssistant#cancel.;
128 GtkWidgetcxx . . $ GtkWidget# *forwardcxx . . $ _GtkAssistant#forward.;
129 GtkWidgetcxx . . $ GtkWidget# *backcxx . . $ _GtkAssistant#back.;
130 GtkWidgetcxx . . $ GtkWidget# *applycxx . . $ _GtkAssistant#apply.;
131 GtkWidgetcxx . . $ GtkWidget# *closecxx . . $ _GtkAssistant#close.;
132 GtkWidgetcxx . . $ GtkWidget# *lastcxx . . $ _GtkAssistant#last.;
133
134 GtkWidgetcxx . . $ GtkWidget# *sidebarcxx . . $ _GtkAssistant#sidebar.;
135 GtkWidgetcxx . . $ GtkWidget# *contentcxx . . $ _GtkAssistant#content.;
136 GtkWidgetcxx . . $ GtkWidget# *action_areacxx . . $ _GtkAssistant#action_area.;
137 GtkWidgetcxx . . $ GtkWidget# *headerbarcxx . . $ _GtkAssistant#headerbar.;
138 int use_header_barcxx . . $ _GtkAssistant#use_header_bar.;
139 gbooleancxx . . $ gboolean# constructedcxx . . $ _GtkAssistant#constructed.;
140
141 GListcxx . . $ GList# *pagescxx . . $ _GtkAssistant#pages.;
142 GSListcxx . . $ GSList# *visited_pagescxx . . $ _GtkAssistant#visited_pages.;
143 GtkAssistantPagecxx . . $ GtkAssistantPage# *current_pagecxx . . $ _GtkAssistant#current_page.;
144
145 GtkSizeGroupcxx . . $ GtkSizeGroup# *button_size_groupcxx . . $ _GtkAssistant#button_size_group.;
146 GtkSizeGroupcxx . . $ GtkSizeGroup# *title_size_groupcxx . . $ _GtkAssistant#title_size_group.;
147
148 GtkAssistantPageFunccxx . . $ GtkAssistantPageFunc# forward_functioncxx . . $ _GtkAssistant#forward_function.;
149 gpointercxx . . $ gpointer# forward_function_datacxx . . $ _GtkAssistant#forward_function_data.;
150 GDestroyNotifycxx . . $ GDestroyNotify# forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy.;
151
152 GListModelcxx . . $ GListModel# *modelcxx . . $ _GtkAssistant#model.;
153
154 int extra_buttonscxx . . $ _GtkAssistant#extra_buttons.;
155
156 guintcxx . . $ guint# committedcxx . . $ _GtkAssistant#committed. : 1;
157 };
158
159 struct _GtkAssistantClasscxx . . $ _GtkAssistantClass#
160 {
161 GtkWindowClasscxx . . $ GtkWindowClass# parent_classcxx . . $ _GtkAssistantClass#parent_class.;
162
163 void (* preparecxx . . $ _GtkAssistantClass#prepare.) (GtkAssistantcxx . . $ GtkAssistant# *assistant, GtkWidgetcxx . . $ GtkWidget# *page);
164 void (* applycxx . . $ _GtkAssistantClass#apply.) (GtkAssistantcxx . . $ GtkAssistant# *assistant);
165 void (* closecxx . . $ _GtkAssistantClass#close.) (GtkAssistantcxx . . $ GtkAssistant# *assistant);
166 void (* cancelcxx . . $ _GtkAssistantClass#cancel.) (GtkAssistantcxx . . $ GtkAssistant# *assistant);
167 };
168
169 #define GTK_TYPE_ASSISTANT_PAGEScxx . . $ `gtk/deprecated/gtkassistant.c:169:9`! (gtk_assistant_pages_get_type ())
170 G_DECLARE_FINAL_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1608:9`! (GtkAssistantPages, gtk_assistant_pages, GTK, ASSISTANT_PAGES, GObject)
171
172 struct _GtkAssistantPagescxx . . $ _GtkAssistantPages#
173 {
174 GObjectcxx . . $ GObject# parent_instancecxx . . $ _GtkAssistantPages#parent_instance.;
175 GtkAssistantcxx . . $ GtkAssistant# *assistantcxx . . $ _GtkAssistantPages#assistant.;
176 };
177
178 struct _GtkAssistantPagesClasscxx . . $ _GtkAssistantPagesClass#
179 {
180 GObjectClasscxx . . $ GObjectClass# parent_classcxx . . $ _GtkAssistantPagesClass#parent_class.;
181 };
182
183 enumcxx . . $ $anonymous_type_5983373b93c39b9f_1# {
184 PAGES_PROP_0cxx . . $ PAGES_PROP_0.,
185 PAGES_PROP_ITEM_TYPEcxx . . $ PAGES_PROP_ITEM_TYPE.,
186 PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.,
187
188 PAGES_N_PROPScxx . . $ PAGES_N_PROPS.
189 };
190
191 static GParamSpeccxx . . $ GParamSpec# *pages_propertiescxx . . $ pages_properties.[PAGES_N_PROPScxx . . $ PAGES_N_PROPS.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, };
192
193 static void gtk_assistant_disposecxx . . $ gtk_assistant_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object);
194 static void gtk_assistant_mapcxx . . $ gtk_assistant_map(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget);
195 static void gtk_assistant_unmapcxx . . $ gtk_assistant_unmap(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget);
196 static gbooleancxx . . $ gboolean# gtk_assistant_close_requestcxx . . $ gtk_assistant_close_request(b9ada049f487cdbd). (GtkWindowcxx . . $ GtkWindow# *window);
197
198 static void gtk_assistant_page_set_propertycxx . . $ gtk_assistant_page_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
199 guintcxx . . $ guint# property_id,
200 const GValuecxx . . $ GValue# *value,
201 GParamSpeccxx . . $ GParamSpec# *pspec);
202 static void gtk_assistant_page_get_propertycxx . . $ gtk_assistant_page_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
203 guintcxx . . $ guint# property_id,
204 GValuecxx . . $ GValue# *value,
205 GParamSpeccxx . . $ GParamSpec# *pspec);
206
207 static void gtk_assistant_buildable_interface_initcxx . . $ gtk_assistant_buildable_interface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface);
208 static void gtk_assistant_buildable_add_childcxx . . $ gtk_assistant_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
209 GtkBuildercxx . . $ GtkBuilder# *builder,
210 GObjectcxx . . $ GObject# *child,
211 const char *type);
212 static gbooleancxx . . $ gboolean# gtk_assistant_buildable_custom_tag_startcxx . . $ gtk_assistant_buildable_custom_tag_start(b259140ba88dbccf). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
213 GtkBuildercxx . . $ GtkBuilder# *builder,
214 GObjectcxx . . $ GObject# *child,
215 const char *tagname,
216 GtkBuildableParsercxx . . $ GtkBuildableParser# *parser,
217 gpointercxx . . $ gpointer# *data);
218 static void gtk_assistant_buildable_custom_finishedcxx . . $ gtk_assistant_buildable_custom_finished(9c109889ce297a82). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
219 GtkBuildercxx . . $ GtkBuilder# *builder,
220 GObjectcxx . . $ GObject# *child,
221 const char *tagname,
222 gpointercxx . . $ gpointer# user_data);
223
224 static GListcxx . . $ GList#* find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
225 GtkWidgetcxx . . $ GtkWidget# *page);
226 static void on_assistant_closecxx . . $ on_assistant_close(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
227 GtkAssistantcxx . . $ GtkAssistant# *assistant);
228 static void on_assistant_applycxx . . $ on_assistant_apply(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
229 GtkAssistantcxx . . $ GtkAssistant# *assistant);
230 static void on_assistant_forwardcxx . . $ on_assistant_forward(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
231 GtkAssistantcxx . . $ GtkAssistant# *assistant);
232 static void on_assistant_backcxx . . $ on_assistant_back(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
233 GtkAssistantcxx . . $ GtkAssistant# *assistant);
234 static void on_assistant_cancelcxx . . $ on_assistant_cancel(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
235 GtkAssistantcxx . . $ GtkAssistant# *assistant);
236 static void on_assistant_lastcxx . . $ on_assistant_last(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
237 GtkAssistantcxx . . $ GtkAssistant# *assistant);
238
239 static int gtk_assistant_add_pagecxx . . $ gtk_assistant_add_page(2d3b07bc7806d28c). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
240 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info,
241 int position);
242
243 enumcxx . . $ $anonymous_type_5983373b93c39b9f_2#
244 {
245 CHILD_PROP_0cxx . . $ CHILD_PROP_0.,
246 CHILD_PROP_CHILDcxx . . $ CHILD_PROP_CHILD.,
247 CHILD_PROP_PAGE_TYPEcxx . . $ CHILD_PROP_PAGE_TYPE.,
248 CHILD_PROP_PAGE_TITLEcxx . . $ CHILD_PROP_PAGE_TITLE.,
249 CHILD_PROP_PAGE_COMPLETEcxx . . $ CHILD_PROP_PAGE_COMPLETE.,
250 CHILD_PROP_HAS_PADDINGcxx . . $ CHILD_PROP_HAS_PADDING.
251 };
252
253 G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (GtkAssistantPage, gtk_assistant_page, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!)
254
255 static void
256 gtk_assistant_page_initcxx . . $ gtk_assistant_page_init(f8a8979e7a585ae). (GtkAssistantPagecxx . . $ GtkAssistantPage# *page)
257 {
258 page->typecxx . . $ _GtkAssistantPage#type. = GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT.;
259 }
260
261 static void
262 gtk_assistant_page_finalizecxx . . $ gtk_assistant_page_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
263 {
264 GtkAssistantPagecxx . . $ GtkAssistantPage# *page = GTK_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:82:9`! (object);
265
266 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&page->page);
267 g_freecxx . . $ g_free(5d22bdacc48458e8). (page->titlecxx . . $ _GtkAssistantPage#title.);
268
269 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_assistant_page_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
270 }
271
272 static void
273 gtk_assistant_page_class_initcxx . . $ gtk_assistant_page_class_init(6c2b7f3b6814d36b). (GtkAssistantPageClasscxx . . $ GtkAssistantPageClass# *class)
274 {
275 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class);
276
277 object_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_assistant_page_finalizecxx . . $ gtk_assistant_page_finalize(6087475fa43034d3).;
278 object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_assistant_page_get_propertycxx . . $ gtk_assistant_page_get_property(cee2c52f22407c66).;
279 object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_assistant_page_set_propertycxx . . $ gtk_assistant_page_set_property(d7c4bb29f36c0dc4).;
280
281 /**
282 * GtkAssistantPage:page-type:
283 *
284 * The type of the assistant page.
285 *
286 * Deprecated: 4.10: This object will be removed in GTK 5
287 */
288 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class,
289 CHILD_PROP_PAGE_TYPEcxx . . $ CHILD_PROP_PAGE_TYPE.,
290 g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("page-type", 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`!,
291 GTK_TYPE_ASSISTANT_PAGE_TYPEcxx . . $ `build/gtk/gtktypebuiltins.h:18:9`!,
292 GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT.,
293 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`! | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.));
294
295 /**
296 * GtkAssistantPage:title:
297 *
298 * The title of the page.
299 *
300 * Deprecated: 4.10: This object will be removed in GTK 5
301 */
302 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class,
303 CHILD_PROP_PAGE_TITLEcxx . . $ CHILD_PROP_PAGE_TITLE.,
304 g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("title", 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`!,
305 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
306 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`! | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.));
307
308 /**
309 * GtkAssistantPage:complete:
310 *
311 * Whether all required fields are filled in.
312 *
313 * GTK uses this information to control the sensitivity
314 * of the navigation buttons.
315 *
316 * Deprecated: 4.10: This object will be removed in GTK 5
317 */
318 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class,
319 CHILD_PROP_PAGE_COMPLETEcxx . . $ CHILD_PROP_PAGE_COMPLETE.,
320 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("complete", 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`!,
321 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
322 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.));
323
324 /**
325 * GtkAssistantPage:child:
326 *
327 * The child widget.
328 *
329 * Deprecated: 4.10: This object will be removed in GTK 5
330 */
331 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class,
332 CHILD_PROP_CHILDcxx . . $ CHILD_PROP_CHILD.,
333 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("child", 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`!,
334 GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!,
335 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`! | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY.));
336 }
337
338 enumcxx . . $ $anonymous_type_5983373b93c39b9f_3#
339 {
340 CANCELcxx . . $ CANCEL.,
341 PREPAREcxx . . $ PREPARE.,
342 APPLYcxx . . $ APPLY.,
343 CLOSEcxx . . $ CLOSE.,
344 ESCAPEcxx . . $ ESCAPE.,
345 LAST_SIGNALcxx . . $ LAST_SIGNAL.
346 };
347
348 enumcxx . . $ $anonymous_type_5983373b93c39b9f_4# {
349 PROP_0cxx . . $ PROP_0.,
350 PROP_USE_HEADER_BARcxx . . $ PROP_USE_HEADER_BAR.,
351 PROP_PAGEScxx . . $ PROP_PAGES.
352 };
353
354 static guintcxx . . $ guint# signalscxx . . $ signals. [LAST_SIGNALcxx . . $ LAST_SIGNAL.] = { 0 };
355
356 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkAssistant, gtk_assistant, GTK_TYPE_WINDOWcxx . . $ `gtk/gtkwindow.h:38:9`!,
357 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_BUILDABLEcxx . . $ `gtk/gtkbuildable.h:29:9`!,
358 gtk_assistant_buildable_interface_init))
359
360 static void
361 set_use_header_barcxx . . $ set_use_header_bar(b23aeadcfd826cf2). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
362 int use_header_bar)
363 {
364 if (use_header_bar == -1)
365 return;
366
367 assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar. = use_header_bar;
368 }
369
370 static void
371 gtk_assistant_set_propertycxx . . $ gtk_assistant_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
372 guintcxx . . $ guint# prop_id,
373 const GValuecxx . . $ GValue# *value,
374 GParamSpeccxx . . $ GParamSpec# *pspec)
375 {
376 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (object);
377
378 switch (prop_id)
379 {
380 case PROP_USE_HEADER_BARcxx . . $ PROP_USE_HEADER_BAR.:
381 set_use_header_barcxx . . $ set_use_header_bar(b23aeadcfd826cf2). (assistant, g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value));
382 break;
383
384 default:
385 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
386 break;
387 }
388 }
389
390 static void
391 gtk_assistant_get_propertycxx . . $ gtk_assistant_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
392 guintcxx . . $ guint# prop_id,
393 GValuecxx . . $ GValue# *value,
394 GParamSpeccxx . . $ GParamSpec# *pspec)
395 {
396 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (object);
397
398 switch (prop_id)
399 {
400 case PROP_USE_HEADER_BARcxx . . $ PROP_USE_HEADER_BAR.:
401 g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.);
402 break;
403
404 case PROP_PAGEScxx . . $ PROP_PAGES.:
405 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, gtk_assistant_get_pagescxx . . $ gtk_assistant_get_pages(2bff2fd2cee5d9a7). (assistant));
406 break;
407
408 default:
409 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
410 break;
411 }
412 }
413
414 static void
415 apply_use_header_barcxx . . $ apply_use_header_bar(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
416 {
417 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->action_areacxx . . $ _GtkAssistant#action_area., !assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.);
418 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->headerbarcxx . . $ _GtkAssistant#headerbar., assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.);
419 if (!assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.)
420 gtk_window_set_titlebarcxx . . $ gtk_window_set_titlebar(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
421 }
422
423 static void
424 add_to_header_barcxx . . $ add_to_header_bar(a8568284cc522a31). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
425 GtkWidgetcxx . . $ GtkWidget# *child)
426 {
427 gtk_widget_set_valigncxx . . $ gtk_widget_set_valign(71362b4a1e4eb244). (child, GTK_ALIGN_CENTERcxx . . $ GTK_ALIGN_CENTER.);
428
429 if (child == assistant->backcxx . . $ _GtkAssistant#back. || child == assistant->cancelcxx . . $ _GtkAssistant#cancel.)
430 gtk_header_bar_pack_startcxx . . $ gtk_header_bar_pack_start(14d06e3ad9f1afee). (GTK_HEADER_BARcxx . . $ `gtk/gtkheaderbar.h:31:9`! (assistant->headerbar), child);
431 else
432 gtk_header_bar_pack_endcxx . . $ gtk_header_bar_pack_end(14d06e3ad9f1afee). (GTK_HEADER_BARcxx . . $ `gtk/gtkheaderbar.h:31:9`! (assistant->headerbar), child);
433 }
434
435 static void
436 add_action_widgetscxx . . $ add_action_widgets(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
437 {
438 GListcxx . . $ GList# *children, *l;
439 GtkWidgetcxx . . $ GtkWidget# *child;
440
441 if (assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.)
442 {
443 children = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
444 for (child = gtk_widget_get_last_childcxx . . $ gtk_widget_get_last_child(ef973e1b01680070). (assistant->action_areacxx . . $ _GtkAssistant#action_area.);
445 child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
446 child = gtk_widget_get_prev_siblingcxx . . $ gtk_widget_get_prev_sibling(ef973e1b01680070). (child))
447 children = g_list_prependcxx . . $ g_list_prepend(35007086a6b2ba1c). (children, child);
448 for (l = children; l != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; l = l->nextcxx . . $ _GList#next.)
449 {
450 gbooleancxx . . $ gboolean# has_default;
451
452 child = l->datacxx . . $ _GList#data.;
453 has_default = gtk_widget_has_defaultcxx . . $ gtk_widget_has_default(9247ef2dc26c5426). (child);
454
455 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (child);
456 gtk_box_removecxx . . $ gtk_box_remove(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->action_area), child);
457 add_to_header_barcxx . . $ add_to_header_bar(a8568284cc522a31). (assistant, child);
458 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (child);
459
460 if (has_default)
461 {
462 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), child);
463 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (child, "suggested-action");
464 }
465 }
466 g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (children);
467 }
468 }
469
470 static void
471 gtk_assistant_constructedcxx . . $ gtk_assistant_constructed(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
472 {
473 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (object);
474
475 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_assistant_parent_class)->constructedcxx . . $ _GObjectClass#constructed. (object);
476
477 assistant->constructedcxx . . $ _GtkAssistant#constructed. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
478 if (assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar. == -1)
479 assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
480
481 add_action_widgetscxx . . $ add_action_widgets(4b2a45ee2141b8af). (assistant);
482 apply_use_header_barcxx . . $ apply_use_header_bar(4b2a45ee2141b8af). (assistant);
483 }
484
485 static void
486 escape_cbcxx . . $ escape_cb(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
487 {
488 /* Do not allow cancelling in the middle of a progress page */
489 if (assistant->current_pagecxx . . $ _GtkAssistant#current_page. &&
490 (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type. != GTK_ASSISTANT_PAGE_PROGRESScxx . . $ GTK_ASSISTANT_PAGE_PROGRESS. ||
491 assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.))
492 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [CANCELcxx . . $ CANCEL.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
493
494 /* don't run any user handlers - this is not a public signal */
495 g_signal_stop_emissioncxx . . $ g_signal_stop_emission(c68aebd18e69fbb8). (assistant, signalscxx . . $ signals.[ESCAPEcxx . . $ ESCAPE.], 0);
496 }
497
498 static void
499 gtk_assistant_finalizecxx . . $ gtk_assistant_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
500 {
501 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (object);
502
503 if (assistant->modelcxx . . $ _GtkAssistant#model.)
504 g_object_remove_weak_pointercxx . . $ g_object_remove_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (assistant->model), (gpointercxx . . $ gpointer# *)&assistant->modelcxx . . $ _GtkAssistant#model.);
505
506 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_assistant_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
507 }
508
509 static void
510 gtk_assistant_class_initcxx . . $ gtk_assistant_class_init(ce29a4c98f384758). (GtkAssistantClasscxx . . $ GtkAssistantClass# *class)
511 {
512 GObjectClasscxx . . $ GObjectClass# *gobject_class;
513 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class;
514 GtkWindowClasscxx . . $ GtkWindowClass# *window_class;
515
516 gobject_class = (GObjectClasscxx . . $ GObjectClass# *) class;
517 widget_class = (GtkWidgetClasscxx . . $ GtkWidgetClass# *) class;
518 window_class = (GtkWindowClasscxx . . $ GtkWindowClass# *) class;
519
520 gobject_class->disposecxx . . $ _GObjectClass#dispose. = gtk_assistant_disposecxx . . $ gtk_assistant_dispose(6087475fa43034d3).;
521 gobject_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_assistant_finalizecxx . . $ gtk_assistant_finalize(6087475fa43034d3).;
522 gobject_class->constructedcxx . . $ _GObjectClass#constructed. = gtk_assistant_constructedcxx . . $ gtk_assistant_constructed(6087475fa43034d3).;
523 gobject_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_assistant_set_propertycxx . . $ gtk_assistant_set_property(d7c4bb29f36c0dc4).;
524 gobject_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_assistant_get_propertycxx . . $ gtk_assistant_get_property(cee2c52f22407c66).;
525
526 widget_class->mapcxx . . $ _GtkWidgetClass#map. = gtk_assistant_mapcxx . . $ gtk_assistant_map(d7cf858254b37903).;
527 widget_class->unmapcxx . . $ _GtkWidgetClass#unmap. = gtk_assistant_unmapcxx . . $ gtk_assistant_unmap(d7cf858254b37903).;
528
529 window_class->close_requestcxx . . $ _GtkWindowClass#close_request. = gtk_assistant_close_requestcxx . . $ gtk_assistant_close_request(b9ada049f487cdbd).;
530
531 /**
532 * GtkAssistant::cancel:
533 * @assistant: the `GtkAssistant`
534 *
535 * Emitted when then the cancel button is clicked.
536 *
537 * Deprecated: 4.10: This widget will be removed in GTK 5
538 */
539 signalscxx . . $ signals.[CANCELcxx . . $ CANCEL.] =
540 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("cancel"),
541 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (gobject_class),
542 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
543 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAssistantClass, cancel),
544 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`!,
545 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
546 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
547
548 /**
549 * GtkAssistant::prepare:
550 * @assistant: the `GtkAssistant`
551 * @page: the current page
552 *
553 * Emitted when a new page is set as the assistant's current page,
554 * before making the new page visible.
555 *
556 * A handler for this signal can do any preparations which are
557 * necessary before showing @page.
558 *
559 * Deprecated: 4.10: This widget will be removed in GTK 5
560 */
561 signalscxx . . $ signals.[PREPAREcxx . . $ PREPARE.] =
562 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("prepare"),
563 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (gobject_class),
564 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
565 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAssistantClass, prepare),
566 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`!,
567 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
568 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 1, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!);
569
570 /**
571 * GtkAssistant::apply:
572 * @assistant: the `GtkAssistant`
573 *
574 * Emitted when the apply button is clicked.
575 *
576 * The default behavior of the `GtkAssistant` is to switch to the page
577 * after the current page, unless the current page is the last one.
578 *
579 * A handler for the ::apply signal should carry out the actions for
580 * which the wizard has collected data. If the action takes a long time
581 * to complete, you might consider putting a page of type
582 * %GTK_ASSISTANT_PAGE_PROGRESS after the confirmation page and handle
583 * this operation within the [[email protected]::prepare] signal of
584 * the progress page.
585 *
586 * Deprecated: 4.10: This widget will be removed in GTK 5
587 */
588 signalscxx . . $ signals.[APPLYcxx . . $ APPLY.] =
589 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("apply"),
590 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (gobject_class),
591 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
592 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAssistantClass, apply),
593 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`!,
594 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
595 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
596
597 /**
598 * GtkAssistant::close:
599 * @assistant: the `GtkAssistant`
600 *
601 * Emitted either when the close button of a summary page is clicked,
602 * or when the apply button in the last page in the flow (of type
603 * %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
604 *
605 * Deprecated: 4.10: This widget will be removed in GTK 5
606 */
607 signalscxx . . $ signals.[CLOSEcxx . . $ CLOSE.] =
608 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("close"),
609 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (gobject_class),
610 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
611 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAssistantClass, close),
612 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`!,
613 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
614 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
615
616 /**
617 * GtkAssistant::escape
618 * @assistant: the `GtkAssistant`
619 *
620 * The action signal for the Escape binding.
621 *
622 * Deprecated: 4.10: This widget will be removed in GTK 5
623 */
624 signalscxx . . $ signals.[ESCAPEcxx . . $ ESCAPE.] =
625 g_signal_new_class_handlercxx . . $ g_signal_new_class_handler(46127c9a6c6cedae). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("escape"),
626 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (gobject_class),
627 G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
628 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (escape_cb),
629 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`!,
630 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
631 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
632
633 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
634 GDK_KEY_Escapecxx . . $ `gdk/gdkkeysyms.h:40:9`!, 0,
635 "escape",
636 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
637
638 /**
639 * GtkAssistant:use-header-bar:
640 *
641 * %TRUE if the assistant uses a `GtkHeaderBar` for action buttons
642 * instead of the action-area.
643 *
644 * For technical reasons, this property is declared as an integer
645 * property, but you should only set it to %TRUE or %FALSE.
646 *
647 * Deprecated: 4.10: This widget will be removed in GTK 5
648 */
649 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
650 PROP_USE_HEADER_BARcxx . . $ PROP_USE_HEADER_BAR.,
651 g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("use-header-bar", 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`!,
652 -1, 1, -1,
653 GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY.));
654
655 /**
656 * GtkAssistant:pages:
657 *
658 * `GListModel` containing the pages.
659 */
660 g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (gobject_class,
661 PROP_PAGEScxx . . $ PROP_PAGES.,
662 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("pages", 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`!,
663 G_TYPE_LIST_MODELcxx . . $ `<external>/10117917155607792737/glistmodel.h:36:9`!,
664 GTK_PARAM_READABLEcxx . . $ `gtk/gtkprivate.h:42:9`!));
665
666 /* Bind class to template
667 */
668 gtk_widget_class_set_template_from_resourcecxx . . $ gtk_widget_class_set_template_from_resource(6333614c746ab65a). (widget_class,
669 "/org/gtk/libgtk/ui/gtkassistant.ui");
670
671 gtk_widget_class_bind_template_child_internalcxx . . $ `gtk/gtkwidget.h:785:9`! (widget_class, GtkAssistant, action_area);
672 gtk_widget_class_bind_template_child_internalcxx . . $ `gtk/gtkwidget.h:785:9`! (widget_class, GtkAssistant, headerbar);
673 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, content);
674 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, cancel);
675 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, forward);
676 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, back);
677 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, apply);
678 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, close);
679 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, last);
680 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, sidebar);
681 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, button_size_group);
682 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, GtkAssistant, title_size_group);
683
684 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_close);
685 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_apply);
686 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_forward);
687 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_back);
688 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_cancel);
689 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, on_assistant_last);
690 }
691
692 static int
693 default_forward_functioncxx . . $ default_forward_function(74ddd077bf55c9c9). (int current_page, gpointercxx . . $ gpointer# data)
694 {
695 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (data);
696 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
697 GListcxx . . $ GList# *page_node;
698
699 page_node = g_list_nthcxx . . $ g_list_nth(a9fdb5fe6cd98ae). (assistant->pagescxx . . $ _GtkAssistant#pages., ++current_page);
700
701 if (!page_node)
702 return -1;
703
704 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) page_node->datacxx . . $ _GList#data.;
705
706 while (page_node && !gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (page_info->pagecxx . . $ _GtkAssistantPage#page.))
707 {
708 page_node = page_node->nextcxx . . $ _GList#next.;
709 current_page++;
710
711 if (page_node)
712 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) page_node->datacxx . . $ _GList#data.;
713 }
714
715 return current_page;
716 }
717
718 static gbooleancxx . . $ gboolean#
719 last_button_visiblecxx . . $ last_button_visible(aae5a14b081b3ebb). (GtkAssistantcxx . . $ GtkAssistant# *assistant, GtkAssistantPagecxx . . $ GtkAssistantPage# *page)
720 {
721 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
722 int count, page_num, n_pages;
723
724 if (page == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
725 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
726
727 if (page->typecxx . . $ _GtkAssistantPage#type. != GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT.)
728 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
729
730 count = 0;
731 page_num = g_list_indexcxx . . $ g_list_index(141dd89544b2cef). (assistant->pagescxx . . $ _GtkAssistant#pages., page);
732 n_pages = g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.);
733 page_info = page;
734
735 while (page_num >= 0 && page_num < n_pages &&
736 page_info->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT. &&
737 (count == 0 || page_info->completecxx . . $ _GtkAssistantPage#complete.) &&
738 count < n_pages)
739 {
740 page_num = (assistant->forward_functioncxx . . $ _GtkAssistant#forward_function.) (page_num, assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.);
741 page_info = g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (assistant->pagescxx . . $ _GtkAssistant#pages., page_num);
742
743 count++;
744 }
745
746 /* Make the last button visible if we can skip multiple
747 * pages and end on a confirmation or summary page
748 */
749 if (count > 1 && page_info &&
750 (page_info->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_CONFIRMcxx . . $ GTK_ASSISTANT_PAGE_CONFIRM. ||
751 page_info->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_SUMMARYcxx . . $ GTK_ASSISTANT_PAGE_SUMMARY.))
752 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
753 else
754 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
755 }
756
757 static void
758 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
759 {
760 GListcxx . . $ GList# *l;
761 GtkAssistantPagecxx . . $ GtkAssistantPage# *page;
762 int buttons, page_buttons;
763
764 if (!assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
765 return;
766
767 /* Some heuristics to find out how many buttons we should
768 * reserve space for. It is possible to trick this code
769 * with page forward functions and invisible pages, etc.
770 */
771 buttons = 0;
772 for (l = assistant->pagescxx . . $ _GtkAssistant#pages.; l; l = l->nextcxx . . $ _GList#next.)
773 {
774 page = l->datacxx . . $ _GList#data.;
775
776 if (!gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (page->pagecxx . . $ _GtkAssistantPage#page.))
777 continue;
778
779 page_buttons = 2; /* cancel, forward/apply/close */
780 if (l != assistant->pagescxx . . $ _GtkAssistant#pages.)
781 page_buttons += 1; /* back */
782 if (last_button_visiblecxx . . $ last_button_visible(aae5a14b081b3ebb). (assistant, page))
783 page_buttons += 1; /* last */
784
785 buttons = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (buttons, page_buttons);
786 }
787
788 buttons += assistant->extra_buttonscxx . . $ _GtkAssistant#extra_buttons.;
789
790 gtk_widget_set_size_requestcxx . . $ gtk_widget_set_size_request(f5b8e75990cfac4b). (assistant->action_areacxx . . $ _GtkAssistant#action_area.,
791 buttons * gtk_widget_get_allocated_widthcxx . . $ gtk_widget_get_allocated_width(9247ef2dc26c5426). (assistant->cancelcxx . . $ _GtkAssistant#cancel.) + (buttons - 1) * 6,
792 -1);
793 }
794
795 static void
796 compute_last_button_statecxx . . $ compute_last_button_state(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
797 {
798 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
799 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last.,
800 last_button_visiblecxx . . $ last_button_visible(aae5a14b081b3ebb). (assistant, assistant->current_pagecxx . . $ _GtkAssistant#current_page.));
801 }
802
803 static void
804 compute_progress_statecxx . . $ compute_progress_state(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
805 {
806 int page_num, n_pages;
807
808 n_pages = gtk_assistant_get_n_pagescxx . . $ gtk_assistant_get_n_pages(77347c433b0f7a8). (assistant);
809 page_num = gtk_assistant_get_current_pagecxx . . $ gtk_assistant_get_current_page(77347c433b0f7a8). (assistant);
810
811 page_num = (assistant->forward_functioncxx . . $ _GtkAssistant#forward_function.) (page_num, assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.);
812 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., page_num >= 0 && page_num < n_pages);
813 }
814
815 static void
816 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
817 {
818 if (!assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
819 return;
820
821 switch (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type.)
822 {
823 case GTK_ASSISTANT_PAGE_INTROcxx . . $ GTK_ASSISTANT_PAGE_INTRO.:
824 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
825 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
826 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->forwardcxx . . $ _GtkAssistant#forward.);
827 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
828 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
829 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
830 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
831 compute_last_button_statecxx . . $ compute_last_button_state(4b2a45ee2141b8af). (assistant);
832 break;
833 case GTK_ASSISTANT_PAGE_CONFIRMcxx . . $ GTK_ASSISTANT_PAGE_CONFIRM.:
834 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
835 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
836 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
837 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->applycxx . . $ _GtkAssistant#apply.);
838 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
839 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
840 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
841 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
842 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
843 break;
844 case GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT.:
845 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
846 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
847 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
848 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->forwardcxx . . $ _GtkAssistant#forward.);
849 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
850 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
851 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
852 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
853 compute_last_button_statecxx . . $ compute_last_button_state(4b2a45ee2141b8af). (assistant);
854 break;
855 case GTK_ASSISTANT_PAGE_SUMMARYcxx . . $ GTK_ASSISTANT_PAGE_SUMMARY.:
856 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
857 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->closecxx . . $ _GtkAssistant#close.);
858 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
859 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
860 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
861 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
862 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
863 break;
864 case GTK_ASSISTANT_PAGE_PROGRESScxx . . $ GTK_ASSISTANT_PAGE_PROGRESS.:
865 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
866 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
867 gtk_widget_set_sensitivecxx . . $ gtk_widget_set_sensitive(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.);
868 gtk_window_set_default_widgetcxx . . $ gtk_window_set_default_widget(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->forwardcxx . . $ _GtkAssistant#forward.);
869 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
870 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
871 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
872 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
873 compute_progress_statecxx . . $ compute_progress_state(4b2a45ee2141b8af). (assistant);
874 break;
875 case GTK_ASSISTANT_PAGE_CUSTOMcxx . . $ GTK_ASSISTANT_PAGE_CUSTOM.:
876 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
877 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
878 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->forwardcxx . . $ _GtkAssistant#forward., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
879 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->applycxx . . $ _GtkAssistant#apply., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
880 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->lastcxx . . $ _GtkAssistant#last., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
881 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->closecxx . . $ _GtkAssistant#close., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
882 break;
883 default:
884 g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! ();
885 }
886
887 if (assistant->committedcxx . . $ _GtkAssistant#committed.)
888 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
889 else if (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_SUMMARYcxx . . $ GTK_ASSISTANT_PAGE_SUMMARY. ||
890 assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_CUSTOMcxx . . $ GTK_ASSISTANT_PAGE_CUSTOM.)
891 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
892 else
893 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->cancelcxx . . $ _GtkAssistant#cancel., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
894
895 /* this is quite general, we don't want to
896 * go back if it's the first page
897 */
898 if (!assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.)
899 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->backcxx . . $ _GtkAssistant#back., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
900 }
901
902 static gbooleancxx . . $ gboolean#
903 update_page_title_statecxx . . $ update_page_title_state(72be6e4599e91745). (GtkAssistantcxx . . $ GtkAssistant# *assistant, GListcxx . . $ GList# *list)
904 {
905 GtkAssistantPagecxx . . $ GtkAssistantPage# *page, *other;
906 gbooleancxx . . $ gboolean# visible;
907 GListcxx . . $ GList# *l;
908
909 page = list->datacxx . . $ _GList#data.;
910
911 if (page->titlecxx . . $ _GtkAssistantPage#title. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || page->titlecxx . . $ _GtkAssistantPage#title.[0] == 0)
912 visible = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
913 else
914 visible = gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (page->pagecxx . . $ _GtkAssistantPage#page.);
915
916 if (page == assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
917 {
918 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page->regular_titlecxx . . $ _GtkAssistantPage#regular_title., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
919 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page->current_titlecxx . . $ _GtkAssistantPage#current_title., visible);
920 }
921 else
922 {
923 /* If multiple consecutive pages have the same title,
924 * we only show it once, since it would otherwise look
925 * silly. We have to be a little careful, since we
926 * _always_ show the title of the current page.
927 */
928 if (list->prevcxx . . $ _GList#prev.)
929 {
930 other = list->prevcxx . . $ _GList#prev.->datacxx . . $ _GList#data.;
931 if (g_strcmp0cxx . . $ g_strcmp0(5ae29d726ae57f88). (page->titlecxx . . $ _GtkAssistantPage#title., other->titlecxx . . $ _GtkAssistantPage#title.) == 0)
932 visible = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
933 }
934 for (l = list->nextcxx . . $ _GList#next.; l; l = l->nextcxx . . $ _GList#next.)
935 {
936 other = l->datacxx . . $ _GList#data.;
937 if (g_strcmp0cxx . . $ g_strcmp0(5ae29d726ae57f88). (page->titlecxx . . $ _GtkAssistantPage#title., other->titlecxx . . $ _GtkAssistantPage#title.) != 0)
938 break;
939
940 if (other == assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
941 {
942 visible = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
943 break;
944 }
945 }
946
947 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page->regular_titlecxx . . $ _GtkAssistantPage#regular_title., visible);
948 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page->current_titlecxx . . $ _GtkAssistantPage#current_title., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
949 }
950
951 return visible;
952 }
953
954 static void
955 update_title_statecxx . . $ update_title_state(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
956 {
957 GListcxx . . $ GList# *l;
958 gbooleancxx . . $ gboolean# show_titles;
959
960 show_titles = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
961 for (l = assistant->pagescxx . . $ _GtkAssistant#pages.; l != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; l = l->nextcxx . . $ _GList#next.)
962 {
963 if (update_page_title_statecxx . . $ update_page_title_state(72be6e4599e91745). (assistant, l))
964 show_titles = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
965 }
966
967 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (assistant->sidebarcxx . . $ _GtkAssistant#sidebar., show_titles);
968 }
969
970 static void
971 set_current_pagecxx . . $ set_current_page(b23aeadcfd826cf2). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
972 int page_num)
973 {
974 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = (GtkAssistantPagecxx . . $ GtkAssistantPage# *)g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (assistant->pagescxx . . $ _GtkAssistant#pages., page_num);
975
976 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [PREPAREcxx . . $ PREPARE.], 0, assistant->current_pagecxx . . $ _GtkAssistant#current_page.->pagecxx . . $ _GtkAssistantPage#page.);
977 /* do not continue if the prepare signal handler has already changed the
978 * current page */
979 if (assistant->current_pagecxx . . $ _GtkAssistant#current_page. != (GtkAssistantPagecxx . . $ GtkAssistantPage# *)g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (assistant->pagescxx . . $ _GtkAssistant#pages., page_num))
980 return;
981
982 update_title_statecxx . . $ update_title_state(4b2a45ee2141b8af). (assistant);
983
984 gtk_window_set_titlecxx . . $ gtk_window_set_title(3b72ed0988310abf). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (assistant), assistant->current_pagecxx . . $ _GtkAssistant#current_page.->titlecxx . . $ _GtkAssistantPage#title.);
985
986 gtk_stack_set_visible_childcxx . . $ gtk_stack_set_visible_child(49e424d5d1cc8631). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (assistant->content), assistant->current_pagecxx . . $ _GtkAssistant#current_page.->pagecxx . . $ _GtkAssistantPage#page.);
987
988 /* update buttons state, flow may have changed */
989 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
990 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
991
992 if (!gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->pagecxx . . $ _GtkAssistantPage#page., GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.))
993 {
994 GtkWidgetcxx . . $ GtkWidget# *button[6];
995 int i;
996
997 /* find the best button to focus */
998 button[0] = assistant->applycxx . . $ _GtkAssistant#apply.;
999 button[1] = assistant->closecxx . . $ _GtkAssistant#close.;
1000 button[2] = assistant->forwardcxx . . $ _GtkAssistant#forward.;
1001 button[3] = assistant->backcxx . . $ _GtkAssistant#back.;
1002 button[4] = assistant->cancelcxx . . $ _GtkAssistant#cancel.;
1003 button[5] = assistant->lastcxx . . $ _GtkAssistant#last.;
1004 for (i = 0; i < 6; i++)
1005 {
1006 if (gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (button[i]) &&
1007 gtk_widget_get_sensitivecxx . . $ gtk_widget_get_sensitive(9247ef2dc26c5426). (button[i]))
1008 {
1009 gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (button[i]);
1010 break;
1011 }
1012 }
1013 }
1014 }
1015
1016 static int
1017 compute_next_stepcxx . . $ compute_next_step(77347c433b0f7a8). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1018 {
1019 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
1020 int current_page, n_pages, next_page;
1021
1022 current_page = gtk_assistant_get_current_pagecxx . . $ gtk_assistant_get_current_page(77347c433b0f7a8). (assistant);
1023 page_info = assistant->current_pagecxx . . $ _GtkAssistant#current_page.;
1024 n_pages = gtk_assistant_get_n_pagescxx . . $ gtk_assistant_get_n_pages(77347c433b0f7a8). (assistant);
1025
1026 next_page = (assistant->forward_functioncxx . . $ _GtkAssistant#forward_function.) (current_page,
1027 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.);
1028
1029 if (next_page >= 0 && next_page < n_pages)
1030 {
1031 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages., page_info);
1032 set_current_pagecxx . . $ set_current_page(b23aeadcfd826cf2). (assistant, next_page);
1033
1034 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1035 }
1036
1037 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1038 }
1039
1040 static void
1041 on_assistant_closecxx . . $ on_assistant_close(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1042 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1043 {
1044 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [CLOSEcxx . . $ CLOSE.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1045 }
1046
1047 static void
1048 on_assistant_applycxx . . $ on_assistant_apply(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1049 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1050 {
1051 gbooleancxx . . $ gboolean# success;
1052
1053 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [APPLYcxx . . $ APPLY.], 0);
1054
1055 success = compute_next_stepcxx . . $ compute_next_step(77347c433b0f7a8). (assistant);
1056
1057 /* if the assistant hasn't switched to another page, just emit
1058 * the CLOSE signal, it't the last page in the assistant flow
1059 */
1060 if (!success)
1061 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [CLOSEcxx . . $ CLOSE.], 0);
1062 }
1063
1064 static void
1065 on_assistant_forwardcxx . . $ on_assistant_forward(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1066 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1067 {
1068 gtk_assistant_next_pagecxx . . $ gtk_assistant_next_page(4b2a45ee2141b8af). (assistant);
1069 }
1070
1071 static void
1072 on_assistant_backcxx . . $ on_assistant_back(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1073 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1074 {
1075 gtk_assistant_previous_pagecxx . . $ gtk_assistant_previous_page(4b2a45ee2141b8af). (assistant);
1076 }
1077
1078 static void
1079 on_assistant_cancelcxx . . $ on_assistant_cancel(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1080 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1081 {
1082 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [CANCELcxx . . $ CANCEL.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1083 }
1084
1085 static void
1086 on_assistant_lastcxx . . $ on_assistant_last(447ff0209928c89). (GtkWidgetcxx . . $ GtkWidget# *widget,
1087 GtkAssistantcxx . . $ GtkAssistant# *assistant)
1088 {
1089 while (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_CONTENTcxx . . $ GTK_ASSISTANT_PAGE_CONTENT. &&
1090 assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.)
1091 compute_next_stepcxx . . $ compute_next_step(77347c433b0f7a8). (assistant);
1092 }
1093
1094 static gbooleancxx . . $ gboolean#
1095 alternative_button_ordercxx . . $ alternative_button_order(77347c433b0f7a8). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1096 {
1097 gbooleancxx . . $ gboolean# result;
1098
1099 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (gtk_widget_get_settingscxx . . $ gtk_widget_get_settings(ffe4fbf99830fa29). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)),
1100 "gtk-alternative-button-order", &result,
1101 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1102 return result;
1103 }
1104
1105 static void
1106 on_page_page_notifycxx . . $ on_page_page_notify(e6f813de8be39d8a). (GtkWidgetcxx . . $ GtkWidget# *widget,
1107 GParamSpeccxx . . $ GParamSpec# *arg,
1108 gpointercxx . . $ gpointer# data)
1109 {
1110 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (data);
1111
1112 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1113 {
1114 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
1115 update_title_statecxx . . $ update_title_state(4b2a45ee2141b8af). (assistant);
1116 }
1117 }
1118
1119 static void
1120 on_page_notifycxx . . $ on_page_notify(b8e0139f2ab1d2d7). (GtkAssistantPagecxx . . $ GtkAssistantPage# *page,
1121 GParamSpeccxx . . $ GParamSpec# *arg,
1122 gpointercxx . . $ gpointer# data)
1123 {
1124 if (page->pagecxx . . $ _GtkAssistantPage#page.)
1125 on_page_page_notifycxx . . $ on_page_page_notify(e6f813de8be39d8a). (page->pagecxx . . $ _GtkAssistantPage#page., arg, data);
1126 }
1127
1128 static void
1129 assistant_remove_pagecxx . . $ assistant_remove_page(a8568284cc522a31). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1130 GtkWidgetcxx . . $ GtkWidget# *page)
1131 {
1132 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
1133 GListcxx . . $ GList# *page_node;
1134 GListcxx . . $ GList# *element;
1135
1136 element = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
1137 if (!element)
1138 return;
1139
1140 page_info = element->datacxx . . $ _GList#data.;
1141
1142 /* If this is the current page, we need to switch away. */
1143 if (page_info == assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
1144 {
1145 if (!compute_next_stepcxx . . $ compute_next_step(77347c433b0f7a8). (assistant))
1146 {
1147 /* The best we can do at this point is probably to pick
1148 * the first visible page.
1149 */
1150 page_node = assistant->pagescxx . . $ _GtkAssistant#pages.;
1151
1152 while (page_node &&
1153 !gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (((GtkAssistantPagecxx . . $ GtkAssistantPage# *) page_node->datacxx . . $ _GList#data.)->pagecxx . . $ _GtkAssistantPage#page.))
1154 page_node = page_node->nextcxx . . $ _GList#next.;
1155
1156 if (page_node == element)
1157 page_node = page_node->nextcxx . . $ _GList#next.;
1158
1159 if (page_node)
1160 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = page_node->datacxx . . $ _GList#data.;
1161 else
1162 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1163 }
1164 }
1165
1166 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (page_info->page, on_page_page_notify, assistant);
1167 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (page_info, on_page_notify, assistant);
1168
1169 gtk_size_group_remove_widgetcxx . . $ gtk_size_group_remove_widget(1c29cbce5c69a315). (assistant->title_size_groupcxx . . $ _GtkAssistant#title_size_group., page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title.);
1170 gtk_size_group_remove_widgetcxx . . $ gtk_size_group_remove_widget(1c29cbce5c69a315). (assistant->title_size_groupcxx . . $ _GtkAssistant#title_size_group., page_info->current_titlecxx . . $ _GtkAssistantPage#current_title.);
1171
1172 gtk_box_removecxx . . $ gtk_box_remove(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->sidebar), page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title.);
1173 gtk_box_removecxx . . $ gtk_box_remove(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->sidebar), page_info->current_titlecxx . . $ _GtkAssistantPage#current_title.);
1174
1175 assistant->pagescxx . . $ _GtkAssistant#pages. = g_list_remove_linkcxx . . $ g_list_remove_link(8f293ee9e7c86892). (assistant->pagescxx . . $ _GtkAssistant#pages., element);
1176 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = g_slist_remove_allcxx . . $ g_slist_remove_all(f729b2814f82a8b5). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages., page_info);
1177
1178 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (page_info);
1179
1180 g_list_free_1cxx . . $ g_list_free_1(d1b6ff1ff9a6d4b6). (element);
1181
1182 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1183 {
1184 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
1185 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (assistant);
1186 }
1187 }
1188
1189 static void
1190 gtk_assistant_initcxx . . $ gtk_assistant_init(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1191 {
1192 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant), "assistant");
1193
1194 assistant->pagescxx . . $ _GtkAssistant#pages. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1195 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1196 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1197
1198 assistant->forward_functioncxx . . $ _GtkAssistant#forward_function. = default_forward_functioncxx . . $ default_forward_function(74ddd077bf55c9c9).;
1199 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data. = assistant;
1200 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1201
1202 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (gtk_widget_get_settingscxx . . $ gtk_widget_get_settings(ffe4fbf99830fa29). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)),
1203 "gtk-dialogs-use-header", &assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.,
1204 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1205
1206 gtk_widget_init_templatecxx . . $ gtk_widget_init_template(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant));
1207
1208 if (alternative_button_ordercxx . . $ alternative_button_order(77347c433b0f7a8). (assistant))
1209 {
1210 GListcxx . . $ GList# *buttons, *l;
1211 GtkWidgetcxx . . $ GtkWidget# *child;
1212
1213 buttons = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1214 for (child = gtk_widget_get_last_childcxx . . $ gtk_widget_get_last_child(ef973e1b01680070). (assistant->action_areacxx . . $ _GtkAssistant#action_area.);
1215 child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1216 child = gtk_widget_get_prev_siblingcxx . . $ gtk_widget_get_prev_sibling(ef973e1b01680070). (child))
1217 buttons = g_list_prependcxx . . $ g_list_prepend(35007086a6b2ba1c). (buttons, child);
1218
1219 for (l = buttons; l; l = l->nextcxx . . $ _GList#next.)
1220 gtk_box_reorder_child_aftercxx . . $ gtk_box_reorder_child_after(d0ded8d662e2b046). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->action_area), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (l->data), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1221
1222 g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (buttons);
1223 }
1224 }
1225
1226 static void
1227 gtk_assistant_page_set_propertycxx . . $ gtk_assistant_page_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
1228 guintcxx . . $ guint# property_id,
1229 const GValuecxx . . $ GValue# *value,
1230 GParamSpeccxx . . $ GParamSpec# *pspec)
1231 {
1232 GtkAssistantPagecxx . . $ GtkAssistantPage# *page = GTK_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:82:9`! (object);
1233 GtkWidgetcxx . . $ GtkWidget# *assistant = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1234
1235 if (page->pagecxx . . $ _GtkAssistantPage#page.)
1236 assistant = gtk_widget_get_ancestorcxx . . $ gtk_widget_get_ancestor(b7ba6c2729848898). (page->pagecxx . . $ _GtkAssistantPage#page., GTK_TYPE_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:34:9`!);
1237
1238 switch (property_id)
1239 {
1240 case CHILD_PROP_CHILDcxx . . $ CHILD_PROP_CHILD.:
1241 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&page->page, g_value_get_object (value));
1242 break;
1243
1244 case CHILD_PROP_PAGE_TYPEcxx . . $ CHILD_PROP_PAGE_TYPE.:
1245 if (page->typecxx . . $ _GtkAssistantPage#type. != g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value))
1246 {
1247 page->typecxx . . $ _GtkAssistantPage#type. = g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value);
1248
1249 /* backwards compatibility to the era before fixing bug 604289 */
1250 if (page->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_SUMMARYcxx . . $ GTK_ASSISTANT_PAGE_SUMMARY. && !page->complete_setcxx . . $ _GtkAssistantPage#complete_set.)
1251 {
1252 page->completecxx . . $ _GtkAssistantPage#complete. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1253 page->complete_setcxx . . $ _GtkAssistantPage#complete_set. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1254 }
1255
1256 /* Always set buttons state, a change in a future page
1257 * might change current page buttons
1258 */
1259 if (assistant)
1260 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (assistant));
1261 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page), "page-type");
1262 }
1263 break;
1264
1265 case CHILD_PROP_PAGE_TITLEcxx . . $ CHILD_PROP_PAGE_TITLE.:
1266 g_freecxx . . $ g_free(5d22bdacc48458e8). (page->titlecxx . . $ _GtkAssistantPage#title.);
1267 page->titlecxx . . $ _GtkAssistantPage#title. = g_value_dup_stringcxx . . $ g_value_dup_string(602930317b8318e8). (value);
1268
1269 if (assistant)
1270 {
1271 gtk_label_set_textcxx . . $ gtk_label_set_text(3d016a7109913fca). ((GtkLabelcxx . . $ GtkLabel#*) page->regular_titlecxx . . $ _GtkAssistantPage#regular_title., page->titlecxx . . $ _GtkAssistantPage#title.);
1272 gtk_label_set_textcxx . . $ gtk_label_set_text(3d016a7109913fca). ((GtkLabelcxx . . $ GtkLabel#*) page->current_titlecxx . . $ _GtkAssistantPage#current_title., page->titlecxx . . $ _GtkAssistantPage#title.);
1273 update_title_statecxx . . $ update_title_state(4b2a45ee2141b8af). (GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (assistant));
1274 }
1275
1276 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page), "title");
1277
1278 break;
1279
1280 case CHILD_PROP_PAGE_COMPLETEcxx . . $ CHILD_PROP_PAGE_COMPLETE.:
1281 if (page->completecxx . . $ _GtkAssistantPage#complete. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value))
1282 {
1283 page->completecxx . . $ _GtkAssistantPage#complete. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value);
1284 page->complete_setcxx . . $ _GtkAssistantPage#complete_set. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1285
1286 /* Always set buttons state, a change in a future page
1287 * might change current page buttons
1288 */
1289 if (assistant)
1290 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (assistant));
1291 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page), "complete");
1292 }
1293 break;
1294
1295 default:
1296 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, property_id, pspec);
1297 break;
1298 }
1299 }
1300
1301 static void
1302 gtk_assistant_page_get_propertycxx . . $ gtk_assistant_page_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
1303 guintcxx . . $ guint# property_id,
1304 GValuecxx . . $ GValue# *value,
1305 GParamSpeccxx . . $ GParamSpec# *pspec)
1306 {
1307 GtkAssistantPagecxx . . $ GtkAssistantPage# *page = GTK_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:82:9`! (object);
1308
1309 switch (property_id)
1310 {
1311 case CHILD_PROP_CHILDcxx . . $ CHILD_PROP_CHILD.:
1312 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, page->pagecxx . . $ _GtkAssistantPage#page.);
1313 break;
1314
1315 case CHILD_PROP_PAGE_TYPEcxx . . $ CHILD_PROP_PAGE_TYPE.:
1316 g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, page->typecxx . . $ _GtkAssistantPage#type.);
1317 break;
1318
1319 case CHILD_PROP_PAGE_TITLEcxx . . $ CHILD_PROP_PAGE_TITLE.:
1320 g_value_set_stringcxx . . $ g_value_set_string(65b9ea7708b82b9b). (value, page->titlecxx . . $ _GtkAssistantPage#title.);
1321 break;
1322
1323 case CHILD_PROP_PAGE_COMPLETEcxx . . $ CHILD_PROP_PAGE_COMPLETE.:
1324 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, page->completecxx . . $ _GtkAssistantPage#complete.);
1325 break;
1326
1327 default:
1328 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, property_id, pspec);
1329 break;
1330 }
1331 }
1332
1333 static void
1334 gtk_assistant_disposecxx . . $ gtk_assistant_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
1335 {
1336 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (object);
1337
1338 if (assistant->modelcxx . . $ _GtkAssistant#model. && g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.))
1339 {
1340 g_list_model_items_changedcxx . . $ g_list_model_items_changed(2896dae0034144d8). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (assistant->modelcxx . . $ _GtkAssistant#model.), 0, g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.), 0);
1341 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (assistant->model), pages_propertiescxx . . $ pages_properties.[PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.]);
1342 }
1343
1344 /* We set current to NULL so that the remove code doesn't try
1345 * to do anything funny
1346 */
1347 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1348
1349 if (assistant->contentcxx . . $ _GtkAssistant#content.)
1350 {
1351 while (assistant->pagescxx . . $ _GtkAssistant#pages.)
1352 gtk_assistant_remove_pagecxx . . $ gtk_assistant_remove_page(b23aeadcfd826cf2). (assistant, 0);
1353
1354 assistant->contentcxx . . $ _GtkAssistant#content. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1355 }
1356
1357 assistant->sidebarcxx . . $ _GtkAssistant#sidebar. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1358 assistant->action_areacxx . . $ _GtkAssistant#action_area. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1359
1360 if (assistant->forward_functioncxx . . $ _GtkAssistant#forward_function.)
1361 {
1362 if (assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data. &&
1363 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy.)
1364 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. (assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.);
1365
1366 assistant->forward_functioncxx . . $ _GtkAssistant#forward_function. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1367 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1368 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1369 }
1370
1371 if (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.)
1372 {
1373 g_slist_freecxx . . $ g_slist_free(e7f64dba92841206). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.);
1374 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1375 }
1376
1377 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_assistant_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
1378 }
1379
1380 static GListcxx . . $ GList#*
1381 find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1382 GtkWidgetcxx . . $ GtkWidget# *page)
1383 {
1384 GListcxx . . $ GList# *child = assistant->pagescxx . . $ _GtkAssistant#pages.;
1385
1386 while (child)
1387 {
1388 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info = child->datacxx . . $ _GList#data.;
1389 if (page_info->pagecxx . . $ _GtkAssistantPage#page. == page)
1390 return child;
1391
1392 child = child->nextcxx . . $ _GList#next.;
1393 }
1394
1395 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1396 }
1397
1398 static void
1399 gtk_assistant_mapcxx . . $ gtk_assistant_map(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
1400 {
1401 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (widget);
1402 GListcxx . . $ GList# *page_node;
1403 GtkAssistantPagecxx . . $ GtkAssistantPage# *page;
1404 int page_num;
1405
1406 /* if there's no default page, pick the first one */
1407 page = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1408 page_num = 0;
1409 if (!assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
1410 {
1411 page_node = assistant->pagescxx . . $ _GtkAssistant#pages.;
1412
1413 while (page_node && !gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (((GtkAssistantPagecxx . . $ GtkAssistantPage# *) page_node->datacxx . . $ _GList#data.)->pagecxx . . $ _GtkAssistantPage#page.))
1414 {
1415 page_node = page_node->nextcxx . . $ _GList#next.;
1416 page_num++;
1417 }
1418
1419 if (page_node)
1420 page = page_node->datacxx . . $ _GList#data.;
1421 }
1422
1423 if (page && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (page->pagecxx . . $ _GtkAssistantPage#page.))
1424 set_current_pagecxx . . $ set_current_page(b23aeadcfd826cf2). (assistant, page_num);
1425
1426 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
1427 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (assistant);
1428 update_title_statecxx . . $ update_title_state(4b2a45ee2141b8af). (assistant);
1429
1430 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_assistant_parent_class)->mapcxx . . $ _GtkWidgetClass#map. (widget);
1431 }
1432
1433 static void
1434 gtk_assistant_unmapcxx . . $ gtk_assistant_unmap(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
1435 {
1436 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (widget);
1437
1438 g_slist_freecxx . . $ g_slist_free(e7f64dba92841206). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.);
1439 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1440 assistant->current_pagecxx . . $ _GtkAssistant#current_page. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1441
1442 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_assistant_parent_class)->unmapcxx . . $ _GtkWidgetClass#unmap. (widget);
1443 }
1444
1445 static gbooleancxx . . $ gboolean#
1446 gtk_assistant_close_requestcxx . . $ gtk_assistant_close_request(b9ada049f487cdbd). (GtkWindowcxx . . $ GtkWindow# *window)
1447 {
1448 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (window);
1449
1450 /* Do not allow cancelling in the middle of a progress page */
1451 if (assistant->current_pagecxx . . $ _GtkAssistant#current_page. &&
1452 (assistant->current_pagecxx . . $ _GtkAssistant#current_page.->typecxx . . $ _GtkAssistantPage#type. != GTK_ASSISTANT_PAGE_PROGRESScxx . . $ GTK_ASSISTANT_PAGE_PROGRESS. ||
1453 assistant->current_pagecxx . . $ _GtkAssistant#current_page.->completecxx . . $ _GtkAssistantPage#complete.))
1454 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (assistant, signalscxx . . $ signals. [CANCELcxx . . $ CANCEL.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1455
1456 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1457 }
1458
1459 /**
1460 * gtk_assistant_new:
1461 *
1462 * Creates a new `GtkAssistant`.
1463 *
1464 * Returns: a newly created `GtkAssistant`
1465 *
1466 * Deprecated: 4.10: This widget will be removed in GTK 5
1467 */
1468 GtkWidgetcxx . . $ GtkWidget#*
1469 gtk_assistant_newcxx . . $ gtk_assistant_new(2369ce5e9f2c7dfd). (void)
1470 {
1471 GtkWidgetcxx . . $ GtkWidget# *assistant;
1472
1473 assistant = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:34:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1474
1475 return assistant;
1476 }
1477
1478 /**
1479 * gtk_assistant_get_current_page:
1480 * @assistant: a `GtkAssistant`
1481 *
1482 * Returns the page number of the current page.
1483 *
1484 * Returns: The index (starting from 0) of the current
1485 * page in the @assistant, or -1 if the @assistant has no pages,
1486 * or no current page
1487 *
1488 * Deprecated: 4.10: This widget will be removed in GTK 5
1489 */
1490 int
1491 gtk_assistant_get_current_pagecxx . . $ gtk_assistant_get_current_page(77347c433b0f7a8). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1492 {
1493 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), -1);
1494
1495 if (!assistant->pagescxx . . $ _GtkAssistant#pages. || !assistant->current_pagecxx . . $ _GtkAssistant#current_page.)
1496 return -1;
1497
1498 return g_list_indexcxx . . $ g_list_index(141dd89544b2cef). (assistant->pagescxx . . $ _GtkAssistant#pages., assistant->current_pagecxx . . $ _GtkAssistant#current_page.);
1499 }
1500
1501 /**
1502 * gtk_assistant_set_current_page:
1503 * @assistant: a `GtkAssistant`
1504 * @page_num: index of the page to switch to, starting from 0.
1505 * If negative, the last page will be used. If greater
1506 * than the number of pages in the @assistant, nothing
1507 * will be done.
1508 *
1509 * Switches the page to @page_num.
1510 *
1511 * Note that this will only be necessary in custom buttons,
1512 * as the @assistant flow can be set with
1513 * gtk_assistant_set_forward_page_func().
1514 *
1515 * Deprecated: 4.10: This widget will be removed in GTK 5
1516 */
1517 void
1518 gtk_assistant_set_current_pagecxx . . $ gtk_assistant_set_current_page(b23aeadcfd826cf2). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1519 int page_num)
1520 {
1521 GtkAssistantPagecxx . . $ GtkAssistantPage# *page;
1522
1523 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1524 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (assistant->pages != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1525
1526 if (page_num >= 0)
1527 page = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (assistant->pagescxx . . $ _GtkAssistant#pages., page_num);
1528 else
1529 {
1530 page = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) g_list_lastcxx . . $ g_list_last(e31b64636014b719). (assistant->pagescxx . . $ _GtkAssistant#pages.)->datacxx . . $ _GList#data.;
1531 page_num = g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.);
1532 }
1533
1534 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (page != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1535
1536 if (assistant->current_pagecxx . . $ _GtkAssistant#current_page. == page)
1537 return;
1538
1539 /* only add the page to the visited list if the assistant is mapped,
1540 * if not, just use it as an initial page setting, for the cases where
1541 * the initial page is != to 0
1542 */
1543 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1544 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.,
1545 assistant->current_pagecxx . . $ _GtkAssistant#current_page.);
1546
1547 set_current_pagecxx . . $ set_current_page(b23aeadcfd826cf2). (assistant, page_num);
1548 }
1549
1550 /**
1551 * gtk_assistant_next_page:
1552 * @assistant: a `GtkAssistant`
1553 *
1554 * Navigate to the next page.
1555 *
1556 * It is a programming error to call this function when
1557 * there is no next page.
1558 *
1559 * This function is for use when creating pages of the
1560 * %GTK_ASSISTANT_PAGE_CUSTOM type.
1561 *
1562 * Deprecated: 4.10: This widget will be removed in GTK 5
1563 */
1564 void
1565 gtk_assistant_next_pagecxx . . $ gtk_assistant_next_page(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1566 {
1567 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1568
1569 if (!compute_next_stepcxx . . $ compute_next_step(77347c433b0f7a8). (assistant))
1570 g_criticalcxx . . $ `<external>/5169755362661750954/gmessages.h:337:9`! ("Page flow is broken.\n"
1571 "You may want to end it with a page of type\n"
1572 "GTK_ASSISTANT_PAGE_CONFIRM or GTK_ASSISTANT_PAGE_SUMMARY");
1573 }
1574
1575 /**
1576 * gtk_assistant_previous_page:
1577 * @assistant: a `GtkAssistant`
1578 *
1579 * Navigate to the previous visited page.
1580 *
1581 * It is a programming error to call this function when
1582 * no previous page is available.
1583 *
1584 * This function is for use when creating pages of the
1585 * %GTK_ASSISTANT_PAGE_CUSTOM type.
1586 *
1587 * Deprecated: 4.10: This widget will be removed in GTK 5
1588 */
1589 void
1590 gtk_assistant_previous_pagecxx . . $ gtk_assistant_previous_page(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1591 {
1592 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
1593 GSListcxx . . $ GSList# *page_node;
1594
1595 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1596
1597 /* skip the progress pages when going back */
1598 do
1599 {
1600 page_node = assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.;
1601
1602 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (page_node != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1603
1604 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.->nextcxx . . $ _GSList#next.;
1605 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) page_node->datacxx . . $ _GSList#data.;
1606 g_slist_free_1cxx . . $ g_slist_free_1(e7f64dba92841206). (page_node);
1607 }
1608 while (page_info->typecxx . . $ _GtkAssistantPage#type. == GTK_ASSISTANT_PAGE_PROGRESScxx . . $ GTK_ASSISTANT_PAGE_PROGRESS. ||
1609 !gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (page_info->pagecxx . . $ _GtkAssistantPage#page.));
1610
1611 set_current_pagecxx . . $ set_current_page(b23aeadcfd826cf2). (assistant, g_list_indexcxx . . $ g_list_index(141dd89544b2cef). (assistant->pagescxx . . $ _GtkAssistant#pages., page_info));
1612 }
1613
1614 /**
1615 * gtk_assistant_get_n_pages:
1616 * @assistant: a `GtkAssistant`
1617 *
1618 * Returns the number of pages in the @assistant
1619 *
1620 * Returns: the number of pages in the @assistant
1621 *
1622 * Deprecated: 4.10: This widget will be removed in GTK 5
1623 */
1624 int
1625 gtk_assistant_get_n_pagescxx . . $ gtk_assistant_get_n_pages(77347c433b0f7a8). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
1626 {
1627 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), 0);
1628
1629 return g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.);
1630 }
1631
1632 /**
1633 * gtk_assistant_get_nth_page:
1634 * @assistant: a `GtkAssistant`
1635 * @page_num: the index of a page in the @assistant,
1636 * or -1 to get the last page
1637 *
1638 * Returns the child widget contained in page number @page_num.
1639 *
1640 * Returns: (nullable) (transfer none): the child widget, or %NULL
1641 * if @page_num is out of bounds
1642 *
1643 * Deprecated: 4.10: This widget will be removed in GTK 5
1644 */
1645 GtkWidgetcxx . . $ GtkWidget#*
1646 gtk_assistant_get_nth_pagecxx . . $ gtk_assistant_get_nth_page(cf1d914f70290c84). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1647 int page_num)
1648 {
1649 GtkAssistantPagecxx . . $ GtkAssistantPage# *page;
1650 GListcxx . . $ GList# *elem;
1651
1652 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1653 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (page_num >= -1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1654
1655 if (page_num == -1)
1656 elem = g_list_lastcxx . . $ g_list_last(e31b64636014b719). (assistant->pagescxx . . $ _GtkAssistant#pages.);
1657 else
1658 elem = g_list_nthcxx . . $ g_list_nth(a9fdb5fe6cd98ae). (assistant->pagescxx . . $ _GtkAssistant#pages., page_num);
1659
1660 if (!elem)
1661 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1662
1663 page = (GtkAssistantPagecxx . . $ GtkAssistantPage# *) elem->datacxx . . $ _GList#data.;
1664
1665 return page->pagecxx . . $ _GtkAssistantPage#page.;
1666 }
1667
1668 /**
1669 * gtk_assistant_prepend_page:
1670 * @assistant: a `GtkAssistant`
1671 * @page: a `GtkWidget`
1672 *
1673 * Prepends a page to the @assistant.
1674 *
1675 * Returns: the index (starting at 0) of the inserted page
1676 *
1677 * Deprecated: 4.10: This widget will be removed in GTK 5
1678 */
1679 int
1680 gtk_assistant_prepend_pagecxx . . $ gtk_assistant_prepend_page(78ddbfaa9268e08a). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1681 GtkWidgetcxx . . $ GtkWidget# *page)
1682 {
1683 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), 0);
1684 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), 0);
1685
1686 return gtk_assistant_insert_pagecxx . . $ gtk_assistant_insert_page(302757fa154c8f3d). (assistant, page, 0);
1687 }
1688
1689 /**
1690 * gtk_assistant_append_page:
1691 * @assistant: a `GtkAssistant`
1692 * @page: a `GtkWidget`
1693 *
1694 * Appends a page to the @assistant.
1695 *
1696 * Returns: the index (starting at 0) of the inserted page
1697 *
1698 * Deprecated: 4.10: This widget will be removed in GTK 5
1699 */
1700 int
1701 gtk_assistant_append_pagecxx . . $ gtk_assistant_append_page(78ddbfaa9268e08a). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1702 GtkWidgetcxx . . $ GtkWidget# *page)
1703 {
1704 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), 0);
1705 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), 0);
1706
1707 return gtk_assistant_insert_pagecxx . . $ gtk_assistant_insert_page(302757fa154c8f3d). (assistant, page, -1);
1708 }
1709
1710 /**
1711 * gtk_assistant_insert_page:
1712 * @assistant: a `GtkAssistant`
1713 * @page: a `GtkWidget`
1714 * @position: the index (starting at 0) at which to insert the page,
1715 * or -1 to append the page to the @assistant
1716 *
1717 * Inserts a page in the @assistant at a given position.
1718 *
1719 * Returns: the index (starting from 0) of the inserted page
1720 *
1721 * Deprecated: 4.10: This widget will be removed in GTK 5
1722 */
1723 int
1724 gtk_assistant_insert_pagecxx . . $ gtk_assistant_insert_page(302757fa154c8f3d). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1725 GtkWidgetcxx . . $ GtkWidget# *page,
1726 int position)
1727 {
1728 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
1729
1730 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), 0);
1731 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), 0);
1732 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (gtk_widget_get_parent (page) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0);
1733
1734 page_info = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:81:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1735 page_info->pagecxx . . $ _GtkAssistantPage#page. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (page);
1736
1737 return gtk_assistant_add_pagecxx . . $ gtk_assistant_add_page(2d3b07bc7806d28c). (assistant, page_info, position);
1738
1739 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (page_info);
1740 }
1741
1742 static int
1743 gtk_assistant_add_pagecxx . . $ gtk_assistant_add_page(2d3b07bc7806d28c). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1744 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info,
1745 int position)
1746 {
1747 int n_pages;
1748 GtkWidgetcxx . . $ GtkWidget# *sibling;
1749 char *name;
1750
1751 page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title. = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). (page_info->titlecxx . . $ _GtkAssistantPage#title.);
1752 page_info->current_titlecxx . . $ _GtkAssistantPage#current_title. = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). (page_info->titlecxx . . $ _GtkAssistantPage#title.);
1753
1754 gtk_label_set_xaligncxx . . $ gtk_label_set_xalign(5155ad053c7b621). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (page_info->regular_title), 0.0);
1755 gtk_label_set_xaligncxx . . $ gtk_label_set_xalign(5155ad053c7b621). (GTK_LABELcxx . . $ `gtk/gtklabel.h:36:9`! (page_info->current_title), 0.0);
1756
1757 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1758 gtk_widget_set_visiblecxx . . $ gtk_widget_set_visible(81f145f668a0074f). (page_info->current_titlecxx . . $ _GtkAssistantPage#current_title., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1759
1760 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (page_info->current_titlecxx . . $ _GtkAssistantPage#current_title., "highlight");
1761
1762 gtk_size_group_add_widgetcxx . . $ gtk_size_group_add_widget(1c29cbce5c69a315). (assistant->title_size_groupcxx . . $ _GtkAssistant#title_size_group., page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title.);
1763 gtk_size_group_add_widgetcxx . . $ gtk_size_group_add_widget(1c29cbce5c69a315). (assistant->title_size_groupcxx . . $ _GtkAssistant#title_size_group., page_info->current_titlecxx . . $ _GtkAssistantPage#current_title.);
1764
1765 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page_info->page), "notify::visible",
1766 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_page_page_notify), assistant);
1767
1768 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page_info), "notify::page-title",
1769 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_page_notify), assistant);
1770
1771 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (page_info), "notify::page-type",
1772 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_page_notify), assistant);
1773
1774 n_pages = g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (assistant->pagescxx . . $ _GtkAssistant#pages.);
1775
1776 if (position < 0 || position > n_pages)
1777 position = n_pages;
1778
1779 assistant->pagescxx . . $ _GtkAssistant#pages. = g_list_insertcxx . . $ g_list_insert(1a93bf114ae1da4d). (assistant->pagescxx . . $ _GtkAssistant#pages., g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (page_info), position);
1780
1781 if (position == 0)
1782 sibling = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1783 else
1784 {
1785 int i;
1786 sibling = gtk_widget_get_first_childcxx . . $ gtk_widget_get_first_child(ef973e1b01680070). (assistant->sidebarcxx . . $ _GtkAssistant#sidebar.);
1787 for (i = 1; i < 2 * position; i++)
1788 sibling = gtk_widget_get_next_siblingcxx . . $ gtk_widget_get_next_sibling(ef973e1b01680070). (sibling);
1789 }
1790
1791 gtk_box_insert_child_aftercxx . . $ gtk_box_insert_child_after(d0ded8d662e2b046). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->sidebar), page_info->current_titlecxx . . $ _GtkAssistantPage#current_title., sibling);
1792 gtk_box_insert_child_aftercxx . . $ gtk_box_insert_child_after(d0ded8d662e2b046). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->sidebar), page_info->regular_titlecxx . . $ _GtkAssistantPage#regular_title., sibling);
1793
1794 name = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("%p", page_info->pagecxx . . $ _GtkAssistantPage#page.);
1795 gtk_stack_add_namedcxx . . $ gtk_stack_add_named(bfc95f2c70619af8). (GTK_STACKcxx . . $ `gtk/gtkstack.h:35:9`! (assistant->content), page_info->pagecxx . . $ _GtkAssistantPage#page., name);
1796 g_freecxx . . $ g_free(5d22bdacc48458e8). (name);
1797
1798 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1799 {
1800 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
1801 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (assistant);
1802 }
1803
1804 if (assistant->modelcxx . . $ _GtkAssistant#model.)
1805 {
1806 g_list_model_items_changedcxx . . $ g_list_model_items_changed(2896dae0034144d8). (assistant->modelcxx . . $ _GtkAssistant#model., position, 0, 1);
1807 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (assistant->model), pages_propertiescxx . . $ pages_properties.[PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.]);
1808 }
1809
1810 return position;
1811 }
1812
1813 /**
1814 * gtk_assistant_remove_page:
1815 * @assistant: a `GtkAssistant`
1816 * @page_num: the index of a page in the @assistant,
1817 * or -1 to remove the last page
1818 *
1819 * Removes the @page_num’s page from @assistant.
1820 *
1821 * Deprecated: 4.10: This widget will be removed in GTK 5
1822 */
1823 void
1824 gtk_assistant_remove_pagecxx . . $ gtk_assistant_remove_page(b23aeadcfd826cf2). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1825 int page_num)
1826 {
1827 GtkWidgetcxx . . $ GtkWidget# *page;
1828
1829 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1830
1831 page = gtk_assistant_get_nth_pagecxx . . $ gtk_assistant_get_nth_page(cf1d914f70290c84). (assistant, page_num);
1832 if (page)
1833 assistant_remove_pagecxx . . $ assistant_remove_page(a8568284cc522a31). (assistant, page);
1834
1835 if (assistant->modelcxx . . $ _GtkAssistant#model.)
1836 {
1837 g_list_model_items_changedcxx . . $ g_list_model_items_changed(2896dae0034144d8). (assistant->modelcxx . . $ _GtkAssistant#model., page_num, 1, 0);
1838 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (assistant->model), pages_propertiescxx . . $ pages_properties.[PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.]);
1839 }
1840 }
1841
1842 /**
1843 * gtk_assistant_set_forward_page_func:
1844 * @assistant: a `GtkAssistant`
1845 * @page_func: (nullable): the `GtkAssistantPageFunc`, or %NULL
1846 * to use the default one
1847 * @data: user data for @page_func
1848 * @destroy: destroy notifier for @data
1849 *
1850 * Sets the page forwarding function to be @page_func.
1851 *
1852 * This function will be used to determine what will be
1853 * the next page when the user presses the forward button.
1854 * Setting @page_func to %NULL will make the assistant to
1855 * use the default forward function, which just goes to the
1856 * next visible page.
1857 *
1858 * Deprecated: 4.10: This widget will be removed in GTK 5
1859 */
1860 void
1861 gtk_assistant_set_forward_page_funccxx . . $ gtk_assistant_set_forward_page_func(c4a40b114c66d4e1). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1862 GtkAssistantPageFunccxx . . $ GtkAssistantPageFunc# page_func,
1863 gpointercxx . . $ gpointer# data,
1864 GDestroyNotifycxx . . $ GDestroyNotify# destroy)
1865 {
1866 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1867
1868 if (assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. &&
1869 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.)
1870 (*assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy.) (assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data.);
1871
1872 if (page_func)
1873 {
1874 assistant->forward_functioncxx . . $ _GtkAssistant#forward_function. = page_func;
1875 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data. = data;
1876 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. = destroy;
1877 }
1878 else
1879 {
1880 assistant->forward_functioncxx . . $ _GtkAssistant#forward_function. = default_forward_functioncxx . . $ default_forward_function(74ddd077bf55c9c9).;
1881 assistant->forward_function_datacxx . . $ _GtkAssistant#forward_function_data. = assistant;
1882 assistant->forward_data_destroycxx . . $ _GtkAssistant#forward_data_destroy. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1883 }
1884
1885 /* Page flow has possibly changed, so the
1886 * buttons state might need to change too
1887 */
1888 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1889 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
1890 }
1891
1892 static void
1893 add_to_action_areacxx . . $ add_to_action_area(a8568284cc522a31). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1894 GtkWidgetcxx . . $ GtkWidget# *child)
1895 {
1896 gtk_widget_set_valigncxx . . $ gtk_widget_set_valign(71362b4a1e4eb244). (child, GTK_ALIGN_BASELINEcxx . . $ GTK_ALIGN_BASELINE.);
1897
1898 gtk_box_appendcxx . . $ gtk_box_append(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->action_area), child);
1899 }
1900
1901 /**
1902 * gtk_assistant_add_action_widget:
1903 * @assistant: a `GtkAssistant`
1904 * @child: a `GtkWidget`
1905 *
1906 * Adds a widget to the action area of a `GtkAssistant`.
1907 *
1908 * Deprecated: 4.10: This widget will be removed in GTK 5
1909 */
1910 void
1911 gtk_assistant_add_action_widgetcxx . . $ gtk_assistant_add_action_widget(a8568284cc522a31). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1912 GtkWidgetcxx . . $ GtkWidget# *child)
1913 {
1914 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1915 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child));
1916
1917 if (GTK_IS_BUTTONcxx . . $ `gtk/gtkbutton.h:39:9`! (child))
1918 {
1919 gtk_size_group_add_widgetcxx . . $ gtk_size_group_add_widget(1c29cbce5c69a315). (assistant->button_size_groupcxx . . $ _GtkAssistant#button_size_group., child);
1920 assistant->extra_buttonscxx . . $ _GtkAssistant#extra_buttons. += 1;
1921 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1922 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (assistant);
1923 }
1924
1925 if (assistant->constructedcxx . . $ _GtkAssistant#constructed. && assistant->use_header_barcxx . . $ _GtkAssistant#use_header_bar.)
1926 add_to_header_barcxx . . $ add_to_header_bar(a8568284cc522a31). (assistant, child);
1927 else
1928 add_to_action_areacxx . . $ add_to_action_area(a8568284cc522a31). (assistant, child);
1929 }
1930
1931 /**
1932 * gtk_assistant_remove_action_widget:
1933 * @assistant: a `GtkAssistant`
1934 * @child: a `GtkWidget`
1935 *
1936 * Removes a widget from the action area of a `GtkAssistant`.
1937 *
1938 * Deprecated: 4.10: This widget will be removed in GTK 5
1939 */
1940 void
1941 gtk_assistant_remove_action_widgetcxx . . $ gtk_assistant_remove_action_widget(a8568284cc522a31). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1942 GtkWidgetcxx . . $ GtkWidget# *child)
1943 {
1944 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1945 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child));
1946
1947 if (GTK_IS_BUTTONcxx . . $ `gtk/gtkbutton.h:39:9`! (child))
1948 {
1949 gtk_size_group_remove_widgetcxx . . $ gtk_size_group_remove_widget(1c29cbce5c69a315). (assistant->button_size_groupcxx . . $ _GtkAssistant#button_size_group., child);
1950 assistant->extra_buttonscxx . . $ _GtkAssistant#extra_buttons. -= 1;
1951 if (gtk_widget_get_mappedcxx . . $ gtk_widget_get_mapped(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (assistant)))
1952 update_actions_sizecxx . . $ update_actions_size(4b2a45ee2141b8af). (assistant);
1953 }
1954
1955 gtk_box_removecxx . . $ gtk_box_remove(72f3a0256788ecaf). (GTK_BOXcxx . . $ `gtk/gtkbox.h:39:9`! (assistant->action_area), child);
1956 }
1957
1958 /**
1959 * gtk_assistant_set_page_title:
1960 * @assistant: a `GtkAssistant`
1961 * @page: a page of @assistant
1962 * @title: the new title for @page
1963 *
1964 * Sets a title for @page.
1965 *
1966 * The title is displayed in the header area of the assistant
1967 * when @page is the current page.
1968 *
1969 * Deprecated: 4.10: This widget will be removed in GTK 5
1970 */
1971 void
1972 gtk_assistant_set_page_titlecxx . . $ gtk_assistant_set_page_title(897f7173f43f43f8). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
1973 GtkWidgetcxx . . $ GtkWidget# *page,
1974 const char *title)
1975 {
1976 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
1977 GListcxx . . $ GList# *child;
1978
1979 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
1980 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page));
1981
1982 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
1983
1984 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1985
1986 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
1987
1988 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (page_info, "title", title, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1989 }
1990
1991 /**
1992 * gtk_assistant_get_page_title:
1993 * @assistant: a `GtkAssistant`
1994 * @page: a page of @assistant
1995 *
1996 * Gets the title for @page.
1997 *
1998 * Returns: the title for @page
1999 *
2000 * Deprecated: 4.10: This widget will be removed in GTK 5
2001 */
2002 const char *
2003 gtk_assistant_get_page_titlecxx . . $ gtk_assistant_get_page_title(403f86fec1b9e33f). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2004 GtkWidgetcxx . . $ GtkWidget# *page)
2005 {
2006 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
2007 GListcxx . . $ GList# *child;
2008
2009 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2010 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2011
2012 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
2013
2014 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (child != 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`!);
2015
2016 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
2017
2018 return page_info->titlecxx . . $ _GtkAssistantPage#title.;
2019 }
2020
2021 /**
2022 * gtk_assistant_set_page_type:
2023 * @assistant: a `GtkAssistant`
2024 * @page: a page of @assistant
2025 * @type: the new type for @page
2026 *
2027 * Sets the page type for @page.
2028 *
2029 * The page type determines the page behavior in the @assistant.
2030 *
2031 * Deprecated: 4.10: This widget will be removed in GTK 5
2032 */
2033 void
2034 gtk_assistant_set_page_typecxx . . $ gtk_assistant_set_page_type(1111ad48fc0a9d6e). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2035 GtkWidgetcxx . . $ GtkWidget# *page,
2036 GtkAssistantPageTypecxx . . $ GtkAssistantPageType# type)
2037 {
2038 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
2039 GListcxx . . $ GList# *child;
2040
2041 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
2042 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page));
2043
2044 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
2045
2046 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2047
2048 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
2049
2050 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (page_info, "page-type", type, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2051 }
2052
2053 /**
2054 * gtk_assistant_get_page_type:
2055 * @assistant: a `GtkAssistant`
2056 * @page: a page of @assistant
2057 *
2058 * Gets the page type of @page.
2059 *
2060 * Returns: the page type of @page
2061 *
2062 * Deprecated: 4.10: This widget will be removed in GTK 5
2063 */
2064 GtkAssistantPageTypecxx . . $ GtkAssistantPageType#
2065 gtk_assistant_get_page_typecxx . . $ gtk_assistant_get_page_type(48dd1589b4ade3c7). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2066 GtkWidgetcxx . . $ GtkWidget# *page)
2067 {
2068 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
2069 GListcxx . . $ GList# *child;
2070
2071 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), GTK_ASSISTANT_PAGE_CONTENT);
2072 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), GTK_ASSISTANT_PAGE_CONTENT);
2073
2074 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
2075
2076 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, GTK_ASSISTANT_PAGE_CONTENT);
2077
2078 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
2079
2080 return page_info->typecxx . . $ _GtkAssistantPage#type.;
2081 }
2082
2083 /**
2084 * gtk_assistant_set_page_complete:
2085 * @assistant: a `GtkAssistant`
2086 * @page: a page of @assistant
2087 * @complete: the completeness status of the page
2088 *
2089 * Sets whether @page contents are complete.
2090 *
2091 * This will make @assistant update the buttons state
2092 * to be able to continue the task.
2093 *
2094 * Deprecated: 4.10: This widget will be removed in GTK 5
2095 */
2096 void
2097 gtk_assistant_set_page_completecxx . . $ gtk_assistant_set_page_complete(c65309ac55ab3149). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2098 GtkWidgetcxx . . $ GtkWidget# *page,
2099 gbooleancxx . . $ gboolean# complete)
2100 {
2101 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
2102 GListcxx . . $ GList# *child;
2103
2104 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
2105 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page));
2106
2107 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
2108
2109 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2110
2111 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
2112
2113 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (page_info, "complete", complete, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2114 }
2115
2116 /**
2117 * gtk_assistant_get_page_complete:
2118 * @assistant: a `GtkAssistant`
2119 * @page: a page of @assistant
2120 *
2121 * Gets whether @page is complete.
2122 *
2123 * Returns: %TRUE if @page is complete.
2124 *
2125 * Deprecated: 4.10: This widget will be removed in GTK 5
2126 */
2127 gbooleancxx . . $ gboolean#
2128 gtk_assistant_get_page_completecxx . . $ gtk_assistant_get_page_complete(78ddbfaa9268e08a). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2129 GtkWidgetcxx . . $ GtkWidget# *page)
2130 {
2131 GtkAssistantPagecxx . . $ GtkAssistantPage# *page_info;
2132 GListcxx . . $ GList# *child;
2133
2134 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
2135 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (page), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
2136
2137 child = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, page);
2138
2139 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
2140
2141 page_info = (GtkAssistantPagecxx . . $ GtkAssistantPage#*) child->datacxx . . $ _GList#data.;
2142
2143 return page_info->completecxx . . $ _GtkAssistantPage#complete.;
2144 }
2145
2146 /**
2147 * gtk_assistant_update_buttons_state:
2148 * @assistant: a `GtkAssistant`
2149 *
2150 * Forces @assistant to recompute the buttons state.
2151 *
2152 * GTK automatically takes care of this in most situations,
2153 * e.g. when the user goes to a different page, or when the
2154 * visibility or completeness of a page changes.
2155 *
2156 * One situation where it can be necessary to call this
2157 * function is when changing a value on the current page
2158 * affects the future page flow of the assistant.
2159 *
2160 * Deprecated: 4.10: This widget will be removed in GTK 5
2161 */
2162 void
2163 gtk_assistant_update_buttons_statecxx . . $ gtk_assistant_update_buttons_state(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
2164 {
2165 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
2166
2167 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
2168 }
2169
2170 /**
2171 * gtk_assistant_commit:
2172 * @assistant: a `GtkAssistant`
2173 *
2174 * Erases the visited page history.
2175 *
2176 * GTK will then hide the back button on the current page,
2177 * and removes the cancel button from subsequent pages.
2178 *
2179 * Use this when the information provided up to the current
2180 * page is hereafter deemed permanent and cannot be modified
2181 * or undone. For example, showing a progress page to track
2182 * a long-running, unreversible operation after the user has
2183 * clicked apply on a confirmation page.
2184 *
2185 * Deprecated: 4.10: This widget will be removed in GTK 5
2186 */
2187 void
2188 gtk_assistant_commitcxx . . $ gtk_assistant_commit(4b2a45ee2141b8af). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
2189 {
2190 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant));
2191
2192 g_slist_freecxx . . $ g_slist_free(e7f64dba92841206). (assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages.);
2193 assistant->visited_pagescxx . . $ _GtkAssistant#visited_pages. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2194
2195 assistant->committedcxx . . $ _GtkAssistant#committed. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2196
2197 update_buttons_statecxx . . $ update_buttons_state(4b2a45ee2141b8af). (assistant);
2198 }
2199
2200 /* buildable implementation */
2201
2202 static GtkBuildableIfacecxx . . $ GtkBuildableIface# *parent_buildable_ifacecxx . . $ parent_buildable_iface.;
2203
2204 static void
2205 gtk_assistant_buildable_interface_initcxx . . $ gtk_assistant_buildable_interface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface)
2206 {
2207 parent_buildable_ifacecxx . . $ parent_buildable_iface. = g_type_interface_peek_parentcxx . . $ g_type_interface_peek_parent(9f162e79bfc6c74). (iface);
2208
2209 iface->custom_tag_startcxx . . $ _GtkBuildableIface#custom_tag_start. = gtk_assistant_buildable_custom_tag_startcxx . . $ gtk_assistant_buildable_custom_tag_start(b259140ba88dbccf).;
2210 iface->custom_finishedcxx . . $ _GtkBuildableIface#custom_finished. = gtk_assistant_buildable_custom_finishedcxx . . $ gtk_assistant_buildable_custom_finished(9c109889ce297a82).;
2211 iface->add_childcxx . . $ _GtkBuildableIface#add_child. = gtk_assistant_buildable_add_childcxx . . $ gtk_assistant_buildable_add_child(784606fbae7a2cc).;
2212 }
2213
2214 static void
2215 gtk_assistant_buildable_add_childcxx . . $ gtk_assistant_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
2216 GtkBuildercxx . . $ GtkBuilder# *builder,
2217 GObjectcxx . . $ GObject# *child,
2218 const char *type)
2219 {
2220 if (GTK_IS_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:83:9`! (child))
2221 gtk_assistant_add_pagecxx . . $ gtk_assistant_add_page(2d3b07bc7806d28c). (GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (buildable), GTK_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:82:9`! (child), -1);
2222 else if (type && g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (type, "titlebar"))
2223 {
2224 GtkAssistantcxx . . $ GtkAssistant# *assistant = GTK_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:35:9`! (buildable);
2225 assistant->headerbarcxx . . $ _GtkAssistant#headerbar. = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child);
2226 gtk_window_set_titlebarcxx . . $ gtk_window_set_titlebar(59a2a0eb4c9edf98). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (buildable), assistant->headerbarcxx . . $ _GtkAssistant#headerbar.);
2227 }
2228 else
2229 parent_buildable_ifacecxx . . $ parent_buildable_iface.->add_childcxx . . $ _GtkBuildableIface#add_child. (buildable, builder, child, type);
2230 }
2231
2232 gbooleancxx . . $ gboolean#
2233 gtk_assistant_buildable_custom_tag_startcxx . . $ gtk_assistant_buildable_custom_tag_start(b259140ba88dbccf). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
2234 GtkBuildercxx . . $ GtkBuilder# *builder,
2235 GObjectcxx . . $ GObject# *child,
2236 const char *tagname,
2237 GtkBuildableParsercxx . . $ GtkBuildableParser# *parser,
2238 gpointercxx . . $ gpointer# *data)
2239 {
2240 return parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_tag_startcxx . . $ _GtkBuildableIface#custom_tag_start. (buildable, builder, child,
2241 tagname, parser, data);
2242 }
2243
2244 static void
2245 gtk_assistant_buildable_custom_finishedcxx . . $ gtk_assistant_buildable_custom_finished(9c109889ce297a82). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
2246 GtkBuildercxx . . $ GtkBuilder# *builder,
2247 GObjectcxx . . $ GObject# *child,
2248 const char *tagname,
2249 gpointercxx . . $ gpointer# user_data)
2250 {
2251 parent_buildable_ifacecxx . . $ parent_buildable_iface.->custom_finishedcxx . . $ _GtkBuildableIface#custom_finished. (buildable, builder, child,
2252 tagname, user_data);
2253 }
2254
2255 /**
2256 * gtk_assistant_get_page:
2257 * @assistant: a `GtkAssistant`
2258 * @child: a child of @assistant
2259 *
2260 * Returns the `GtkAssistantPage` object for @child.
2261 *
2262 * Returns: (transfer none): the `GtkAssistantPage` for @child
2263 *
2264 * Deprecated: 4.10: This widget will be removed in GTK 5
2265 */
2266 GtkAssistantPagecxx . . $ GtkAssistantPage# *
2267 gtk_assistant_get_pagecxx . . $ gtk_assistant_get_page(16070e6a6e76146a). (GtkAssistantcxx . . $ GtkAssistant# *assistant,
2268 GtkWidgetcxx . . $ GtkWidget# *child)
2269 {
2270 GListcxx . . $ GList# *page_info = find_pagecxx . . $ find_page(8a16dfa0dd48de8d). (assistant, child);
2271 return (GtkAssistantPagecxx . . $ GtkAssistantPage# *) (page_info ? page_info->datacxx . . $ _GList#data. : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2272 }
2273
2274 /**
2275 * gtk_assistant_page_get_child:
2276 * @page: a `GtkAssistantPage`
2277 *
2278 * Returns the child to which @page belongs.
2279 *
2280 * Returns: (transfer none): the child to which @page belongs
2281 *
2282 * Deprecated: 4.10: This widget will be removed in GTK 5
2283 */
2284 GtkWidgetcxx . . $ GtkWidget# *
2285 gtk_assistant_page_get_childcxx . . $ gtk_assistant_page_get_child(d588141babb3db73). (GtkAssistantPagecxx . . $ GtkAssistantPage# *page)
2286 {
2287 return page->pagecxx . . $ _GtkAssistantPage#page.;
2288 }
2289
2290 static GTypecxx . . $ GType#
2291 gtk_assistant_pages_get_item_typecxx . . $ gtk_assistant_pages_get_item_type(94bfa31565da8ed5). (GListModelcxx . . $ GListModel# *model)
2292 {
2293 return GTK_TYPE_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:81:9`!;
2294 }
2295
2296 static guintcxx . . $ guint#
2297 gtk_assistant_pages_get_n_itemscxx . . $ gtk_assistant_pages_get_n_items(43b97f6a983b4be8). (GListModelcxx . . $ GListModel# *model)
2298 {
2299 GtkAssistantPagescxx . . $ GtkAssistantPages# *pages = GTK_ASSISTANT_PAGEScxx . . $ GTK_ASSISTANT_PAGES(3b1a4b9ed61708c3). (model);
2300
2301 return g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (pages->assistantcxx . . $ _GtkAssistantPages#assistant.->pagescxx . . $ _GtkAssistant#pages.);
2302 }
2303
2304 static gpointercxx . . $ gpointer#
2305 gtk_assistant_pages_get_itemcxx . . $ gtk_assistant_pages_get_item(9715a6516b430a30). (GListModelcxx . . $ GListModel# *model,
2306 guintcxx . . $ guint# position)
2307 {
2308 GtkAssistantPagescxx . . $ GtkAssistantPages# *pages = GTK_ASSISTANT_PAGEScxx . . $ GTK_ASSISTANT_PAGES(3b1a4b9ed61708c3). (model);
2309 GtkAssistantPagecxx . . $ GtkAssistantPage# *page;
2310
2311 page = g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (pages->assistantcxx . . $ _GtkAssistantPages#assistant.->pagescxx . . $ _GtkAssistant#pages., position);
2312
2313 return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (page);
2314 }
2315
2316 static void
2317 gtk_assistant_pages_list_model_initcxx . . $ gtk_assistant_pages_list_model_init(41b235b28ecdc2f9). (GListModelInterfacecxx . . $ GListModelInterface# *iface)
2318 {
2319 iface->get_item_typecxx . . $ _GListModelInterface#get_item_type. = gtk_assistant_pages_get_item_typecxx . . $ gtk_assistant_pages_get_item_type(94bfa31565da8ed5).;
2320 iface->get_n_itemscxx . . $ _GListModelInterface#get_n_items. = gtk_assistant_pages_get_n_itemscxx . . $ gtk_assistant_pages_get_n_items(43b97f6a983b4be8).;
2321 iface->get_itemcxx . . $ _GListModelInterface#get_item. = gtk_assistant_pages_get_itemcxx . . $ gtk_assistant_pages_get_item(9715a6516b430a30).;
2322 }
2323
2324 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkAssistantPages, gtk_assistant_pages, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!,
2325 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (G_TYPE_LIST_MODELcxx . . $ `<external>/10117917155607792737/glistmodel.h:36:9`!, gtk_assistant_pages_list_model_init))
2326
2327 static void
2328 gtk_assistant_pages_get_propertycxx . . $ gtk_assistant_pages_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
2329 guintcxx . . $ guint# prop_id,
2330 GValuecxx . . $ GValue# *value,
2331 GParamSpeccxx . . $ GParamSpec# *pspec)
2332 {
2333 GtkAssistantPagescxx . . $ GtkAssistantPages# *self = GTK_ASSISTANT_PAGEScxx . . $ GTK_ASSISTANT_PAGES(3b1a4b9ed61708c3). (object);
2334
2335 switch (prop_id)
2336 {
2337 case PAGES_PROP_ITEM_TYPEcxx . . $ PAGES_PROP_ITEM_TYPE.:
2338 g_value_set_gtypecxx . . $ g_value_set_gtype(235192cae6c1f0e4). (value, GTK_TYPE_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:81:9`!);
2339 break;
2340
2341 case PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.:
2342 g_value_set_uintcxx . . $ g_value_set_uint(f81c5c84daf56975). (value, gtk_assistant_pages_get_n_itemscxx . . $ gtk_assistant_pages_get_n_items(43b97f6a983b4be8). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (self)));
2343 break;
2344
2345 default:
2346 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
2347 break;
2348 }
2349 }
2350
2351 static void
2352 gtk_assistant_pages_initcxx . . $ gtk_assistant_pages_init(a7d2020102fc0eed). (GtkAssistantPagescxx . . $ GtkAssistantPages# *pages)
2353 {
2354 }
2355
2356 static void
2357 gtk_assistant_pages_class_initcxx . . $ gtk_assistant_pages_class_init(41aaf630f8eb0e0d). (GtkAssistantPagesClasscxx . . $ GtkAssistantPagesClass# *klass)
2358 {
2359 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
2360
2361 object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_assistant_pages_get_propertycxx . . $ gtk_assistant_pages_get_property(cee2c52f22407c66).;
2362
2363 pages_propertiescxx . . $ pages_properties.[PAGES_PROP_ITEM_TYPEcxx . . $ PAGES_PROP_ITEM_TYPE.] =
2364 g_param_spec_gtypecxx . . $ g_param_spec_gtype(faf99966f027a127). ("item-type", 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`!,
2365 GTK_TYPE_ASSISTANT_PAGEcxx . . $ `gtk/deprecated/gtkassistant.h:81:9`!,
2366 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!);
2367
2368 pages_propertiescxx . . $ pages_properties.[PAGES_PROP_N_ITEMScxx . . $ PAGES_PROP_N_ITEMS.] =
2369 g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("n-items", 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`!,
2370 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, 0,
2371 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!);
2372
2373 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, PAGES_N_PROPScxx . . $ PAGES_N_PROPS., pages_propertiescxx . . $ pages_properties.);
2374 }
2375
2376 static GtkAssistantPagescxx . . $ GtkAssistantPages# *
2377 gtk_assistant_pages_newcxx . . $ gtk_assistant_pages_new(ed22cd028bfa0054). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
2378 {
2379 GtkAssistantPagescxx . . $ GtkAssistantPages# *pages;
2380
2381 pages = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_ASSISTANT_PAGEScxx . . $ `gtk/deprecated/gtkassistant.c:169:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2382 pages->assistantcxx . . $ _GtkAssistantPages#assistant. = assistant;
2383
2384 return pages;
2385 }
2386
2387 /**
2388 * gtk_assistant_get_pages:
2389 * @assistant: a `GtkAssistant`
2390 *
2391 * Gets a list model of the assistant pages.
2392 *
2393 * Returns: (transfer full) (attributes element-type=GtkAssistantPage): A list model of the pages.
2394 *
2395 * Deprecated: 4.10: This widget will be removed in GTK 5
2396 */
2397 GListModelcxx . . $ GListModel# *
2398 gtk_assistant_get_pagescxx . . $ gtk_assistant_get_pages(2bff2fd2cee5d9a7). (GtkAssistantcxx . . $ GtkAssistant# *assistant)
2399 {
2400 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ASSISTANTcxx . . $ `gtk/deprecated/gtkassistant.h:36:9`! (assistant), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2401
2402 if (assistant->modelcxx . . $ _GtkAssistant#model.)
2403 return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (assistant->model);
2404
2405 assistant->modelcxx . . $ _GtkAssistant#model. = G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (gtk_assistant_pages_newcxx . . $ gtk_assistant_pages_new(ed22cd028bfa0054). (assistant));
2406
2407 g_object_add_weak_pointercxx . . $ g_object_add_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (assistant->model), (gpointercxx . . $ gpointer# *)&assistant->modelcxx . . $ _GtkAssistant#model.);
2408
2409 return assistant->modelcxx . . $ _GtkAssistant#model.;
2410 }