Debian Codegraph @

gtk/gtklistbox.c

raw symbols SCIP
1 /*
2 * Copyright (C) 2012 Alexander Larsson <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "config.h"cxx . . $ `<file>/build/config.h`/
19
20 #include "gtklistbox.h"cxx . . $ `<file>/gtk/gtklistbox.h`/
21
22 #include "gtkaccessible.h"cxx . . $ `<file>/gtk/gtkaccessible.h`/
23 #include "gtkactionhelperprivate.h"cxx . . $ `<file>/gtk/gtkactionhelperprivate.h`/
24 #include "gtkadjustmentprivate.h"cxx . . $ `<file>/gtk/gtkadjustmentprivate.h`/
25 #include "gtkbinlayout.h"cxx . . $ `<file>/gtk/gtkbinlayout.h`/
26 #include "gtkbuildable.h"cxx . . $ `<file>/gtk/gtkbuildable.h`/
27 #include "gtkgestureclick.h"cxx . . $ `<file>/gtk/gtkgestureclick.h`/
28 #include "gtkmain.h"cxx . . $ `<file>/gtk/gtkmain.h`/
29 #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/
30 #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/
31 #include "gtkscrollable.h"cxx . . $ `<file>/gtk/gtkscrollable.h`/
32 #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/
33 #include "gtkwidgetprivate.h"cxx . . $ `<file>/gtk/gtkwidgetprivate.h`/
34 #include "gtksizerequest.h"cxx . . $ `<file>/gtk/gtksizerequest.h`/
35
36 #include <float.h>
37 #include <math.h>
38 #include <string.h>
39
40 /**
41 * GtkListBox:
42 *
43 * Shows a vertical list.
44 *
45 * <picture>
46 * <source srcset="list-box-dark.png" media="(prefers-color-scheme: dark)">
47 * <img alt="An example GtkListBox" src="list-box.png">
48 * </picture>
49 *
50 * A `GtkListBox` only contains `GtkListBoxRow` children. These rows can
51 * by dynamically sorted and filtered, and headers can be added dynamically
52 * depending on the row content. It also allows keyboard and mouse navigation
53 * and selection like a typical list.
54 *
55 * Using `GtkListBox` is often an alternative to `GtkTreeView`, especially
56 * when the list contents has a more complicated layout than what is allowed
57 * by a `GtkCellRenderer`, or when the contents is interactive (i.e. has a
58 * button in it).
59 *
60 * Although a `GtkListBox` must have only `GtkListBoxRow` children, you can
61 * add any kind of widget to it via [[email protected]],
62 * [[email protected]] and [[email protected]] and a
63 * `GtkListBoxRow` widget will automatically be inserted between the list
64 * and the widget.
65 *
66 * `GtkListBoxRows` can be marked as activatable or selectable. If a row is
67 * activatable, [[email protected]::row-activated] will be emitted for it when
68 * the user tries to activate it. If it is selectable, the row will be marked
69 * as selected when the user tries to select it.
70 *
71 * # GtkListBox as GtkBuildable
72 *
73 * The `GtkListBox` implementation of the `GtkBuildable` interface supports
74 * setting a child as the placeholder by specifying “placeholder” as the “type”
75 * attribute of a `<child>` element. See [[email protected]_placeholder]
76 * for info.
77 *
78 * # Shortcuts and Gestures
79 *
80 * The following signals have default keybindings:
81 *
82 * - [[email protected]::move-cursor]
83 * - [[email protected]::select-all]
84 * - [[email protected]::toggle-cursor-row]
85 * - [[email protected]::unselect-all]
86 *
87 * # CSS nodes
88 *
89 * ```
90 * list[.separators][.rich-list][.navigation-sidebar][.boxed-list]
91 * ╰── row[.activatable]
92 * ```
93 *
94 * `GtkListBox` uses a single CSS node named list. It may carry the .separators
95 * style class, when the [[email protected]:show-separators] property is set.
96 * Each `GtkListBoxRow` uses a single CSS node named row. The row nodes get the
97 * .activatable style class added when appropriate.
98 *
99 * It may also carry the .boxed-list style class. In this case, the list will be
100 * automatically surrounded by a frame and have separators.
101 *
102 * The main list node may also carry style classes to select
103 * the style of [list presentation](section-list-widget.html#list-styles):
104 * .rich-list, .navigation-sidebar or .data-table.
105 *
106 * # Accessibility
107 *
108 * `GtkListBox` uses the [[email protected]] role and `GtkListBoxRow` uses
109 * the [[email protected]_item] role.
110 */
111
112 /**
113 * GtkListBoxRow:
114 *
115 * The kind of widget that can be added to a `GtkListBox`.
116 *
117 * [[email protected]] will automatically wrap its children in a `GtkListboxRow`
118 * when necessary.
119 */
120
121 typedef struct _GtkListBoxClasscxx . . $ _GtkListBoxClass# GtkListBoxClasscxx . . $ GtkListBoxClass#;
122
123 struct _GtkListBoxcxx . . $ _GtkListBox#
124 {
125 GtkWidgetcxx . . $ GtkWidget# parent_instancecxx . . $ _GtkListBox#parent_instance.;
126
127 GSequencecxx . . $ GSequence# *childrencxx . . $ _GtkListBox#children.;
128 GHashTablecxx . . $ GHashTable# *header_hashcxx . . $ _GtkListBox#header_hash.;
129
130 GtkWidgetcxx . . $ GtkWidget# *placeholdercxx . . $ _GtkListBox#placeholder.;
131
132 GtkListBoxSortFunccxx . . $ GtkListBoxSortFunc# sort_funccxx . . $ _GtkListBox#sort_func.;
133 gpointercxx . . $ gpointer# sort_func_targetcxx . . $ _GtkListBox#sort_func_target.;
134 GDestroyNotifycxx . . $ GDestroyNotify# sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify.;
135
136 GtkListBoxFilterFunccxx . . $ GtkListBoxFilterFunc# filter_funccxx . . $ _GtkListBox#filter_func.;
137 gpointercxx . . $ gpointer# filter_func_targetcxx . . $ _GtkListBox#filter_func_target.;
138 GDestroyNotifycxx . . $ GDestroyNotify# filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify.;
139
140 GtkListBoxUpdateHeaderFunccxx . . $ GtkListBoxUpdateHeaderFunc# update_header_funccxx . . $ _GtkListBox#update_header_func.;
141 gpointercxx . . $ gpointer# update_header_func_targetcxx . . $ _GtkListBox#update_header_func_target.;
142 GDestroyNotifycxx . . $ GDestroyNotify# update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify.;
143
144 GtkListBoxRowcxx . . $ GtkListBoxRow# *selected_rowcxx . . $ _GtkListBox#selected_row.;
145 GtkListBoxRowcxx . . $ GtkListBoxRow# *cursor_rowcxx . . $ _GtkListBox#cursor_row.;
146
147 GtkListBoxRowcxx . . $ GtkListBoxRow# *active_rowcxx . . $ _GtkListBox#active_row.;
148
149 GtkSelectionModecxx . . $ GtkSelectionMode# selection_modecxx . . $ _GtkListBox#selection_mode.;
150
151 gulongcxx . . $ gulong# adjustment_changed_idcxx . . $ _GtkListBox#adjustment_changed_id.;
152 GtkWidgetcxx . . $ GtkWidget# *scrollable_parentcxx . . $ _GtkListBox#scrollable_parent.;
153 GtkAdjustmentcxx . . $ GtkAdjustment# *adjustmentcxx . . $ _GtkListBox#adjustment.;
154 gbooleancxx . . $ gboolean# activate_single_clickcxx . . $ _GtkListBox#activate_single_click.;
155 gbooleancxx . . $ gboolean# accept_unpaired_releasecxx . . $ _GtkListBox#accept_unpaired_release.;
156 gbooleancxx . . $ gboolean# show_separatorscxx . . $ _GtkListBox#show_separators.;
157
158 /* DnD */
159 GtkListBoxRowcxx . . $ GtkListBoxRow# *drag_highlighted_rowcxx . . $ _GtkListBox#drag_highlighted_row.;
160
161 int n_visible_rowscxx . . $ _GtkListBox#n_visible_rows.;
162
163 GListModelcxx . . $ GListModel# *bound_modelcxx . . $ _GtkListBox#bound_model.;
164 GtkListBoxCreateWidgetFunccxx . . $ GtkListBoxCreateWidgetFunc# create_widget_funccxx . . $ _GtkListBox#create_widget_func.;
165 gpointercxx . . $ gpointer# create_widget_func_datacxx . . $ _GtkListBox#create_widget_func_data.;
166 GDestroyNotifycxx . . $ GDestroyNotify# create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy.;
167
168 GtkListTabBehaviorcxx . . $ GtkListTabBehavior# tab_behaviorcxx . . $ _GtkListBox#tab_behavior.;
169 };
170
171 struct _GtkListBoxClasscxx . . $ _GtkListBoxClass#
172 {
173 GtkWidgetClasscxx . . $ GtkWidgetClass# parent_classcxx . . $ _GtkListBoxClass#parent_class.;
174
175 void (*row_selectedcxx . . $ _GtkListBoxClass#row_selected.) (GtkListBoxcxx . . $ GtkListBox# *box,
176 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
177 void (*row_activatedcxx . . $ _GtkListBoxClass#row_activated.) (GtkListBoxcxx . . $ GtkListBox# *box,
178 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
179 void (*activate_cursor_rowcxx . . $ _GtkListBoxClass#activate_cursor_row.) (GtkListBoxcxx . . $ GtkListBox# *box);
180 void (*toggle_cursor_rowcxx . . $ _GtkListBoxClass#toggle_cursor_row.) (GtkListBoxcxx . . $ GtkListBox# *box);
181 void (*move_cursorcxx . . $ _GtkListBoxClass#move_cursor.) (GtkListBoxcxx . . $ GtkListBox# *box,
182 GtkMovementStepcxx . . $ GtkMovementStep# step,
183 int count,
184 gbooleancxx . . $ gboolean# extend,
185 gbooleancxx . . $ gboolean# modify);
186 void (*selected_rows_changedcxx . . $ _GtkListBoxClass#selected_rows_changed.) (GtkListBoxcxx . . $ GtkListBox# *box);
187 void (*select_allcxx . . $ _GtkListBoxClass#select_all.) (GtkListBoxcxx . . $ GtkListBox# *box);
188 void (*unselect_allcxx . . $ _GtkListBoxClass#unselect_all.) (GtkListBoxcxx . . $ GtkListBox# *box);
189 };
190
191 typedef structcxx . . $ $anonymous_type_553fa5f4da0de475_0#
192 {
193 GtkWidgetcxx . . $ GtkWidget# *childcxx . . $ $anonymous_type_553fa5f4da0de475_0#child.;
194 GSequenceItercxx . . $ GSequenceIter# *itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
195 GtkWidgetcxx . . $ GtkWidget# *headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
196 GtkActionHelpercxx . . $ GtkActionHelper# *action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.;
197 int ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.;
198 int heightcxx . . $ $anonymous_type_553fa5f4da0de475_0#height.;
199 guintcxx . . $ guint# visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible. :1;
200 guintcxx . . $ guint# selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected. :1;
201 guintcxx . . $ guint# activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable. :1;
202 guintcxx . . $ guint# selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. :1;
203 } GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate#;
204
205 enumcxx . . $ $anonymous_type_553fa5f4da0de475_1# {
206 ROW_SELECTEDcxx . . $ ROW_SELECTED.,
207 ROW_ACTIVATEDcxx . . $ ROW_ACTIVATED.,
208 ACTIVATE_CURSOR_ROWcxx . . $ ACTIVATE_CURSOR_ROW.,
209 TOGGLE_CURSOR_ROWcxx . . $ TOGGLE_CURSOR_ROW.,
210 MOVE_CURSORcxx . . $ MOVE_CURSOR.,
211 SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.,
212 SELECT_ALLcxx . . $ SELECT_ALL.,
213 UNSELECT_ALLcxx . . $ UNSELECT_ALL.,
214 LAST_SIGNALcxx . . $ LAST_SIGNAL.
215 };
216
217 enumcxx . . $ $anonymous_type_553fa5f4da0de475_2# {
218 ROW__ACTIVATEcxx . . $ ROW__ACTIVATE.,
219 ROW__LAST_SIGNALcxx . . $ ROW__LAST_SIGNAL.
220 };
221
222 enumcxx . . $ $anonymous_type_553fa5f4da0de475_3# {
223 PROP_0cxx . . $ PROP_0.,
224 PROP_SELECTION_MODEcxx . . $ PROP_SELECTION_MODE.,
225 PROP_ACTIVATE_ON_SINGLE_CLICKcxx . . $ PROP_ACTIVATE_ON_SINGLE_CLICK.,
226 PROP_ACCEPT_UNPAIRED_RELEASEcxx . . $ PROP_ACCEPT_UNPAIRED_RELEASE.,
227 PROP_SHOW_SEPARATORScxx . . $ PROP_SHOW_SEPARATORS.,
228 PROP_TAB_BEHAVIORcxx . . $ PROP_TAB_BEHAVIOR.,
229 LAST_PROPERTYcxx . . $ LAST_PROPERTY.
230 };
231
232 enumcxx . . $ $anonymous_type_553fa5f4da0de475_4# {
233 ROW_PROP_0cxx . . $ ROW_PROP_0.,
234 ROW_PROP_ACTIVATABLEcxx . . $ ROW_PROP_ACTIVATABLE.,
235 ROW_PROP_SELECTABLEcxx . . $ ROW_PROP_SELECTABLE.,
236 ROW_PROP_CHILDcxx . . $ ROW_PROP_CHILD.,
237
238 /* actionable properties */
239 ROW_PROP_ACTION_NAMEcxx . . $ ROW_PROP_ACTION_NAME.,
240 ROW_PROP_ACTION_TARGETcxx . . $ ROW_PROP_ACTION_TARGET.,
241
242 LAST_ROW_PROPERTYcxx . . $ LAST_ROW_PROPERTY. = ROW_PROP_ACTION_NAMEcxx . . $ ROW_PROP_ACTION_NAME.
243 };
244
245 #define ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`!(row) ((GtkListBoxRowPrivate*)gtk_list_box_row_get_instance_private ((GtkListBoxRow*)(row)))
246
247 static GtkBuildableIfacecxx . . $ GtkBuildableIface# *parent_buildable_ifacecxx . . $ parent_buildable_iface.;
248
249 static void gtk_list_box_buildable_interface_initcxx . . $ gtk_list_box_buildable_interface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface);
250
251 static void gtk_list_box_row_buildable_iface_initcxx . . $ gtk_list_box_row_buildable_iface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface);
252 static void gtk_list_box_row_actionable_iface_initcxx . . $ gtk_list_box_row_actionable_iface_init(16d04ea56a00f533). (GtkActionableInterfacecxx . . $ GtkActionableInterface# *iface);
253
254 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkListBox, gtk_list_box, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!,
255 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_BUILDABLEcxx . . $ `gtk/gtkbuildable.h:29:9`!,
256 gtk_list_box_buildable_interface_init))
257 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkListBoxRow, gtk_list_box_row, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!,
258 G_ADD_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:2194:9`! (GtkListBoxRow)
259 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_BUILDABLEcxx . . $ `gtk/gtkbuildable.h:29:9`!,
260 gtk_list_box_row_buildable_iface_init )
261 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_ACTIONABLEcxx . . $ `gtk/gtkactionable.h:27:9`!, gtk_list_box_row_actionable_iface_init))
262
263 static void gtk_list_box_apply_filter_allcxx . . $ gtk_list_box_apply_filter_all(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
264 static void gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (GtkListBoxcxx . . $ GtkListBox# *box,
265 GSequenceItercxx . . $ GSequenceIter# *iter);
266 static GSequenceItercxx . . $ GSequenceIter# * gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (GtkListBoxcxx . . $ GtkListBox# *box,
267 GSequenceItercxx . . $ GSequenceIter# *iter);
268 static void gtk_list_box_apply_filtercxx . . $ gtk_list_box_apply_filter(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
269 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
270 static void gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class,
271 guintcxx . . $ guint# keyval,
272 GdkModifierTypecxx . . $ GdkModifierType# modmask,
273 GtkMovementStepcxx . . $ GtkMovementStep# step,
274 int count);
275 static void gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (GtkListBoxcxx . . $ GtkListBox# *box,
276 GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
277 gbooleancxx . . $ gboolean# grab_focus);
278 static void gtk_list_box_showcxx . . $ gtk_list_box_show(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget);
279 static gbooleancxx . . $ gboolean# gtk_list_box_focuscxx . . $ gtk_list_box_focus(8bb1c65c821a69cd). (GtkWidgetcxx . . $ GtkWidget# *widget,
280 GtkDirectionTypecxx . . $ GtkDirectionType# direction);
281 static GSequenceItercxx . . $ GSequenceIter#* gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (GtkListBoxcxx . . $ GtkListBox# *box,
282 GSequenceItercxx . . $ GSequenceIter# *iter);
283 static GtkListBoxRowcxx . . $ GtkListBoxRow# *gtk_list_box_get_first_focusablecxx . . $ gtk_list_box_get_first_focusable(c6fa70182bab32a5). (GtkListBoxcxx . . $ GtkListBox# *box);
284 static GtkListBoxRowcxx . . $ GtkListBoxRow# *gtk_list_box_get_last_focusablecxx . . $ gtk_list_box_get_last_focusable(c6fa70182bab32a5). (GtkListBoxcxx . . $ GtkListBox# *box);
285 static void gtk_list_box_compute_expandcxx . . $ gtk_list_box_compute_expand(327d22ad06f230a). (GtkWidgetcxx . . $ GtkWidget# *widget,
286 gbooleancxx . . $ gboolean# *hexpand,
287 gbooleancxx . . $ gboolean# *vexpand);
288 static GtkSizeRequestModecxx . . $ GtkSizeRequestMode# gtk_list_box_get_request_modecxx . . $ gtk_list_box_get_request_mode(2c9e09fe52fe0412). (GtkWidgetcxx . . $ GtkWidget# *widget);
289 static void gtk_list_box_size_allocatecxx . . $ gtk_list_box_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget,
290 int width,
291 int height,
292 int baseline);
293 static void gtk_list_box_activate_cursor_rowcxx . . $ gtk_list_box_activate_cursor_row(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
294 static void gtk_list_box_toggle_cursor_rowcxx . . $ gtk_list_box_toggle_cursor_row(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
295 static void gtk_list_box_move_cursorcxx . . $ gtk_list_box_move_cursor(a42815fd493f1005). (GtkListBoxcxx . . $ GtkListBox# *box,
296 GtkMovementStepcxx . . $ GtkMovementStep# step,
297 int count,
298 gbooleancxx . . $ gboolean# extend,
299 gbooleancxx . . $ gboolean# modify);
300 static void gtk_list_box_parent_cbcxx . . $ gtk_list_box_parent_cb(4ebbded80fa75af1). (GObjectcxx . . $ GObject# *object,
301 GParamSpeccxx . . $ GParamSpec# *pspec,
302 gpointercxx . . $ gpointer# user_data);
303 static void gtk_list_box_select_row_internalcxx . . $ gtk_list_box_select_row_internal(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
304 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
305 static void gtk_list_box_unselect_row_internalcxx . . $ gtk_list_box_unselect_row_internal(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
306 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
307 static void gtk_list_box_select_all_betweencxx . . $ gtk_list_box_select_all_between(b5a74dd9991962ab). (GtkListBoxcxx . . $ GtkListBox# *box,
308 GtkListBoxRowcxx . . $ GtkListBoxRow# *row1,
309 GtkListBoxRowcxx . . $ GtkListBoxRow# *row2,
310 gbooleancxx . . $ gboolean# modify);
311 static gbooleancxx . . $ gboolean# gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (GtkListBoxcxx . . $ GtkListBox# *box);
312 static void gtk_list_box_selected_rows_changedcxx . . $ gtk_list_box_selected_rows_changed(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
313 static void gtk_list_box_set_accept_unpaired_releasecxx . . $ gtk_list_box_set_accept_unpaired_release(cba6bd24aa2f15d8). (GtkListBoxcxx . . $ GtkListBox# *box,
314 gbooleancxx . . $ gboolean# accept);
315
316 static void gtk_list_box_click_gesture_pressedcxx . . $ gtk_list_box_click_gesture_pressed(c902bbcd9d31d28). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
317 guintcxx . . $ guint# n_press,
318 double x,
319 double y,
320 GtkListBoxcxx . . $ GtkListBox# *box);
321 static void gtk_list_box_click_gesture_releasedcxx . . $ gtk_list_box_click_gesture_released(c902bbcd9d31d28). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
322 guintcxx . . $ guint# n_press,
323 double x,
324 double y,
325 GtkListBoxcxx . . $ GtkListBox# *box);
326 static void gtk_list_box_click_unpaired_releasecxx . . $ gtk_list_box_click_unpaired_release(60167f451d5201e4). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
327 double x,
328 double y,
329 guintcxx . . $ guint# button,
330 GdkEventSequencecxx . . $ GdkEventSequence# *sequence,
331 GtkListBoxcxx . . $ GtkListBox# *box);
332 static void gtk_list_box_click_gesture_stoppedcxx . . $ gtk_list_box_click_gesture_stopped(24e7693c0772b7dc). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
333 GtkListBoxcxx . . $ GtkListBox# *box);
334
335 static void gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
336 GtkListBoxRowcxx . . $ GtkListBoxRow# *row);
337 static void gtk_list_box_update_rowscxx . . $ gtk_list_box_update_rows(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
338
339 static void gtk_list_box_bound_model_changedcxx . . $ gtk_list_box_bound_model_changed(22f2e28664e4f9e5). (GListModelcxx . . $ GListModel# *list,
340 guintcxx . . $ guint# position,
341 guintcxx . . $ guint# removed,
342 guintcxx . . $ guint# added,
343 gpointercxx . . $ gpointer# user_data);
344
345 static void gtk_list_box_check_model_compatcxx . . $ gtk_list_box_check_model_compat(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box);
346
347 static void gtk_list_box_measurecxx . . $ gtk_list_box_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget,
348 GtkOrientationcxx . . $ GtkOrientation# orientation,
349 int for_size,
350 int *minimum,
351 int *natural,
352 int *minimum_baseline,
353 int *natural_baseline);
354
355
356
357 static GParamSpeccxx . . $ GParamSpec# *propertiescxx . . $ properties.[LAST_PROPERTYcxx . . $ LAST_PROPERTY.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, };
358 static guintcxx . . $ guint# signalscxx . . $ signals.[LAST_SIGNALcxx . . $ LAST_SIGNAL.] = { 0 };
359 static GParamSpeccxx . . $ GParamSpec# *row_propertiescxx . . $ row_properties.[LAST_ROW_PROPERTYcxx . . $ LAST_ROW_PROPERTY.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, };
360 static guintcxx . . $ guint# row_signalscxx . . $ row_signals.[ROW__LAST_SIGNALcxx . . $ ROW__LAST_SIGNAL.] = { 0 };
361
362
363 static GtkBuildableIfacecxx . . $ GtkBuildableIface# *parent_row_buildable_ifacecxx . . $ parent_row_buildable_iface.;
364
365 static void
366 gtk_list_box_row_buildable_add_childcxx . . $ gtk_list_box_row_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
367 GtkBuildercxx . . $ GtkBuilder# *builder,
368 GObjectcxx . . $ GObject# *child,
369 const char *type)
370 {
371 if (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child))
372 gtk_list_box_row_set_childcxx . . $ gtk_list_box_row_set_child(2dc50f1b58a199a8). (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (buildable), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child));
373 else
374 parent_row_buildable_ifacecxx . . $ parent_row_buildable_iface.->add_childcxx . . $ _GtkBuildableIface#add_child. (buildable, builder, child, type);
375 }
376
377 static void
378 gtk_list_box_row_buildable_iface_initcxx . . $ gtk_list_box_row_buildable_iface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface)
379 {
380 parent_row_buildable_ifacecxx . . $ parent_row_buildable_iface. = g_type_interface_peek_parentcxx . . $ g_type_interface_peek_parent(9f162e79bfc6c74). (iface);
381
382 iface->add_childcxx . . $ _GtkBuildableIface#add_child. = gtk_list_box_row_buildable_add_childcxx . . $ gtk_list_box_row_buildable_add_child(784606fbae7a2cc).;
383 }
384
385 /**
386 * gtk_list_box_new:
387 *
388 * Creates a new `GtkListBox` container.
389 *
390 * Returns: a new `GtkListBox`
391 */
392 GtkWidgetcxx . . $ GtkWidget# *
393 gtk_list_box_newcxx . . $ gtk_list_box_new(2369ce5e9f2c7dfd). (void)
394 {
395 return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
396 }
397
398 static void
399 gtk_list_box_get_propertycxx . . $ gtk_list_box_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *obj,
400 guintcxx . . $ guint# property_id,
401 GValuecxx . . $ GValue# *value,
402 GParamSpeccxx . . $ GParamSpec# *pspec)
403 {
404 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (obj);
405
406 switch (property_id)
407 {
408 case PROP_SELECTION_MODEcxx . . $ PROP_SELECTION_MODE.:
409 g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, box->selection_modecxx . . $ _GtkListBox#selection_mode.);
410 break;
411 case PROP_ACTIVATE_ON_SINGLE_CLICKcxx . . $ PROP_ACTIVATE_ON_SINGLE_CLICK.:
412 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click.);
413 break;
414 case PROP_ACCEPT_UNPAIRED_RELEASEcxx . . $ PROP_ACCEPT_UNPAIRED_RELEASE.:
415 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, box->accept_unpaired_releasecxx . . $ _GtkListBox#accept_unpaired_release.);
416 break;
417 case PROP_SHOW_SEPARATORScxx . . $ PROP_SHOW_SEPARATORS.:
418 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, box->show_separatorscxx . . $ _GtkListBox#show_separators.);
419 break;
420 case PROP_TAB_BEHAVIORcxx . . $ PROP_TAB_BEHAVIOR.:
421 g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior.);
422 break;
423 default:
424 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (obj, property_id, pspec);
425 break;
426 }
427 }
428
429 static void
430 gtk_list_box_set_propertycxx . . $ gtk_list_box_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *obj,
431 guintcxx . . $ guint# property_id,
432 const GValuecxx . . $ GValue# *value,
433 GParamSpeccxx . . $ GParamSpec# *pspec)
434 {
435 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (obj);
436
437 switch (property_id)
438 {
439 case PROP_SELECTION_MODEcxx . . $ PROP_SELECTION_MODE.:
440 gtk_list_box_set_selection_modecxx . . $ gtk_list_box_set_selection_mode(6d657a3922005bca). (box, g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value));
441 break;
442 case PROP_ACTIVATE_ON_SINGLE_CLICKcxx . . $ PROP_ACTIVATE_ON_SINGLE_CLICK.:
443 gtk_list_box_set_activate_on_single_clickcxx . . $ gtk_list_box_set_activate_on_single_click(cba6bd24aa2f15d8). (box, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
444 break;
445 case PROP_ACCEPT_UNPAIRED_RELEASEcxx . . $ PROP_ACCEPT_UNPAIRED_RELEASE.:
446 gtk_list_box_set_accept_unpaired_releasecxx . . $ gtk_list_box_set_accept_unpaired_release(cba6bd24aa2f15d8). (box, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
447 break;
448 case PROP_SHOW_SEPARATORScxx . . $ PROP_SHOW_SEPARATORS.:
449 gtk_list_box_set_show_separatorscxx . . $ gtk_list_box_set_show_separators(cba6bd24aa2f15d8). (box, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
450 break;
451 case PROP_TAB_BEHAVIORcxx . . $ PROP_TAB_BEHAVIOR.:
452 gtk_list_box_set_tab_behaviorcxx . . $ gtk_list_box_set_tab_behavior(73bd33e66c6c5384). (box, g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value));
453 break;
454 default:
455 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (obj, property_id, pspec);
456 break;
457 }
458 }
459
460 static void
461 gtk_list_box_disposecxx . . $ gtk_list_box_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
462 {
463 GtkListBoxcxx . . $ GtkListBox# *self = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (object);
464
465 if (self->bound_modelcxx . . $ _GtkListBox#bound_model.)
466 {
467 if (self->create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy.)
468 self->create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy. (self->create_widget_func_datacxx . . $ _GtkListBox#create_widget_func_data.);
469
470 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (self->bound_model, gtk_list_box_bound_model_changed, self);
471 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->bound_model);
472 }
473
474 gtk_list_box_remove_allcxx . . $ gtk_list_box_remove_all(5500cc82b552208f). (self);
475
476 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_list_box_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
477 }
478
479 static void
480 gtk_list_box_finalizecxx . . $ gtk_list_box_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *obj)
481 {
482 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (obj);
483
484 if (box->sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
485 box->sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify. (box->sort_func_targetcxx . . $ _GtkListBox#sort_func_target.);
486 if (box->filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
487 box->filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify. (box->filter_func_targetcxx . . $ _GtkListBox#filter_func_target.);
488 if (box->update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
489 box->update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify. (box->update_header_func_targetcxx . . $ _GtkListBox#update_header_func_target.);
490
491 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&box->adjustment);
492 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&box->drag_highlighted_row);
493
494 g_sequence_freecxx . . $ g_sequence_free(7f69458a57376d96). (box->childrencxx . . $ _GtkListBox#children.);
495 g_hash_table_unrefcxx . . $ g_hash_table_unref(ce4eddf544b9218). (box->header_hashcxx . . $ _GtkListBox#header_hash.);
496
497 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_list_box_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (obj);
498 }
499
500 static void
501 gtk_list_box_class_initcxx . . $ gtk_list_box_class_init(82b29e72bd236571). (GtkListBoxClasscxx . . $ GtkListBoxClass# *klass)
502 {
503 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
504 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (klass);
505
506 object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_list_box_get_propertycxx . . $ gtk_list_box_get_property(cee2c52f22407c66).;
507 object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_list_box_set_propertycxx . . $ gtk_list_box_set_property(d7c4bb29f36c0dc4).;
508 object_class->disposecxx . . $ _GObjectClass#dispose. = gtk_list_box_disposecxx . . $ gtk_list_box_dispose(6087475fa43034d3).;
509 object_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_list_box_finalizecxx . . $ gtk_list_box_finalize(6087475fa43034d3).;
510
511 widget_class->showcxx . . $ _GtkWidgetClass#show. = gtk_list_box_showcxx . . $ gtk_list_box_show(d7cf858254b37903).;
512 widget_class->focuscxx . . $ _GtkWidgetClass#focus. = gtk_list_box_focuscxx . . $ gtk_list_box_focus(8bb1c65c821a69cd).;
513 widget_class->grab_focuscxx . . $ _GtkWidgetClass#grab_focus. = gtk_widget_grab_focus_selfcxx . . $ gtk_widget_grab_focus_self(9247ef2dc26c5426).;
514 widget_class->compute_expandcxx . . $ _GtkWidgetClass#compute_expand. = gtk_list_box_compute_expandcxx . . $ gtk_list_box_compute_expand(327d22ad06f230a).;
515 widget_class->get_request_modecxx . . $ _GtkWidgetClass#get_request_mode. = gtk_list_box_get_request_modecxx . . $ gtk_list_box_get_request_mode(2c9e09fe52fe0412).;
516 widget_class->measurecxx . . $ _GtkWidgetClass#measure. = gtk_list_box_measurecxx . . $ gtk_list_box_measure(d91afbd837fc0c19).;
517 widget_class->size_allocatecxx . . $ _GtkWidgetClass#size_allocate. = gtk_list_box_size_allocatecxx . . $ gtk_list_box_size_allocate(598a503332136822).;
518 klass->activate_cursor_rowcxx . . $ _GtkListBoxClass#activate_cursor_row. = gtk_list_box_activate_cursor_rowcxx . . $ gtk_list_box_activate_cursor_row(5500cc82b552208f).;
519 klass->toggle_cursor_rowcxx . . $ _GtkListBoxClass#toggle_cursor_row. = gtk_list_box_toggle_cursor_rowcxx . . $ gtk_list_box_toggle_cursor_row(5500cc82b552208f).;
520 klass->move_cursorcxx . . $ _GtkListBoxClass#move_cursor. = gtk_list_box_move_cursorcxx . . $ gtk_list_box_move_cursor(a42815fd493f1005).;
521 klass->select_allcxx . . $ _GtkListBoxClass#select_all. = gtk_list_box_select_allcxx . . $ gtk_list_box_select_all(5500cc82b552208f).;
522 klass->unselect_allcxx . . $ _GtkListBoxClass#unselect_all. = gtk_list_box_unselect_allcxx . . $ gtk_list_box_unselect_all(5500cc82b552208f).;
523 klass->selected_rows_changedcxx . . $ _GtkListBoxClass#selected_rows_changed. = gtk_list_box_selected_rows_changedcxx . . $ gtk_list_box_selected_rows_changed(5500cc82b552208f).;
524
525 /**
526 * GtkListBox:selection-mode:
527 *
528 * The selection mode used by the list box.
529 */
530 propertiescxx . . $ properties.[PROP_SELECTION_MODEcxx . . $ PROP_SELECTION_MODE.] =
531 g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("selection-mode", 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`!,
532 GTK_TYPE_SELECTION_MODEcxx . . $ `build/gtk/gtktypebuiltins.h:160:9`!,
533 GTK_SELECTION_SINGLEcxx . . $ GTK_SELECTION_SINGLE.,
534 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
535
536 /**
537 * GtkListBox:activate-on-single-click:
538 *
539 * Determines whether children can be activated with a single
540 * click, or require a double-click.
541 */
542 propertiescxx . . $ properties.[PROP_ACTIVATE_ON_SINGLE_CLICKcxx . . $ PROP_ACTIVATE_ON_SINGLE_CLICK.] =
543 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("activate-on-single-click", 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`!,
544 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!,
545 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
546
547 /**
548 * GtkListBox:accept-unpaired-release:
549 *
550 * Whether to accept unpaired release events.
551 */
552 propertiescxx . . $ properties.[PROP_ACCEPT_UNPAIRED_RELEASEcxx . . $ PROP_ACCEPT_UNPAIRED_RELEASE.] =
553 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("accept-unpaired-release", 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`!,
554 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
555 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
556
557
558 /**
559 * GtkListBox:show-separators:
560 *
561 * Whether to show separators between rows.
562 */
563 propertiescxx . . $ properties.[PROP_SHOW_SEPARATORScxx . . $ PROP_SHOW_SEPARATORS.] =
564 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("show-separators", 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`!,
565 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
566 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
567
568 /**
569 * GtkListBox:tab-behavior:
570 *
571 * Behavior of the <kbd>Tab</kbd> key
572 *
573 * Since: 4.18
574 */
575 propertiescxx . . $ properties.[PROP_TAB_BEHAVIORcxx . . $ PROP_TAB_BEHAVIOR.] =
576 g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("tab-behavior", 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`!,
577 GTK_TYPE_LIST_TAB_BEHAVIORcxx . . $ `build/gtk/gtktypebuiltins.h:138:9`!,
578 GTK_LIST_TAB_ALLcxx . . $ GTK_LIST_TAB_ALL.,
579 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
580
581 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, LAST_PROPERTYcxx . . $ LAST_PROPERTY., propertiescxx . . $ properties.);
582
583 /**
584 * GtkListBox::row-selected:
585 * @box: the `GtkListBox`
586 * @row: (nullable): the selected row
587 *
588 * Emitted when a new row is selected, or (with a %NULL @row)
589 * when the selection is cleared.
590 *
591 * When the @box is using %GTK_SELECTION_MULTIPLE, this signal will not
592 * give you the full picture of selection changes, and you should use
593 * the [[email protected]::selected-rows-changed] signal instead.
594 */
595 signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.] =
596 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("row-selected"),
597 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
598 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
599 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, row_selected),
600 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`!,
601 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
602 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 1,
603 GTK_TYPE_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:41:9`!);
604
605 /**
606 * GtkListBox::selected-rows-changed:
607 * @box: the `GtkListBox` on which the signal is emitted
608 *
609 * Emitted when the set of selected rows changes.
610 */
611 signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.] = g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("selected-rows-changed"),
612 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
613 G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST.,
614 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, selected_rows_changed),
615 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`!,
616 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
617 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
618
619 /**
620 * GtkListBox::select-all:
621 * @box: the `GtkListBox` on which the signal is emitted
622 *
623 * Emitted to select all children of the box, if the selection
624 * mode permits it.
625 *
626 * This is a [keybinding signal](class.SignalAction.html).
627 *
628 * The default binding for this signal is <kbd>Ctrl</kbd>-<kbd>a</kbd>.
629 */
630 signalscxx . . $ signals.[SELECT_ALLcxx . . $ SELECT_ALL.] = g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("select-all"),
631 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
632 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
633 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, select_all),
634 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`!,
635 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
636 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
637
638 /**
639 * GtkListBox::unselect-all:
640 * @box: the `GtkListBox` on which the signal is emitted
641 *
642 * Emitted to unselect all children of the box, if the selection
643 * mode permits it.
644 *
645 * This is a [keybinding signal](class.SignalAction.html).
646 *
647 * The default binding for this signal is
648 * <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>a</kbd>.
649 */
650 signalscxx . . $ signals.[UNSELECT_ALLcxx . . $ UNSELECT_ALL.] = g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("unselect-all"),
651 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
652 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
653 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, unselect_all),
654 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`!,
655 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
656 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
657
658 /**
659 * GtkListBox::row-activated:
660 * @box: the `GtkListBox`
661 * @row: the activated row
662 *
663 * Emitted when a row has been activated by the user.
664 */
665 signalscxx . . $ signals.[ROW_ACTIVATEDcxx . . $ ROW_ACTIVATED.] =
666 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("row-activated"),
667 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
668 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
669 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, row_activated),
670 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`!,
671 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
672 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 1,
673 GTK_TYPE_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:41:9`!);
674
675 /**
676 * GtkListBox::activate-cursor-row:
677 * @box: the list box
678 *
679 * Emitted when the cursor row is activated.
680 */
681 signalscxx . . $ signals.[ACTIVATE_CURSOR_ROWcxx . . $ ACTIVATE_CURSOR_ROW.] =
682 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("activate-cursor-row"),
683 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
684 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
685 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, activate_cursor_row),
686 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`!,
687 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
688 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
689
690 /**
691 * GtkListBox::toggle-cursor-row:
692 * @box: the list box
693 *
694 * Emitted when the cursor row is toggled.
695 *
696 * The default bindings for this signal is <kbd>Ctrl</kbd>+<kbd>␣</kbd>.
697 */
698 signalscxx . . $ signals.[TOGGLE_CURSOR_ROWcxx . . $ TOGGLE_CURSOR_ROW.] =
699 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("toggle-cursor-row"),
700 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
701 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
702 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, toggle_cursor_row),
703 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`!,
704 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
705 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
706 /**
707 * GtkListBox::move-cursor:
708 * @box: the list box on which the signal is emitted
709 * @step: the granularity of the move, as a `GtkMovementStep`
710 * @count: the number of @step units to move
711 * @extend: whether to extend the selection
712 * @modify: whether to modify the selection
713 *
714 * Emitted when the user initiates a cursor movement.
715 *
716 * The default bindings for this signal come in two variants, the variant with
717 * the Shift modifier extends the selection, the variant without the Shift
718 * modifier does not. There are too many key combinations to list them all
719 * here.
720 *
721 * - <kbd>←</kbd>, <kbd>→</kbd>, <kbd>↑</kbd>, <kbd>↓</kbd>
722 * move by individual children
723 * - <kbd>Home</kbd>, <kbd>End</kbd> move to the ends of the box
724 * - <kbd>PgUp</kbd>, <kbd>PgDn</kbd> move vertically by pages
725 */
726 signalscxx . . $ signals.[MOVE_CURSORcxx . . $ MOVE_CURSOR.] =
727 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("move-cursor"),
728 GTK_TYPE_LIST_BOXcxx . . $ `gtk/gtklistbox.h:33:9`!,
729 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
730 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxClass, move_cursor),
731 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`!,
732 _gtk_marshal_VOID__ENUM_INT_BOOLEAN_BOOLEANcxx . . $ _gtk_marshal_VOID__ENUM_INT_BOOLEAN_BOOLEAN(cba270afb0f82555).,
733 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 4,
734 GTK_TYPE_MOVEMENT_STEPcxx . . $ `build/gtk/gtktypebuiltins.h:144:9`!, G_TYPE_INTcxx . . $ `<external>/9567554376676449156/gtype.h:105:9`!, G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!);
735 g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[MOVE_CURSORcxx . . $ MOVE_CURSOR.],
736 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (klass),
737 _gtk_marshal_VOID__ENUM_INT_BOOLEAN_BOOLEANvcxx . . $ _gtk_marshal_VOID__ENUM_INT_BOOLEAN_BOOLEANv(d309f4be92d1737c).);
738
739 gtk_widget_class_set_activate_signalcxx . . $ gtk_widget_class_set_activate_signal(53d965ee418c3db). (widget_class, signalscxx . . $ signals.[ACTIVATE_CURSOR_ROWcxx . . $ ACTIVATE_CURSOR_ROW.]);
740
741 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Homecxx . . $ `gdk/gdkkeysyms.h:67:9`!, 0,
742 GTK_MOVEMENT_BUFFER_ENDScxx . . $ GTK_MOVEMENT_BUFFER_ENDS., -1);
743 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Homecxx . . $ `gdk/gdkkeysyms.h:99:9`!, 0,
744 GTK_MOVEMENT_BUFFER_ENDScxx . . $ GTK_MOVEMENT_BUFFER_ENDS., -1);
745 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Endcxx . . $ `gdk/gdkkeysyms.h:76:9`!, 0,
746 GTK_MOVEMENT_BUFFER_ENDScxx . . $ GTK_MOVEMENT_BUFFER_ENDS., 1);
747 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Endcxx . . $ `gdk/gdkkeysyms.h:108:9`!, 0,
748 GTK_MOVEMENT_BUFFER_ENDScxx . . $ GTK_MOVEMENT_BUFFER_ENDS., 1);
749 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Upcxx . . $ `gdk/gdkkeysyms.h:69:9`!, 0,
750 GTK_MOVEMENT_DISPLAY_LINEScxx . . $ GTK_MOVEMENT_DISPLAY_LINES., -1);
751 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Upcxx . . $ `gdk/gdkkeysyms.h:101:9`!, 0,
752 GTK_MOVEMENT_DISPLAY_LINEScxx . . $ GTK_MOVEMENT_DISPLAY_LINES., -1);
753 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Downcxx . . $ `gdk/gdkkeysyms.h:71:9`!, 0,
754 GTK_MOVEMENT_DISPLAY_LINEScxx . . $ GTK_MOVEMENT_DISPLAY_LINES., 1);
755 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Downcxx . . $ `gdk/gdkkeysyms.h:103:9`!, 0,
756 GTK_MOVEMENT_DISPLAY_LINEScxx . . $ GTK_MOVEMENT_DISPLAY_LINES., 1);
757 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Page_Upcxx . . $ `gdk/gdkkeysyms.h:73:9`!, 0,
758 GTK_MOVEMENT_PAGEScxx . . $ GTK_MOVEMENT_PAGES., -1);
759 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Page_Upcxx . . $ `gdk/gdkkeysyms.h:105:9`!, 0,
760 GTK_MOVEMENT_PAGEScxx . . $ GTK_MOVEMENT_PAGES., -1);
761 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_Page_Downcxx . . $ `gdk/gdkkeysyms.h:75:9`!, 0,
762 GTK_MOVEMENT_PAGEScxx . . $ GTK_MOVEMENT_PAGES., 1);
763 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (widget_class, GDK_KEY_KP_Page_Downcxx . . $ `gdk/gdkkeysyms.h:107:9`!, 0,
764 GTK_MOVEMENT_PAGEScxx . . $ GTK_MOVEMENT_PAGES., 1);
765
766 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
767 GDK_KEY_spacecxx . . $ `gdk/gdkkeysyms.h:380:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.,
768 "toggle-cursor-row",
769 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
770 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
771 GDK_KEY_KP_Spacecxx . . $ `gdk/gdkkeysyms.h:92:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.,
772 "toggle-cursor-row",
773 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
774
775 #ifdef __APPLE__
776 gtk_widget_class_add_binding_signal (widget_class,
777 GDK_KEY_a, GDK_META_MASK,
778 "select-all",
779 NULL);
780 gtk_widget_class_add_binding_signal (widget_class,
781 GDK_KEY_a, GDK_META_MASK | GDK_SHIFT_MASK,
782 "unselect-all",
783 NULL);
784 #else
785 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
786 GDK_KEY_acxx . . $ `gdk/gdkkeysyms.h:447:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.,
787 "select-all",
788 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
789 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
790 GDK_KEY_acxx . . $ `gdk/gdkkeysyms.h:447:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK. | GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK.,
791 "unselect-all",
792 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
793 #endif
794
795 gtk_widget_class_set_css_namecxx . . $ gtk_widget_class_set_css_name(6333614c746ab65a). (widget_class, I_cxx . . $ `gdk/gdkprivate.h:35:9`!("list"));
796 gtk_widget_class_set_accessible_rolecxx . . $ gtk_widget_class_set_accessible_role(a3df1a29abf28273). (widget_class, GTK_ACCESSIBLE_ROLE_LISTcxx . . $ GTK_ACCESSIBLE_ROLE_LIST.);
797 }
798
799 static void
800 gtk_list_box_initcxx . . $ gtk_list_box_init(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
801 {
802 GtkWidgetcxx . . $ GtkWidget# *widget = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box);
803 GtkGesturecxx . . $ GtkGesture# *gesture;
804
805 gtk_widget_set_focusablecxx . . $ gtk_widget_set_focusable(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
806
807 box->selection_modecxx . . $ _GtkListBox#selection_mode. = GTK_SELECTION_SINGLEcxx . . $ GTK_SELECTION_SINGLE.;
808 box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
809
810 box->childrencxx . . $ _GtkListBox#children. = g_sequence_newcxx . . $ g_sequence_new(10e7cce8a0a0b6c3). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
811 box->header_hashcxx . . $ _GtkListBox#header_hash. = g_hash_table_new_fullcxx . . $ g_hash_table_new_full(e2dd12b570de7430). (g_direct_hashcxx . . $ g_direct_hash(b11f534102b1ad6)., g_direct_equalcxx . . $ g_direct_equal(9148c8c3ff42c9d8)., 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`!);
812
813 gesture = gtk_gesture_click_newcxx . . $ gtk_gesture_click_new(5d22ad75f7119eec). ();
814 gtk_event_controller_set_propagation_phasecxx . . $ gtk_event_controller_set_propagation_phase(c64e5c05e4165a3c). (GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture),
815 GTK_PHASE_BUBBLEcxx . . $ GTK_PHASE_BUBBLE.);
816 gtk_gesture_single_set_touch_onlycxx . . $ gtk_gesture_single_set_touch_only(724cedb1e56be9d7). (GTK_GESTURE_SINGLEcxx . . $ `gtk/gtkgesturesingle.h:32:9`! (gesture),
817 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
818 gtk_gesture_single_set_buttoncxx . . $ gtk_gesture_single_set_button(2f8820310a790616). (GTK_GESTURE_SINGLEcxx . . $ `gtk/gtkgesturesingle.h:32:9`! (gesture),
819 GDK_BUTTON_PRIMARYcxx . . $ `gdk/gdkevents.h:83:9`!);
820 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "pressed",
821 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_click_gesture_pressed), box);
822 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "released",
823 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_click_gesture_released), box);
824 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "stopped",
825 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_click_gesture_stopped), box);
826 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "unpaired-release",
827 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_click_unpaired_release), box);
828 gtk_widget_add_controllercxx . . $ gtk_widget_add_controller(6d1262f1b7c2f702). (widget, GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture));
829
830 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (box, "notify::parent", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_parent_cb), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
831 }
832
833 /**
834 * gtk_list_box_get_selected_row:
835 * @box: a `GtkListBox`
836 *
837 * Gets the selected row, or %NULL if no rows are selected.
838 *
839 * Note that the box may allow multiple selection, in which
840 * case you should use [[email protected]_foreach] to
841 * find all selected rows.
842 *
843 * Returns: (transfer none) (nullable): the selected row
844 */
845 GtkListBoxRowcxx . . $ GtkListBoxRow# *
846 gtk_list_box_get_selected_rowcxx . . $ gtk_list_box_get_selected_row(c6fa70182bab32a5). (GtkListBoxcxx . . $ GtkListBox# *box)
847 {
848 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
849
850 return box->selected_rowcxx . . $ _GtkListBox#selected_row.;
851 }
852
853 /**
854 * gtk_list_box_get_row_at_index:
855 * @box: a `GtkListBox`
856 * @index_: the index of the row
857 *
858 * Gets the n-th child in the list (not counting headers).
859 *
860 * If @index_ is negative or larger than the number of items in the
861 * list, %NULL is returned.
862 *
863 * Returns: (transfer none) (nullable): the child `GtkWidget`
864 */
865 GtkListBoxRowcxx . . $ GtkListBoxRow# *
866 gtk_list_box_get_row_at_indexcxx . . $ gtk_list_box_get_row_at_index(f694cf0d427bb76b). (GtkListBoxcxx . . $ GtkListBox# *box,
867 int index_)
868 {
869 GSequenceItercxx . . $ GSequenceIter# *iter;
870
871 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
872
873 iter = g_sequence_get_iter_at_poscxx . . $ g_sequence_get_iter_at_pos(d574b5fce5b65bd). (box->childrencxx . . $ _GtkListBox#children., index_);
874 if (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
875 return g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
876
877 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
878 }
879
880 static int
881 row_y_cmp_funccxx . . $ row_y_cmp_func(b8f62d2ccbc12f7d). (gconstpointercxx . . $ gconstpointer# a,
882 gconstpointercxx . . $ gconstpointer# b,
883 gpointercxx . . $ gpointer# user_data)
884 {
885 int y = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (b);
886 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *row_priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (a);
887
888
889 if (y < row_priv->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.)
890 return 1;
891 else if (y >= row_priv->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y. + row_priv->heightcxx . . $ $anonymous_type_553fa5f4da0de475_0#height.)
892 return -1;
893
894 return 0;
895 }
896
897 /**
898 * gtk_list_box_get_row_at_y:
899 * @box: a `GtkListBox`
900 * @y: position
901 *
902 * Gets the row at the @y position.
903 *
904 * Returns: (transfer none) (nullable): the row
905 */
906 GtkListBoxRowcxx . . $ GtkListBoxRow# *
907 gtk_list_box_get_row_at_ycxx . . $ gtk_list_box_get_row_at_y(f694cf0d427bb76b). (GtkListBoxcxx . . $ GtkListBox# *box,
908 int y)
909 {
910 GSequenceItercxx . . $ GSequenceIter# *iter;
911
912 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
913
914 iter = g_sequence_lookupcxx . . $ g_sequence_lookup(671605a171187b9c). (box->childrencxx . . $ _GtkListBox#children.,
915 GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (y),
916 row_y_cmp_funccxx . . $ row_y_cmp_func(b8f62d2ccbc12f7d).,
917 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
918
919 if (iter)
920 return GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (g_sequence_get (iter));
921
922 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
923 }
924
925 /**
926 * gtk_list_box_select_row:
927 * @box: a `GtkListBox`
928 * @row: (nullable): The row to select
929 *
930 * Make @row the currently selected row.
931 */
932 void
933 gtk_list_box_select_rowcxx . . $ gtk_list_box_select_row(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
934 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
935 {
936 gbooleancxx . . $ gboolean# dirty = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
937
938 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
939 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
940
941 if (row)
942 gtk_list_box_select_row_internalcxx . . $ gtk_list_box_select_row_internal(6e1663ed5ab031d8). (box, row);
943 else
944 dirty = gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
945
946 if (dirty)
947 {
948 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
949 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
950 }
951 }
952
953 /**
954 * gtk_list_box_unselect_row:
955 * @box: a `GtkListBox`
956 * @row: the row to unselect
957 *
958 * Unselects a single row of @box, if the selection mode allows it.
959 */
960 void
961 gtk_list_box_unselect_rowcxx . . $ gtk_list_box_unselect_row(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
962 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
963 {
964 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
965 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
966
967 gtk_list_box_unselect_row_internalcxx . . $ gtk_list_box_unselect_row_internal(6e1663ed5ab031d8). (box, row);
968 }
969
970 /**
971 * gtk_list_box_select_all:
972 * @box: a `GtkListBox`
973 *
974 * Select all children of @box, if the selection mode allows it.
975 */
976 void
977 gtk_list_box_select_allcxx . . $ gtk_list_box_select_all(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
978 {
979 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
980
981 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. != GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.)
982 return;
983
984 if (g_sequence_get_lengthcxx . . $ g_sequence_get_length(1b238430be024b3e). (box->childrencxx . . $ _GtkListBox#children.) > 0)
985 {
986 gtk_list_box_select_all_betweencxx . . $ gtk_list_box_select_all_between(b5a74dd9991962ab). (box, 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`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
987 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
988 }
989 }
990
991 /**
992 * gtk_list_box_unselect_all:
993 * @box: a `GtkListBox`
994 *
995 * Unselect all children of @box, if the selection mode allows it.
996 */
997 void
998 gtk_list_box_unselect_allcxx . . $ gtk_list_box_unselect_all(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
999 {
1000 gbooleancxx . . $ gboolean# dirty = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1001
1002 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1003
1004 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_BROWSEcxx . . $ GTK_SELECTION_BROWSE.)
1005 return;
1006
1007 dirty = gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1008
1009 if (dirty)
1010 {
1011 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1012 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
1013 }
1014 }
1015
1016 static void
1017 gtk_list_box_selected_rows_changedcxx . . $ gtk_list_box_selected_rows_changed(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
1018 {
1019 }
1020
1021 /**
1022 * GtkListBoxForeachFunc:
1023 * @box: a `GtkListBox`
1024 * @row: a `GtkListBoxRow`
1025 * @user_data: (closure): user data
1026 *
1027 * A function used by gtk_list_box_selected_foreach().
1028 *
1029 * It will be called on every selected child of the @box.
1030 */
1031
1032 /**
1033 * gtk_list_box_selected_foreach:
1034 * @box: a `GtkListBox`
1035 * @func: (scope call): the function to call for each selected child
1036 * @data: user data to pass to the function
1037 *
1038 * Calls a function for each selected child.
1039 *
1040 * Note that the selection cannot be modified from within this function.
1041 */
1042 void
1043 gtk_list_box_selected_foreachcxx . . $ gtk_list_box_selected_foreach(8cada3e6e9cba128). (GtkListBoxcxx . . $ GtkListBox# *box,
1044 GtkListBoxForeachFunccxx . . $ GtkListBoxForeachFunc# func,
1045 gpointercxx . . $ gpointer# data)
1046 {
1047 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1048 GSequenceItercxx . . $ GSequenceIter# *iter;
1049
1050 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1051
1052 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1053 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
1054 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
1055 {
1056 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
1057 if (gtk_list_box_row_is_selectedcxx . . $ gtk_list_box_row_is_selected(1bf02d92bfb6b5de). (row))
1058 (*func) (box, row, data);
1059 }
1060 }
1061
1062 /**
1063 * gtk_list_box_get_selected_rows:
1064 * @box: a `GtkListBox`
1065 *
1066 * Creates a list of all selected children.
1067 *
1068 * Returns: (element-type GtkListBoxRow) (transfer container):
1069 * A `GList` containing the `GtkWidget` for each selected child.
1070 * Free with g_list_free() when done.
1071 */
1072 GListcxx . . $ GList# *
1073 gtk_list_box_get_selected_rowscxx . . $ gtk_list_box_get_selected_rows(8debb2eb405c075d). (GtkListBoxcxx . . $ GtkListBox# *box)
1074 {
1075 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1076 GSequenceItercxx . . $ GSequenceIter# *iter;
1077 GListcxx . . $ GList# *selected = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1078
1079 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1080
1081 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1082 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
1083 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
1084 {
1085 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
1086 if (gtk_list_box_row_is_selectedcxx . . $ gtk_list_box_row_is_selected(1bf02d92bfb6b5de). (row))
1087 selected = g_list_prependcxx . . $ g_list_prepend(35007086a6b2ba1c). (selected, row);
1088 }
1089
1090 return g_list_reversecxx . . $ g_list_reverse(e31b64636014b719). (selected);
1091 }
1092
1093 /**
1094 * gtk_list_box_set_placeholder:
1095 * @box: a `GtkListBox`
1096 * @placeholder: (nullable): a `GtkWidget`
1097 *
1098 * Sets the placeholder widget that is shown in the list when
1099 * it doesn't display any visible children.
1100 */
1101 void
1102 gtk_list_box_set_placeholdercxx . . $ gtk_list_box_set_placeholder(80bd4d01e1352ed1). (GtkListBoxcxx . . $ GtkListBox# *box,
1103 GtkWidgetcxx . . $ GtkWidget# *placeholder)
1104 {
1105 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1106
1107 if (box->placeholdercxx . . $ _GtkListBox#placeholder.)
1108 {
1109 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (box->placeholdercxx . . $ _GtkListBox#placeholder.);
1110 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1111 }
1112
1113 box->placeholdercxx . . $ _GtkListBox#placeholder. = placeholder;
1114
1115 if (placeholder)
1116 {
1117 gtk_widget_set_parentcxx . . $ gtk_widget_set_parent(4f261c0971c30e7). (placeholder, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1118 gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (placeholder,
1119 box->n_visible_rowscxx . . $ _GtkListBox#n_visible_rows. == 0);
1120 }
1121 }
1122
1123
1124 /**
1125 * gtk_list_box_set_adjustment:
1126 * @box: a `GtkListBox`
1127 * @adjustment: (nullable): the adjustment
1128 *
1129 * Sets the adjustment (if any) that the widget uses to
1130 * for vertical scrolling.
1131 *
1132 * For instance, this is used to get the page size for
1133 * PageUp/Down key handling.
1134 *
1135 * In the normal case when the @box is packed inside
1136 * a `GtkScrolledWindow` the adjustment from that will
1137 * be picked up automatically, so there is no need
1138 * to manually do that.
1139 */
1140 void
1141 gtk_list_box_set_adjustmentcxx . . $ gtk_list_box_set_adjustment(25c887fd3faef5e2). (GtkListBoxcxx . . $ GtkListBox# *box,
1142 GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment)
1143 {
1144 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1145 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (adjustment == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment));
1146
1147 if (adjustment)
1148 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (adjustment);
1149 if (box->adjustmentcxx . . $ _GtkListBox#adjustment.)
1150 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (box->adjustmentcxx . . $ _GtkListBox#adjustment.);
1151 box->adjustmentcxx . . $ _GtkListBox#adjustment. = adjustment;
1152 }
1153
1154 /**
1155 * gtk_list_box_get_adjustment:
1156 * @box: a `GtkListBox`
1157 *
1158 * Gets the adjustment (if any) that the widget uses to
1159 * for vertical scrolling.
1160 *
1161 * Returns: (transfer none) (nullable): the adjustment
1162 */
1163 GtkAdjustmentcxx . . $ GtkAdjustment# *
1164 gtk_list_box_get_adjustmentcxx . . $ gtk_list_box_get_adjustment(f0a58d8d566427ec). (GtkListBoxcxx . . $ GtkListBox# *box)
1165 {
1166 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1167
1168 return box->adjustmentcxx . . $ _GtkListBox#adjustment.;
1169 }
1170
1171 static void
1172 adjustment_changedcxx . . $ adjustment_changed(4ebbded80fa75af1). (GObjectcxx . . $ GObject# *object,
1173 GParamSpeccxx . . $ GParamSpec# *pspec,
1174 gpointercxx . . $ gpointer# data)
1175 {
1176 GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment;
1177
1178 adjustment = gtk_scrollable_get_vadjustmentcxx . . $ gtk_scrollable_get_vadjustment(4f36e4a79d8a0130). (GTK_SCROLLABLEcxx . . $ `gtk/gtkscrollable.h:32:9`! (object));
1179 gtk_list_box_set_adjustmentcxx . . $ gtk_list_box_set_adjustment(25c887fd3faef5e2). (GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (data), adjustment);
1180 }
1181
1182 static void
1183 gtk_list_box_parent_cbcxx . . $ gtk_list_box_parent_cb(4ebbded80fa75af1). (GObjectcxx . . $ GObject# *object,
1184 GParamSpeccxx . . $ GParamSpec# *pspec,
1185 gpointercxx . . $ gpointer# user_data)
1186 {
1187 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (object);
1188 GtkWidgetcxx . . $ GtkWidget# *parent;
1189
1190 parent = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (object));
1191
1192 if (box->adjustment_changed_idcxx . . $ _GtkListBox#adjustment_changed_id. != 0 &&
1193 box->scrollable_parentcxx . . $ _GtkListBox#scrollable_parent. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1194 {
1195 g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (box->scrollable_parentcxx . . $ _GtkListBox#scrollable_parent.,
1196 box->adjustment_changed_idcxx . . $ _GtkListBox#adjustment_changed_id.);
1197 }
1198
1199 if (parent && GTK_IS_SCROLLABLEcxx . . $ `gtk/gtkscrollable.h:33:9`! (parent))
1200 {
1201 adjustment_changedcxx . . $ adjustment_changed(4ebbded80fa75af1). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (parent), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, object);
1202 box->scrollable_parentcxx . . $ _GtkListBox#scrollable_parent. = parent;
1203 box->adjustment_changed_idcxx . . $ _GtkListBox#adjustment_changed_id. = g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (parent, "notify::vadjustment",
1204 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (adjustment_changed), object);
1205 }
1206 else
1207 {
1208 gtk_list_box_set_adjustmentcxx . . $ gtk_list_box_set_adjustment(25c887fd3faef5e2). (GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (object), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1209 box->adjustment_changed_idcxx . . $ _GtkListBox#adjustment_changed_id. = 0;
1210 box->scrollable_parentcxx . . $ _GtkListBox#scrollable_parent. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1211 }
1212 }
1213
1214 /**
1215 * gtk_list_box_set_selection_mode:
1216 * @box: a `GtkListBox`
1217 * @mode: The `GtkSelectionMode`
1218 *
1219 * Sets how selection works in the listbox.
1220 */
1221 void
1222 gtk_list_box_set_selection_modecxx . . $ gtk_list_box_set_selection_mode(6d657a3922005bca). (GtkListBoxcxx . . $ GtkListBox# *box,
1223 GtkSelectionModecxx . . $ GtkSelectionMode# mode)
1224 {
1225 gbooleancxx . . $ gboolean# dirty = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1226
1227 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1228
1229 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == mode)
1230 return;
1231
1232 if (mode == GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE. ||
1233 box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.)
1234 dirty = gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1235
1236 box->selection_modecxx . . $ _GtkListBox#selection_mode. = mode;
1237
1238 gtk_list_box_update_rowscxx . . $ gtk_list_box_update_rows(5500cc82b552208f). (box);
1239
1240 gtk_accessible_update_propertycxx . . $ gtk_accessible_update_property(7f02be67e42032aa). (GTK_ACCESSIBLEcxx . . $ GTK_ACCESSIBLE(4ecffd44f086533a). (box),
1241 GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLEcxx . . $ GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE., mode == GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.,
1242 -1);
1243
1244 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (box), propertiescxx . . $ properties.[PROP_SELECTION_MODEcxx . . $ PROP_SELECTION_MODE.]);
1245
1246 if (dirty)
1247 {
1248 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1249 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
1250 }
1251 }
1252
1253 /**
1254 * gtk_list_box_get_selection_mode:
1255 * @box: a `GtkListBox`
1256 *
1257 * Gets the selection mode of the listbox.
1258 *
1259 * Returns: a `GtkSelectionMode`
1260 */
1261 GtkSelectionModecxx . . $ GtkSelectionMode#
1262 gtk_list_box_get_selection_modecxx . . $ gtk_list_box_get_selection_mode(906ea959bba5e963). (GtkListBoxcxx . . $ GtkListBox# *box)
1263 {
1264 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), GTK_SELECTION_NONE);
1265
1266 return box->selection_modecxx . . $ _GtkListBox#selection_mode.;
1267 }
1268
1269 /**
1270 * gtk_list_box_set_filter_func:
1271 * @box: a `GtkListBox`
1272 * @filter_func: (nullable) (scope notified) (closure user_data) (destroy destroy): callback
1273 * that lets you filter which rows to show
1274 * @user_data: user data passed to @filter_func
1275 * @destroy: destroy notifier for @user_data
1276 *
1277 * By setting a filter function on the @box one can decide dynamically which
1278 * of the rows to show.
1279 *
1280 * For instance, to implement a search function on a list that
1281 * filters the original list to only show the matching rows.
1282 *
1283 * The @filter_func will be called for each row after the call, and
1284 * it will continue to be called each time a row changes (via
1285 * [[email protected]]) or when [[email protected]_filter]
1286 * is called.
1287 *
1288 * Note that using a filter function is incompatible with using a model
1289 * (see [[email protected]_model]).
1290 */
1291 void
1292 gtk_list_box_set_filter_funccxx . . $ gtk_list_box_set_filter_func(a28a21925c319dd7). (GtkListBoxcxx . . $ GtkListBox# *box,
1293 GtkListBoxFilterFunccxx . . $ GtkListBoxFilterFunc# filter_func,
1294 gpointercxx . . $ gpointer# user_data,
1295 GDestroyNotifycxx . . $ GDestroyNotify# destroy)
1296 {
1297 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1298
1299 if (box->filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1300 box->filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify. (box->filter_func_targetcxx . . $ _GtkListBox#filter_func_target.);
1301
1302 box->filter_funccxx . . $ _GtkListBox#filter_func. = filter_func;
1303 box->filter_func_targetcxx . . $ _GtkListBox#filter_func_target. = user_data;
1304 box->filter_func_target_destroy_notifycxx . . $ _GtkListBox#filter_func_target_destroy_notify. = destroy;
1305
1306 gtk_list_box_check_model_compatcxx . . $ gtk_list_box_check_model_compat(5500cc82b552208f). (box);
1307
1308 gtk_list_box_invalidate_filtercxx . . $ gtk_list_box_invalidate_filter(5500cc82b552208f). (box);
1309 }
1310
1311 /**
1312 * gtk_list_box_set_header_func:
1313 * @box: a `GtkListBox`
1314 * @update_header: (nullable) (scope notified) (closure user_data) (destroy destroy): callback
1315 * that lets you add row headers
1316 * @user_data: user data passed to @update_header
1317 * @destroy: destroy notifier for @user_data
1318 *
1319 * Sets a header function.
1320 *
1321 * By setting a header function on the @box one can dynamically add headers
1322 * in front of rows, depending on the contents of the row and its position
1323 * in the list.
1324 *
1325 * For instance, one could use it to add headers in front of the first item
1326 * of a new kind, in a list sorted by the kind.
1327 *
1328 * The @update_header can look at the current header widget using
1329 * [[email protected]_header] and either update the state of the widget
1330 * as needed, or set a new one using [[email protected]_header]. If no
1331 * header is needed, set the header to %NULL.
1332 *
1333 * Note that you may get many calls @update_header to this for a particular
1334 * row when e.g. changing things that don’t affect the header. In this case
1335 * it is important for performance to not blindly replace an existing header
1336 * with an identical one.
1337 *
1338 * The @update_header function will be called for each row after the call,
1339 * and it will continue to be called each time a row changes (via
1340 * [[email protected]]) and when the row before changes (either
1341 * by [[email protected]] on the previous row, or when the previous
1342 * row becomes a different row). It is also called for all rows when
1343 * [[email protected]_headers] is called.
1344 */
1345 void
1346 gtk_list_box_set_header_funccxx . . $ gtk_list_box_set_header_func(a430e1a3d3ac5010). (GtkListBoxcxx . . $ GtkListBox# *box,
1347 GtkListBoxUpdateHeaderFunccxx . . $ GtkListBoxUpdateHeaderFunc# update_header,
1348 gpointercxx . . $ gpointer# user_data,
1349 GDestroyNotifycxx . . $ GDestroyNotify# destroy)
1350 {
1351 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1352
1353 if (box->update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1354 box->update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify. (box->update_header_func_targetcxx . . $ _GtkListBox#update_header_func_target.);
1355
1356 box->update_header_funccxx . . $ _GtkListBox#update_header_func. = update_header;
1357 box->update_header_func_targetcxx . . $ _GtkListBox#update_header_func_target. = user_data;
1358 box->update_header_func_target_destroy_notifycxx . . $ _GtkListBox#update_header_func_target_destroy_notify. = destroy;
1359 gtk_list_box_invalidate_headerscxx . . $ gtk_list_box_invalidate_headers(5500cc82b552208f). (box);
1360 }
1361
1362 /**
1363 * gtk_list_box_invalidate_filter:
1364 * @box: a `GtkListBox`
1365 *
1366 * Update the filtering for all rows.
1367 *
1368 * Call this when result
1369 * of the filter function on the @box is changed due
1370 * to an external factor. For instance, this would be used
1371 * if the filter function just looked for a specific search
1372 * string and the entry with the search string has changed.
1373 */
1374 void
1375 gtk_list_box_invalidate_filtercxx . . $ gtk_list_box_invalidate_filter(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
1376 {
1377 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1378
1379 gtk_list_box_apply_filter_allcxx . . $ gtk_list_box_apply_filter_all(5500cc82b552208f). (box);
1380 gtk_list_box_invalidate_headerscxx . . $ gtk_list_box_invalidate_headers(5500cc82b552208f). (box);
1381 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1382 }
1383
1384 static int
1385 do_sortcxx . . $ do_sort(87cd0cfce39720b). (GtkListBoxRowcxx . . $ GtkListBoxRow# *a,
1386 GtkListBoxRowcxx . . $ GtkListBoxRow# *b,
1387 GtkListBoxcxx . . $ GtkListBox# *box)
1388 {
1389 return box->sort_funccxx . . $ _GtkListBox#sort_func. (a, b, box->sort_func_targetcxx . . $ _GtkListBox#sort_func_target.);
1390 }
1391
1392 static void
1393 gtk_list_box_reorder_foreachcxx . . $ gtk_list_box_reorder_foreach(6c58c5e2437d25a2). (gpointercxx . . $ gpointer# data,
1394 gpointercxx . . $ gpointer# user_data)
1395 {
1396 GtkWidgetcxx . . $ GtkWidget# **previous = user_data;
1397 GtkWidgetcxx . . $ GtkWidget# *row = data;
1398
1399 if (*previous)
1400 gtk_widget_insert_aftercxx . . $ gtk_widget_insert_after(72c16b162d9e96e5). (row, _gtk_widget_get_parentcxx . . $ _gtk_widget_get_parent(ef973e1b01680070). (row), *previous);
1401
1402 *previous = row;
1403 }
1404
1405 /**
1406 * gtk_list_box_invalidate_sort:
1407 * @box: a `GtkListBox`
1408 *
1409 * Update the sorting for all rows.
1410 *
1411 * Call this when result
1412 * of the sort function on the @box is changed due
1413 * to an external factor.
1414 */
1415 void
1416 gtk_list_box_invalidate_sortcxx . . $ gtk_list_box_invalidate_sort(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
1417 {
1418 GtkWidgetcxx . . $ GtkWidget# *previous = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1419
1420 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1421
1422 if (box->sort_funccxx . . $ _GtkListBox#sort_func. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1423 return;
1424
1425 g_sequence_sortcxx . . $ g_sequence_sort(99eb784d49e3f8e1). (box->childrencxx . . $ _GtkListBox#children., (GCompareDataFunccxx . . $ GCompareDataFunc#)do_sortcxx . . $ do_sort(87cd0cfce39720b)., box);
1426 g_sequence_foreachcxx . . $ g_sequence_foreach(b4b0a430067b440d). (box->childrencxx . . $ _GtkListBox#children., gtk_list_box_reorder_foreachcxx . . $ gtk_list_box_reorder_foreach(6c58c5e2437d25a2)., &previous);
1427
1428 gtk_list_box_invalidate_headerscxx . . $ gtk_list_box_invalidate_headers(5500cc82b552208f). (box);
1429 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1430 }
1431
1432 static void
1433 gtk_list_box_do_reseparatecxx . . $ gtk_list_box_do_reseparate(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
1434 {
1435 GSequenceItercxx . . $ GSequenceIter# *iter;
1436
1437 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1438 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
1439 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
1440 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, iter);
1441
1442 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1443 }
1444
1445
1446 /**
1447 * gtk_list_box_invalidate_headers:
1448 * @box: a `GtkListBox`
1449 *
1450 * Update the separators for all rows.
1451 *
1452 * Call this when result
1453 * of the header function on the @box is changed due
1454 * to an external factor.
1455 */
1456 void
1457 gtk_list_box_invalidate_headerscxx . . $ gtk_list_box_invalidate_headers(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
1458 {
1459 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1460
1461 if (!gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)))
1462 return;
1463
1464 gtk_list_box_do_reseparatecxx . . $ gtk_list_box_do_reseparate(5500cc82b552208f). (box);
1465 }
1466
1467 /**
1468 * gtk_list_box_set_sort_func:
1469 * @box: a `GtkListBox`
1470 * @sort_func: (nullable) (scope notified) (closure user_data) (destroy destroy): the sort function
1471 * @user_data: user data passed to @sort_func
1472 * @destroy: destroy notifier for @user_data
1473 *
1474 * Sets a sort function.
1475 *
1476 * By setting a sort function on the @box one can dynamically reorder
1477 * the rows of the list, based on the contents of the rows.
1478 *
1479 * The @sort_func will be called for each row after the call, and will
1480 * continue to be called each time a row changes (via
1481 * [[email protected]]) and when [[email protected]_sort]
1482 * is called.
1483 *
1484 * Note that using a sort function is incompatible with using a model
1485 * (see [[email protected]_model]).
1486 */
1487 void
1488 gtk_list_box_set_sort_funccxx . . $ gtk_list_box_set_sort_func(a6497c26db79f6d5). (GtkListBoxcxx . . $ GtkListBox# *box,
1489 GtkListBoxSortFunccxx . . $ GtkListBoxSortFunc# sort_func,
1490 gpointercxx . . $ gpointer# user_data,
1491 GDestroyNotifycxx . . $ GDestroyNotify# destroy)
1492 {
1493 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1494
1495 if (box->sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1496 box->sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify. (box->sort_func_targetcxx . . $ _GtkListBox#sort_func_target.);
1497
1498 box->sort_funccxx . . $ _GtkListBox#sort_func. = sort_func;
1499 box->sort_func_targetcxx . . $ _GtkListBox#sort_func_target. = user_data;
1500 box->sort_func_target_destroy_notifycxx . . $ _GtkListBox#sort_func_target_destroy_notify. = destroy;
1501
1502 gtk_list_box_check_model_compatcxx . . $ gtk_list_box_check_model_compat(5500cc82b552208f). (box);
1503
1504 gtk_list_box_invalidate_sortcxx . . $ gtk_list_box_invalidate_sort(5500cc82b552208f). (box);
1505 }
1506
1507 static void
1508 gtk_list_box_got_row_changedcxx . . $ gtk_list_box_got_row_changed(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1509 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1510 {
1511 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *row_priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
1512 GSequenceItercxx . . $ GSequenceIter# *prev_next, *next;
1513
1514 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1515 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
1516
1517 prev_next = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, row_priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
1518 if (box->sort_funccxx . . $ _GtkListBox#sort_func. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1519 {
1520 g_sequence_sort_changedcxx . . $ g_sequence_sort_changed(6c00629238d99e70). (row_priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.,
1521 (GCompareDataFunccxx . . $ GCompareDataFunc#)do_sortcxx . . $ do_sort(87cd0cfce39720b).,
1522 box);
1523 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
1524 }
1525 gtk_list_box_apply_filtercxx . . $ gtk_list_box_apply_filter(6e1663ed5ab031d8). (box, row);
1526 if (gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)))
1527 {
1528 next = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, row_priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
1529 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, row_priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
1530 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, next);
1531 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, prev_next);
1532 }
1533 }
1534
1535 /**
1536 * gtk_list_box_set_activate_on_single_click:
1537 * @box: a `GtkListBox`
1538 * @single: a boolean
1539 *
1540 * If @single is %TRUE, rows will be activated when you click on them,
1541 * otherwise you need to double-click.
1542 */
1543 void
1544 gtk_list_box_set_activate_on_single_clickcxx . . $ gtk_list_box_set_activate_on_single_click(cba6bd24aa2f15d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1545 gbooleancxx . . $ gboolean# single)
1546 {
1547 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
1548
1549 single = single != FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1550
1551 if (box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click. == single)
1552 return;
1553
1554 box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click. = single;
1555
1556 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (box), propertiescxx . . $ properties.[PROP_ACTIVATE_ON_SINGLE_CLICKcxx . . $ PROP_ACTIVATE_ON_SINGLE_CLICK.]);
1557 }
1558
1559 /**
1560 * gtk_list_box_get_activate_on_single_click:
1561 * @box: a `GtkListBox`
1562 *
1563 * Returns whether rows activate on single clicks.
1564 *
1565 * Returns: %TRUE if rows are activated on single click, %FALSE otherwise
1566 */
1567 gbooleancxx . . $ gboolean#
1568 gtk_list_box_get_activate_on_single_clickcxx . . $ gtk_list_box_get_activate_on_single_click(5d27981c6da10d47). (GtkListBoxcxx . . $ GtkListBox# *box)
1569 {
1570 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1571
1572 return box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click.;
1573 }
1574
1575 void
1576 gtk_list_box_set_accept_unpaired_releasecxx . . $ gtk_list_box_set_accept_unpaired_release(cba6bd24aa2f15d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1577 gbooleancxx . . $ gboolean# accept)
1578 {
1579 if (box->accept_unpaired_releasecxx . . $ _GtkListBox#accept_unpaired_release. == accept)
1580 return;
1581
1582 box->accept_unpaired_releasecxx . . $ _GtkListBox#accept_unpaired_release. = accept;
1583
1584 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (box), propertiescxx . . $ properties.[PROP_ACCEPT_UNPAIRED_RELEASEcxx . . $ PROP_ACCEPT_UNPAIRED_RELEASE.]);
1585 }
1586
1587 static void
1588 gtk_list_box_add_move_bindingcxx . . $ gtk_list_box_add_move_binding(74d61dc7d1332949). (GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class,
1589 guintcxx . . $ guint# keyval,
1590 GdkModifierTypecxx . . $ GdkModifierType# modmask,
1591 GtkMovementStepcxx . . $ GtkMovementStep# step,
1592 int count)
1593 {
1594 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
1595 keyval, modmask,
1596 "move-cursor",
1597 "(iibb)", step, count, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1598 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
1599 keyval, modmask | GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK.,
1600 "move-cursor",
1601 "(iibb)", step, count, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1602 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
1603 keyval, modmask | GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.,
1604 "move-cursor",
1605 "(iibb)", step, count, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1606 gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class,
1607 keyval, modmask | GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK. | GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.,
1608 "move-cursor",
1609 "(iibb)", step, count, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1610 }
1611
1612 static void
1613 ensure_row_visiblecxx . . $ ensure_row_visible(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1614 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1615 {
1616 GtkWidgetcxx . . $ GtkWidget# *header;
1617 int y, height;
1618 graphene_rect_tcxx . . $ graphene_rect_t# rect;
1619
1620 if (!box->adjustmentcxx . . $ _GtkListBox#adjustment.)
1621 return;
1622
1623 if (!gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), &rect))
1624 return;
1625
1626 y = rect.origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y.;
1627 height = rect.sizecxx . . $ _graphene_rect_t#size..heightcxx . . $ _graphene_size_t#height.;
1628
1629 /* If the row has a header, we want to ensure that it is visible as well. */
1630 header = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
1631 if (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (header) && gtk_widget_is_drawablecxx . . $ gtk_widget_is_drawable(9247ef2dc26c5426). (header))
1632 {
1633 if (gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (header, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), &rect))
1634 {
1635 y = rect.origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y.;
1636 height += rect.sizecxx . . $ _graphene_rect_t#size..heightcxx . . $ _graphene_size_t#height.;
1637 }
1638 }
1639
1640 gtk_adjustment_clamp_pagecxx . . $ gtk_adjustment_clamp_page(87122ead61b5c395). (box->adjustmentcxx . . $ _GtkListBox#adjustment., y, y + height);
1641 }
1642
1643 static void
1644 gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (GtkListBoxcxx . . $ GtkListBox# *box,
1645 GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
1646 gbooleancxx . . $ gboolean# grab_focus)
1647 {
1648 box->cursor_rowcxx . . $ _GtkListBox#cursor_row. = row;
1649 ensure_row_visiblecxx . . $ ensure_row_visible(6e1663ed5ab031d8). (box, row);
1650 if (grab_focus)
1651 {
1652 GtkWidgetcxx . . $ GtkWidget# *focus;
1653
1654 focus = gtk_root_get_focuscxx . . $ gtk_root_get_focus(6cfa63b8db06e3bd). (gtk_widget_get_rootcxx . . $ gtk_widget_get_root(978ce13b0a79da4). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)));
1655 if (!focus || !gtk_widget_is_ancestorcxx . . $ gtk_widget_is_ancestor(d05965862da967f). (focus, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
1656 gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
1657 }
1658 gtk_widget_queue_drawcxx . . $ gtk_widget_queue_draw(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
1659 }
1660
1661 static GtkListBoxcxx . . $ GtkListBox# *
1662 gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1663 {
1664 GtkWidgetcxx . . $ GtkWidget# *parent;
1665
1666 parent = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
1667 if (parent && GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (parent))
1668 return GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (parent);
1669
1670 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1671 }
1672
1673 static gbooleancxx . . $ gboolean#
1674 row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1675 {
1676 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.;
1677 }
1678
1679 static gbooleancxx . . $ gboolean#
1680 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
1681 gbooleancxx . . $ gboolean# selected)
1682 {
1683 if (!ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable.)
1684 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1685
1686 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected. != selected)
1687 {
1688 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected. = selected;
1689 if (selected)
1690 gtk_widget_set_state_flagscxx . . $ gtk_widget_set_state_flags(2b95d95a3c3aa236). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row),
1691 GTK_STATE_FLAG_SELECTEDcxx . . $ GTK_STATE_FLAG_SELECTED., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1692 else
1693 gtk_widget_unset_state_flagscxx . . $ gtk_widget_unset_state_flags(e7d7ee4ea524d63). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row),
1694 GTK_STATE_FLAG_SELECTEDcxx . . $ GTK_STATE_FLAG_SELECTED.);
1695
1696 gtk_accessible_update_statecxx . . $ gtk_accessible_update_state(a322e699be08ab8a). (GTK_ACCESSIBLEcxx . . $ GTK_ACCESSIBLE(4ecffd44f086533a). (row),
1697 GTK_ACCESSIBLE_STATE_SELECTEDcxx . . $ GTK_ACCESSIBLE_STATE_SELECTED., selected,
1698 -1);
1699
1700 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1701 }
1702
1703 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1704 }
1705
1706 static gbooleancxx . . $ gboolean#
1707 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (GtkListBoxcxx . . $ GtkListBox# *box)
1708 {
1709 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1710 GSequenceItercxx . . $ GSequenceIter# *iter;
1711 gbooleancxx . . $ gboolean# dirty = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1712
1713 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE.)
1714 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1715
1716 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1717 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
1718 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
1719 {
1720 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
1721 dirty |= gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1722 }
1723
1724 box->selected_rowcxx . . $ _GtkListBox#selected_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1725
1726 return dirty;
1727 }
1728
1729 static void
1730 gtk_list_box_unselect_row_internalcxx . . $ gtk_list_box_unselect_row_internal(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1731 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1732 {
1733 if (!ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.)
1734 return;
1735
1736 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE.)
1737 return;
1738 else if (box->selection_modecxx . . $ _GtkListBox#selection_mode. != GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.)
1739 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1740 else
1741 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1742
1743 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1744 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
1745 }
1746
1747 static void
1748 gtk_list_box_select_row_internalcxx . . $ gtk_list_box_select_row_internal(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1749 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1750 {
1751 if (!ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable.)
1752 return;
1753
1754 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.)
1755 return;
1756
1757 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE.)
1758 return;
1759
1760 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. != GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.)
1761 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1762
1763 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1764 box->selected_rowcxx . . $ _GtkListBox#selected_row. = row;
1765
1766 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, row);
1767 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
1768 }
1769
1770 static void
1771 gtk_list_box_select_all_betweencxx . . $ gtk_list_box_select_all_between(b5a74dd9991962ab). (GtkListBoxcxx . . $ GtkListBox# *box,
1772 GtkListBoxRowcxx . . $ GtkListBoxRow# *row1,
1773 GtkListBoxRowcxx . . $ GtkListBoxRow# *row2,
1774 gbooleancxx . . $ gboolean# modify)
1775 {
1776 GSequenceItercxx . . $ GSequenceIter# *iter, *iter1, *iter2;
1777
1778 if (row1)
1779 iter1 = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row1)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
1780 else
1781 iter1 = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1782
1783 if (row2)
1784 iter2 = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row2)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
1785 else
1786 iter2 = g_sequence_get_end_itercxx . . $ g_sequence_get_end_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
1787
1788 if (g_sequence_iter_comparecxx . . $ g_sequence_iter_compare(a464dc5b8d2b822a). (iter2, iter1) < 0)
1789 {
1790 iter = iter1;
1791 iter1 = iter2;
1792 iter2 = iter;
1793 }
1794
1795 for (iter = iter1;
1796 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
1797 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
1798 {
1799 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1800
1801 row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (g_sequence_get (iter));
1802 if (row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
1803 {
1804 if (modify)
1805 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, !ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.);
1806 else
1807 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1808 }
1809
1810 if (g_sequence_iter_comparecxx . . $ g_sequence_iter_compare(a464dc5b8d2b822a). (iter, iter2) == 0)
1811 break;
1812 }
1813 }
1814
1815 #define gtk_list_box_update_selectioncxx . . $ `gtk/gtklistbox.c:1815:9`!(b,r,m,e) \
1816 gtk_list_box_update_selection_full((b), (r), (m), (e), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!)
1817 static void
1818 gtk_list_box_update_selection_fullcxx . . $ gtk_list_box_update_selection_full(65b0129b366131bd). (GtkListBoxcxx . . $ GtkListBox# *box,
1819 GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
1820 gbooleancxx . . $ gboolean# modify,
1821 gbooleancxx . . $ gboolean# extend,
1822 gbooleancxx . . $ gboolean# grab_cursor)
1823 {
1824 gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (box, row, grab_cursor);
1825
1826 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE.)
1827 return;
1828
1829 if (!ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable.)
1830 return;
1831
1832 if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_BROWSEcxx . . $ GTK_SELECTION_BROWSE.)
1833 {
1834 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1835 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1836 box->selected_rowcxx . . $ _GtkListBox#selected_row. = row;
1837 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, row);
1838 }
1839 else if (box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_SINGLEcxx . . $ GTK_SELECTION_SINGLE.)
1840 {
1841 gbooleancxx . . $ gboolean# was_selected;
1842
1843 was_selected = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.;
1844 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1845 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, modify ? !was_selected : TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1846 box->selected_rowcxx . . $ _GtkListBox#selected_row. = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected. ? row : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1847 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, box->selected_rowcxx . . $ _GtkListBox#selected_row.);
1848 }
1849 else /* GTK_SELECTION_MULTIPLE */
1850 {
1851 if (extend)
1852 {
1853 GtkListBoxRowcxx . . $ GtkListBoxRow# *selected_row;
1854
1855 selected_row = box->selected_rowcxx . . $ _GtkListBox#selected_row.;
1856
1857 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1858
1859 if (selected_row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1860 {
1861 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
1862 box->selected_rowcxx . . $ _GtkListBox#selected_row. = row;
1863 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, row);
1864 }
1865 else
1866 {
1867 gtk_list_box_select_all_betweencxx . . $ gtk_list_box_select_all_between(b5a74dd9991962ab). (box, selected_row, row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1868 box->selected_rowcxx . . $ _GtkListBox#selected_row. = selected_row;
1869 }
1870 }
1871 else
1872 {
1873 if (modify)
1874 {
1875 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, !ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.);
1876 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected. ? row
1877 : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1878 }
1879 else
1880 {
1881 gtk_list_box_unselect_all_internalcxx . . $ gtk_list_box_unselect_all_internal(5d27981c6da10d47). (box);
1882 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, !ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.);
1883 box->selected_rowcxx . . $ _GtkListBox#selected_row. = row;
1884 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, row);
1885 }
1886 }
1887 }
1888
1889 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
1890 }
1891
1892 static void
1893 gtk_list_box_activatecxx . . $ gtk_list_box_activate(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
1894 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
1895 {
1896 if (!gtk_list_box_row_get_activatablecxx . . $ gtk_list_box_row_get_activatable(1bf02d92bfb6b5de). (row))
1897 return;
1898
1899 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.)
1900 gtk_action_helper_activatecxx . . $ gtk_action_helper_activate(64e567adf714b3dc). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.);
1901 else
1902 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_ACTIVATEDcxx . . $ ROW_ACTIVATED.], 0, row);
1903 }
1904
1905 #define gtk_list_box_select_and_activatecxx . . $ `gtk/gtklistbox.c:1905:9`!(b,r) \
1906 gtk_list_box_select_and_activate_full ((b), (r), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!)
1907 static void
1908 gtk_list_box_select_and_activate_fullcxx . . $ gtk_list_box_select_and_activate_full(7792ec58b97ef62e). (GtkListBoxcxx . . $ GtkListBox# *box,
1909 GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
1910 gbooleancxx . . $ gboolean# grab_focus)
1911 {
1912 if (row != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1913 {
1914 gtk_list_box_select_row_internalcxx . . $ gtk_list_box_select_row_internal(6e1663ed5ab031d8). (box, row);
1915 gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (box, row, grab_focus);
1916 gtk_list_box_activatecxx . . $ gtk_list_box_activate(6e1663ed5ab031d8). (box, row);
1917 }
1918 }
1919
1920 static void
1921 gtk_list_box_click_gesture_pressedcxx . . $ gtk_list_box_click_gesture_pressed(c902bbcd9d31d28). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
1922 guintcxx . . $ guint# n_press,
1923 double x,
1924 double y,
1925 GtkListBoxcxx . . $ GtkListBox# *box)
1926 {
1927 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1928
1929 box->active_rowcxx . . $ _GtkListBox#active_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1930 row = gtk_list_box_get_row_at_ycxx . . $ gtk_list_box_get_row_at_y(f694cf0d427bb76b). (box, y);
1931
1932 if (row != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && gtk_widget_is_sensitivecxx . . $ gtk_widget_is_sensitive(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
1933 {
1934 box->active_rowcxx . . $ _GtkListBox#active_row. = row;
1935
1936 if (n_press == 2 && !box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click.)
1937 gtk_list_box_activatecxx . . $ gtk_list_box_activate(6e1663ed5ab031d8). (box, row);
1938 }
1939 }
1940
1941 static void
1942 gtk_list_box_click_unpaired_releasecxx . . $ gtk_list_box_click_unpaired_release(60167f451d5201e4). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
1943 double x,
1944 double y,
1945 guintcxx . . $ guint# button,
1946 GdkEventSequencecxx . . $ GdkEventSequence# *sequence,
1947 GtkListBoxcxx . . $ GtkListBox# *box)
1948 {
1949 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
1950
1951 if (!box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click. || !box->accept_unpaired_releasecxx . . $ _GtkListBox#accept_unpaired_release.)
1952 return;
1953
1954 row = gtk_list_box_get_row_at_ycxx . . $ gtk_list_box_get_row_at_y(f694cf0d427bb76b). (box, y);
1955
1956 if (row)
1957 gtk_list_box_select_and_activatecxx . . $ `gtk/gtklistbox.c:1905:9`! (box, row);
1958 }
1959
1960 static void
1961 gtk_list_box_click_gesture_releasedcxx . . $ gtk_list_box_click_gesture_released(c902bbcd9d31d28). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
1962 guintcxx . . $ guint# n_press,
1963 double x,
1964 double y,
1965 GtkListBoxcxx . . $ GtkListBox# *box)
1966 {
1967 /* Take a ref to protect against reentrancy
1968 * (the activation may destroy the widget)
1969 */
1970 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (box);
1971
1972 if (box->active_rowcxx . . $ _GtkListBox#active_row. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
1973 box->active_rowcxx . . $ _GtkListBox#active_row. == gtk_list_box_get_row_at_ycxx . . $ gtk_list_box_get_row_at_y(f694cf0d427bb76b). (box, y))
1974 {
1975 gbooleancxx . . $ gboolean# focus_on_click = gtk_widget_get_focus_on_clickcxx . . $ gtk_widget_get_focus_on_click(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box->active_row));
1976
1977 if (n_press == 1 && box->activate_single_clickcxx . . $ _GtkListBox#activate_single_click.)
1978 gtk_list_box_select_and_activate_fullcxx . . $ gtk_list_box_select_and_activate_full(7792ec58b97ef62e). (box, box->active_rowcxx . . $ _GtkListBox#active_row., focus_on_click);
1979 else
1980 {
1981 GdkEventSequencecxx . . $ GdkEventSequence# *sequence;
1982 GdkInputSourcecxx . . $ GdkInputSource# source;
1983 GdkEventcxx . . $ GdkEvent# *event;
1984 GdkModifierTypecxx . . $ GdkModifierType# state;
1985 gbooleancxx . . $ gboolean# extend;
1986 gbooleancxx . . $ gboolean# modify;
1987
1988 /* With touch, we default to modifying the selection.
1989 * You can still clear the selection and start over
1990 * by holding Ctrl.
1991 */
1992 sequence = gtk_gesture_single_get_current_sequencecxx . . $ gtk_gesture_single_get_current_sequence(eacc6d2458a1513d). (GTK_GESTURE_SINGLEcxx . . $ `gtk/gtkgesturesingle.h:32:9`! (gesture));
1993 event = gtk_gesture_get_last_eventcxx . . $ gtk_gesture_get_last_event(bb392b7a95f5154a). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), sequence);
1994 state = gdk_event_get_modifier_statecxx . . $ gdk_event_get_modifier_state(75c35027a2dedee4). (event);
1995 extend = (state & GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK.) != 0;
1996 modify = (state & GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.) != 0;
1997 #ifdef __APPLE__
1998 modify = modify | ((state & GDK_META_MASK) != 0);
1999 #endif
2000 source = gdk_device_get_sourcecxx . . $ gdk_device_get_source(6e76c929deca7d75). (gdk_event_get_devicecxx . . $ gdk_event_get_device(34b68624c462eb2f). (event));
2001
2002 if (source == GDK_SOURCE_TOUCHSCREENcxx . . $ GDK_SOURCE_TOUCHSCREEN.)
2003 modify = !modify;
2004
2005 gtk_list_box_update_selection_fullcxx . . $ gtk_list_box_update_selection_full(65b0129b366131bd). (box, box->active_rowcxx . . $ _GtkListBox#active_row., modify, extend, focus_on_click);
2006 }
2007 }
2008
2009 if (box->active_rowcxx . . $ _GtkListBox#active_row.)
2010 {
2011 box->active_rowcxx . . $ _GtkListBox#active_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2012 }
2013
2014 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (box);
2015 }
2016
2017 static void
2018 gtk_list_box_click_gesture_stoppedcxx . . $ gtk_list_box_click_gesture_stopped(24e7693c0772b7dc). (GtkGestureClickcxx . . $ GtkGestureClick# *gesture,
2019 GtkListBoxcxx . . $ GtkListBox# *box)
2020 {
2021 if (box->active_rowcxx . . $ _GtkListBox#active_row.)
2022 {
2023 box->active_rowcxx . . $ _GtkListBox#active_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2024 gtk_widget_queue_drawcxx . . $ gtk_widget_queue_draw(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
2025 }
2026 }
2027
2028 static void
2029 gtk_list_box_showcxx . . $ gtk_list_box_show(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
2030 {
2031 gtk_list_box_do_reseparatecxx . . $ gtk_list_box_do_reseparate(5500cc82b552208f). (GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (widget));
2032
2033 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_list_box_parent_class)->showcxx . . $ _GtkWidgetClass#show. (widget);
2034 }
2035
2036 static gbooleancxx . . $ gboolean#
2037 gtk_list_box_focuscxx . . $ gtk_list_box_focus(8bb1c65c821a69cd). (GtkWidgetcxx . . $ GtkWidget# *widget,
2038 GtkDirectionTypecxx . . $ GtkDirectionType# direction)
2039 {
2040 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (widget);
2041 GtkWidgetcxx . . $ GtkWidget# *focus_child;
2042 GtkListBoxRowcxx . . $ GtkListBoxRow# *next_focus_row;
2043 GtkWidgetcxx . . $ GtkWidget# *row;
2044 GtkWidgetcxx . . $ GtkWidget# *header;
2045
2046 focus_child = gtk_widget_get_focus_childcxx . . $ gtk_widget_get_focus_child(ef973e1b01680070). (widget);
2047
2048 next_focus_row = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2049 if (focus_child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2050 {
2051 GSequenceItercxx . . $ GSequenceIter# *i;
2052
2053 if (gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (focus_child, direction))
2054 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2055
2056 if (direction == GTK_DIR_UPcxx . . $ GTK_DIR_UP. || (direction == GTK_DIR_TAB_BACKWARDcxx . . $ GTK_DIR_TAB_BACKWARD. && box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior. == GTK_LIST_TAB_ALLcxx . . $ GTK_LIST_TAB_ALL.))
2057 {
2058 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (focus_child))
2059 {
2060 header = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (focus_child))->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
2061 if (header && gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (header, direction))
2062 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2063 }
2064
2065 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (focus_child))
2066 row = focus_child;
2067 else
2068 row = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (box->header_hashcxx . . $ _GtkListBox#header_hash., focus_child);
2069
2070 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row))
2071 i = gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (row))->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
2072 else
2073 i = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2074
2075 while (i != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2076 {
2077 if (gtk_widget_get_sensitivecxx . . $ gtk_widget_get_sensitive(9247ef2dc26c5426). (g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (i)))
2078 {
2079 next_focus_row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (i);
2080 break;
2081 }
2082
2083 i = gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (box, i);
2084 }
2085 }
2086 else if (direction == GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN. || (direction == GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD. && box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior. == GTK_LIST_TAB_ALLcxx . . $ GTK_LIST_TAB_ALL.))
2087 {
2088 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (focus_child))
2089 i = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (focus_child))->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
2090 else
2091 {
2092 row = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (box->header_hashcxx . . $ _GtkListBox#header_hash., focus_child);
2093 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row))
2094 i = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (row))->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
2095 else
2096 i = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2097 }
2098
2099 while (i != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (i))
2100 {
2101 if (gtk_widget_get_sensitivecxx . . $ gtk_widget_get_sensitive(9247ef2dc26c5426). (g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (i)))
2102 {
2103 next_focus_row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (i);
2104 break;
2105 }
2106
2107 i = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, i);
2108 }
2109 }
2110 }
2111 else
2112 {
2113 /* No current focus row */
2114 switch (direction)
2115 {
2116 case GTK_DIR_UPcxx . . $ GTK_DIR_UP.:
2117 case GTK_DIR_TAB_BACKWARDcxx . . $ GTK_DIR_TAB_BACKWARD.:
2118 next_focus_row = box->selected_rowcxx . . $ _GtkListBox#selected_row.;
2119 if (next_focus_row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2120 next_focus_row = gtk_list_box_get_last_focusablecxx . . $ gtk_list_box_get_last_focusable(c6fa70182bab32a5). (box);
2121 break;
2122 case GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN.:
2123 case GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.:
2124 case GTK_DIR_LEFTcxx . . $ GTK_DIR_LEFT.:
2125 case GTK_DIR_RIGHTcxx . . $ GTK_DIR_RIGHT.:
2126 default:
2127 next_focus_row = box->selected_rowcxx . . $ _GtkListBox#selected_row.;
2128 if (next_focus_row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2129 next_focus_row = gtk_list_box_get_first_focusablecxx . . $ gtk_list_box_get_first_focusable(c6fa70182bab32a5). (box);
2130 break;
2131 }
2132 }
2133
2134 if (next_focus_row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2135 {
2136 if (direction == GTK_DIR_UPcxx . . $ GTK_DIR_UP. || direction == GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN.)
2137 {
2138 if (gtk_widget_keynav_failedcxx . . $ gtk_widget_keynav_failed(8bb1c65c821a69cd). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), direction))
2139 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2140 }
2141
2142 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
2143 }
2144
2145 if (direction == GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN. || direction == GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.)
2146 {
2147 header = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (next_focus_row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
2148 if (header && gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (header, direction))
2149 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2150 }
2151
2152 if (gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (next_focus_row), direction))
2153 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2154
2155 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
2156 }
2157
2158 static void
2159 list_box_add_visible_rowscxx . . $ list_box_add_visible_rows(cba6bd24aa2f15d8). (GtkListBoxcxx . . $ GtkListBox# *box,
2160 int n)
2161 {
2162 int was_zero;
2163
2164 was_zero = box->n_visible_rowscxx . . $ _GtkListBox#n_visible_rows. == 0;
2165 box->n_visible_rowscxx . . $ _GtkListBox#n_visible_rows. += n;
2166
2167 if (box->placeholdercxx . . $ _GtkListBox#placeholder. &&
2168 (was_zero || box->n_visible_rowscxx . . $ _GtkListBox#n_visible_rows. == 0))
2169 gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box->placeholder),
2170 box->n_visible_rowscxx . . $ _GtkListBox#n_visible_rows. == 0);
2171 }
2172
2173 /* Children are visible if they are shown by the app (visible)
2174 * and not filtered out (child_visible) by the listbox
2175 */
2176 static void
2177 update_row_is_visiblecxx . . $ update_row_is_visible(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
2178 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
2179 {
2180 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *row_priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
2181 gbooleancxx . . $ gboolean# was_visible;
2182
2183 was_visible = row_priv->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.;
2184
2185 row_priv->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible. =
2186 gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)) &&
2187 gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
2188
2189 if (was_visible && !row_priv->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.)
2190 list_box_add_visible_rowscxx . . $ list_box_add_visible_rows(cba6bd24aa2f15d8). (box, -1);
2191 if (!was_visible && row_priv->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.)
2192 list_box_add_visible_rowscxx . . $ list_box_add_visible_rows(cba6bd24aa2f15d8). (box, 1);
2193 }
2194
2195 static void
2196 gtk_list_box_apply_filtercxx . . $ gtk_list_box_apply_filter(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
2197 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
2198 {
2199 gbooleancxx . . $ gboolean# do_show;
2200
2201 do_show = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2202 if (box->filter_funccxx . . $ _GtkListBox#filter_func. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2203 do_show = box->filter_funccxx . . $ _GtkListBox#filter_func. (row, box->filter_func_targetcxx . . $ _GtkListBox#filter_func_target.);
2204
2205 gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), do_show);
2206
2207 update_row_is_visiblecxx . . $ update_row_is_visible(6e1663ed5ab031d8). (box, row);
2208 }
2209
2210 static void
2211 gtk_list_box_apply_filter_allcxx . . $ gtk_list_box_apply_filter_all(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
2212 {
2213 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2214 GSequenceItercxx . . $ GSequenceIter# *iter;
2215
2216 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2217 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2218 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2219 {
2220 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2221 gtk_list_box_apply_filtercxx . . $ gtk_list_box_apply_filter(6e1663ed5ab031d8). (box, row);
2222 }
2223 }
2224
2225 static GtkListBoxRowcxx . . $ GtkListBoxRow# *
2226 gtk_list_box_get_first_focusablecxx . . $ gtk_list_box_get_first_focusable(c6fa70182bab32a5). (GtkListBoxcxx . . $ GtkListBox# *box)
2227 {
2228 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2229 GSequenceItercxx . . $ GSequenceIter# *iter;
2230
2231 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2232 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2233 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2234 {
2235 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2236 if (row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row) && gtk_widget_is_sensitivecxx . . $ gtk_widget_is_sensitive(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
2237 return row;
2238 }
2239
2240 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2241 }
2242
2243 static GtkListBoxRowcxx . . $ GtkListBoxRow# *
2244 gtk_list_box_get_last_focusablecxx . . $ gtk_list_box_get_last_focusable(c6fa70182bab32a5). (GtkListBoxcxx . . $ GtkListBox# *box)
2245 {
2246 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2247 GSequenceItercxx . . $ GSequenceIter# *iter;
2248
2249 iter = g_sequence_get_end_itercxx . . $ g_sequence_get_end_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2250 while (!g_sequence_iter_is_begincxx . . $ g_sequence_iter_is_begin(5b8ca6ef87da3483). (iter))
2251 {
2252 iter = g_sequence_iter_prevcxx . . $ g_sequence_iter_prev(5ad1731c2fb84d98). (iter);
2253 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2254 if (row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row) && gtk_widget_is_sensitivecxx . . $ gtk_widget_is_sensitive(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
2255 return row;
2256 }
2257
2258 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2259 }
2260
2261 static GSequenceItercxx . . $ GSequenceIter# *
2262 gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (GtkListBoxcxx . . $ GtkListBox# *box,
2263 GSequenceItercxx . . $ GSequenceIter# *iter)
2264 {
2265 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2266
2267 if (g_sequence_iter_is_begincxx . . $ g_sequence_iter_is_begin(5b8ca6ef87da3483). (iter))
2268 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2269
2270 do
2271 {
2272 iter = g_sequence_iter_prevcxx . . $ g_sequence_iter_prev(5ad1731c2fb84d98). (iter);
2273 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2274 if (row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2275 return iter;
2276 }
2277 while (!g_sequence_iter_is_begincxx . . $ g_sequence_iter_is_begin(5b8ca6ef87da3483). (iter));
2278
2279 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2280 }
2281
2282 static GSequenceItercxx . . $ GSequenceIter# *
2283 gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (GtkListBoxcxx . . $ GtkListBox# *box,
2284 GSequenceItercxx . . $ GSequenceIter# *iter)
2285 {
2286 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2287
2288 if (g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
2289 return iter;
2290
2291 do
2292 {
2293 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter);
2294 if (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
2295 {
2296 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2297 if (row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2298 return iter;
2299 }
2300 }
2301 while (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter));
2302
2303 return iter;
2304 }
2305
2306 static GSequenceItercxx . . $ GSequenceIter# *
2307 gtk_list_box_get_last_visiblecxx . . $ gtk_list_box_get_last_visible(17eef945c6776c06). (GtkListBoxcxx . . $ GtkListBox# *box,
2308 GSequenceItercxx . . $ GSequenceIter# *iter)
2309 {
2310 GSequenceItercxx . . $ GSequenceIter# *next = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2311
2312 if (g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
2313 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2314
2315 do
2316 {
2317 next = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, iter);
2318
2319 if (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (next))
2320 iter = next;
2321 }
2322 while (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (next));
2323
2324 return iter;
2325 }
2326
2327 static void
2328 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (GtkListBoxcxx . . $ GtkListBox# *box,
2329 GSequenceItercxx . . $ GSequenceIter# *iter)
2330 {
2331 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2332 GSequenceItercxx . . $ GSequenceIter# *before_iter;
2333 GtkListBoxRowcxx . . $ GtkListBoxRow# *before_row;
2334 GtkWidgetcxx . . $ GtkWidget# *old_header, *new_header;
2335
2336 if (iter == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
2337 return;
2338
2339 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2340 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (row);
2341
2342 before_iter = gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (box, iter);
2343 before_row = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2344 if (before_iter != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2345 {
2346 before_row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (before_iter);
2347 if (before_row)
2348 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (before_row);
2349 }
2350
2351 if (box->update_header_funccxx . . $ _GtkListBox#update_header_func. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
2352 row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2353 {
2354 old_header = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
2355 if (old_header)
2356 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (old_header);
2357 box->update_header_funccxx . . $ _GtkListBox#update_header_func. (row,
2358 before_row,
2359 box->update_header_func_targetcxx . . $ _GtkListBox#update_header_func_target.);
2360 new_header = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
2361 if (old_header != new_header)
2362 {
2363 if (old_header != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
2364 g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (box->header_hashcxx . . $ _GtkListBox#header_hash., old_header) == row)
2365 {
2366 /* Only unparent the @old_header if it hasn’t been re-used as the
2367 * header for a different row. */
2368 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (old_header);
2369 g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (box->header_hashcxx . . $ _GtkListBox#header_hash., old_header);
2370 }
2371 if (new_header != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2372 {
2373 g_hash_table_insertcxx . . $ g_hash_table_insert(6a7c46015dd5ef26). (box->header_hashcxx . . $ _GtkListBox#header_hash., new_header, row);
2374 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (new_header);
2375 gtk_widget_set_parentcxx . . $ gtk_widget_set_parent(4f261c0971c30e7). (new_header, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
2376 }
2377 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
2378 }
2379 if (old_header)
2380 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (old_header);
2381 }
2382 else
2383 {
2384 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2385 {
2386 g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (box->header_hashcxx . . $ _GtkListBox#header_hash., ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.);
2387 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.);
2388 gtk_list_box_row_set_headercxx . . $ gtk_list_box_row_set_header(2dc50f1b58a199a8). (row, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2389 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
2390 }
2391 }
2392 if (before_row)
2393 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (before_row);
2394 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (row);
2395 }
2396
2397 static void
2398 gtk_list_box_row_visibility_changedcxx . . $ gtk_list_box_row_visibility_changed(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
2399 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
2400 {
2401 update_row_is_visiblecxx . . $ update_row_is_visible(6e1663ed5ab031d8). (box, row);
2402
2403 if (gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)) &&
2404 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.)
2405 {
2406 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
2407 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box,
2408 gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.));
2409 }
2410 }
2411
2412 /**
2413 * gtk_list_box_remove:
2414 * @box: a `GtkListBox`
2415 * @child: the child to remove
2416 *
2417 * Removes a child from @box.
2418 */
2419 void
2420 gtk_list_box_removecxx . . $ gtk_list_box_remove(80bd4d01e1352ed1). (GtkListBoxcxx . . $ GtkListBox# *box,
2421 GtkWidgetcxx . . $ GtkWidget# *child)
2422 {
2423 GtkWidgetcxx . . $ GtkWidget# *widget;
2424 gbooleancxx . . $ gboolean# was_visible;
2425 gbooleancxx . . $ gboolean# was_selected;
2426 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2427 GSequenceItercxx . . $ GSequenceIter# *iter;
2428 GSequenceItercxx . . $ GSequenceIter# *next;
2429
2430 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
2431 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child));
2432
2433 widget = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box);
2434 was_visible = gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (child);
2435
2436 if (child == box->placeholdercxx . . $ _GtkListBox#placeholder.)
2437 {
2438 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (child);
2439 box->placeholdercxx . . $ _GtkListBox#placeholder. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2440 if (was_visible && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (widget))
2441 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (widget);
2442
2443 return;
2444 }
2445
2446 if (!GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (child))
2447 {
2448 row = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (box->header_hashcxx . . $ _GtkListBox#header_hash., child);
2449 if (row != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2450 {
2451 g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (box->header_hashcxx . . $ _GtkListBox#header_hash., child);
2452 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->header);
2453 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (child);
2454 if (was_visible && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (widget))
2455 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (widget);
2456 }
2457 else
2458 {
2459 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Tried to remove non-child %p", child);
2460 }
2461 return;
2462 }
2463
2464 row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (child);
2465 iter = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
2466 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2467
2468 if (g_sequence_iter_get_sequencecxx . . $ g_sequence_iter_get_sequence(f93d4c2b32eb1e0a). (iter) != box->childrencxx . . $ _GtkListBox#children.)
2469 {
2470 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Tried to remove non-child %p", child);
2471 return;
2472 }
2473
2474 was_selected = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.;
2475
2476 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.)
2477 list_box_add_visible_rowscxx . . $ list_box_add_visible_rows(cba6bd24aa2f15d8). (box, -1);
2478
2479 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2480 {
2481 g_hash_table_removecxx . . $ g_hash_table_remove(453ebbf4abdbe50e). (box->header_hashcxx . . $ _GtkListBox#header_hash., ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.);
2482 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.);
2483 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->header);
2484 }
2485
2486 if (row == box->selected_rowcxx . . $ _GtkListBox#selected_row.)
2487 box->selected_rowcxx . . $ _GtkListBox#selected_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2488 if (row == box->cursor_rowcxx . . $ _GtkListBox#cursor_row.)
2489 box->cursor_rowcxx . . $ _GtkListBox#cursor_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2490 if (row == box->active_rowcxx . . $ _GtkListBox#active_row.)
2491 box->active_rowcxx . . $ _GtkListBox#active_row. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2492
2493 if (row == box->drag_highlighted_rowcxx . . $ _GtkListBox#drag_highlighted_row.)
2494 gtk_list_box_drag_unhighlight_rowcxx . . $ gtk_list_box_drag_unhighlight_row(5500cc82b552208f). (box);
2495
2496 next = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, iter);
2497 gtk_widget_unparentcxx . . $ gtk_widget_unparent(d7cf858254b37903). (child);
2498 g_sequence_removecxx . . $ g_sequence_remove(63e94b58455269fd). (iter);
2499
2500 /* After unparenting, those values are garbage */
2501 iter = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2502 row = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2503 child = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2504
2505 if (gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (widget))
2506 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, next);
2507
2508 if (was_visible && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)))
2509 gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (widget);
2510
2511 if (was_selected && !gtk_widget_in_destructioncxx . . $ gtk_widget_in_destruction(9247ef2dc26c5426). (widget))
2512 {
2513 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[ROW_SELECTEDcxx . . $ ROW_SELECTED.], 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2514 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (box, signalscxx . . $ signals.[SELECTED_ROWS_CHANGEDcxx . . $ SELECTED_ROWS_CHANGED.], 0);
2515 }
2516 }
2517
2518 /**
2519 * gtk_list_box_remove_all:
2520 * @box: a `GtkListBox`
2521 *
2522 * Removes all rows from @box.
2523 *
2524 * This function does nothing if @box is backed by a model.
2525 *
2526 * Since: 4.12
2527 */
2528 void
2529 gtk_list_box_remove_allcxx . . $ gtk_list_box_remove_all(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
2530 {
2531 GtkWidgetcxx . . $ GtkWidget# *widget = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box);
2532 GtkWidgetcxx . . $ GtkWidget# *child;
2533
2534 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
2535
2536 if (box->bound_modelcxx . . $ _GtkListBox#bound_model.)
2537 return;
2538
2539 while ((child = gtk_widget_get_first_childcxx . . $ gtk_widget_get_first_child(ef973e1b01680070). (widget)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2540 gtk_list_box_removecxx . . $ gtk_list_box_remove(80bd4d01e1352ed1). (box, child);
2541 }
2542
2543 static void
2544 gtk_list_box_compute_expandcxx . . $ gtk_list_box_compute_expand(327d22ad06f230a). (GtkWidgetcxx . . $ GtkWidget# *widget,
2545 gbooleancxx . . $ gboolean# *hexpand_p,
2546 gbooleancxx . . $ gboolean# *vexpand_p)
2547 {
2548 GtkWidgetcxx . . $ GtkWidget# *w;
2549 gbooleancxx . . $ gboolean# hexpand = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
2550 gbooleancxx . . $ gboolean# vexpand = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
2551
2552 for (w = gtk_widget_get_first_childcxx . . $ gtk_widget_get_first_child(ef973e1b01680070). (widget);
2553 w != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2554 w = gtk_widget_get_next_siblingcxx . . $ gtk_widget_get_next_sibling(ef973e1b01680070). (w))
2555 {
2556 hexpand = hexpand || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (w, GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.);
2557 vexpand = vexpand || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (w, GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.);
2558 }
2559
2560 *hexpand_p = hexpand;
2561 *vexpand_p = vexpand;
2562 }
2563
2564 static GtkSizeRequestModecxx . . $ GtkSizeRequestMode#
2565 gtk_list_box_get_request_modecxx . . $ gtk_list_box_get_request_mode(2c9e09fe52fe0412). (GtkWidgetcxx . . $ GtkWidget# *widget)
2566 {
2567 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (widget);
2568 GSequenceItercxx . . $ GSequenceIter# *iter;
2569 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2570
2571 if (box->placeholdercxx . . $ _GtkListBox#placeholder. && gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (box->placeholdercxx . . $ _GtkListBox#placeholder.))
2572 return gtk_widget_get_request_modecxx . . $ gtk_widget_get_request_mode(2c9e09fe52fe0412). (box->placeholdercxx . . $ _GtkListBox#placeholder.);
2573
2574 /* Return constant-size, unless any of the children do hfw (or wfh) */
2575
2576 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2577 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2578 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2579 {
2580 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2581 if (!row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2582 continue;
2583
2584 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
2585 gtk_widget_get_request_modecxx . . $ gtk_widget_get_request_mode(2c9e09fe52fe0412). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.) != GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.)
2586 return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.;
2587 if (gtk_widget_get_request_modecxx . . $ gtk_widget_get_request_mode(2c9e09fe52fe0412). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)) != GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.)
2588 return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.;
2589 }
2590
2591 return GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.;
2592 }
2593
2594 static void
2595 gtk_list_box_measure_height_for_widthcxx . . $ gtk_list_box_measure_height_for_width(c04d523fff46305f). (GtkListBoxcxx . . $ GtkListBox# *box,
2596 int for_width,
2597 int *minimum,
2598 int *natural,
2599 GtkRequestedSizecxx . . $ GtkRequestedSize# *sizes)
2600 {
2601 GSequenceItercxx . . $ GSequenceIter# *iter;
2602 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2603 int i = 0;
2604
2605 if (box->placeholdercxx . . $ _GtkListBox#placeholder. && gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (box->placeholdercxx . . $ _GtkListBox#placeholder.))
2606 {
2607 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (box->placeholdercxx . . $ _GtkListBox#placeholder., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2608 for_width, minimum, natural, 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`!);
2609 return;
2610 }
2611
2612 *minimum = 0;
2613 *natural = 0;
2614
2615 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2616 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2617 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2618 {
2619 int row_min = 0, row_nat = 0;
2620
2621 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2622 if (!row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2623 continue;
2624
2625 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2626 {
2627 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2628 for_width, &row_min, &row_nat, 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`!);
2629 *minimum += row_min;
2630 *natural += row_nat;
2631
2632 if (sizes)
2633 {
2634 sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size. = row_min;
2635 sizes[i].natural_sizecxx . . $ _GtkRequestedSize#natural_size. = row_nat;
2636 i++;
2637 }
2638 }
2639 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2640 for_width, &row_min, &row_nat, 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`!);
2641 *minimum += row_min;
2642 *natural += row_nat;
2643
2644 if (sizes)
2645 {
2646 sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size. = row_min;
2647 sizes[i].natural_sizecxx . . $ _GtkRequestedSize#natural_size. = row_nat;
2648 i++;
2649 }
2650 }
2651 }
2652
2653 static void
2654 gtk_list_box_measure_width_for_heightcxx . . $ gtk_list_box_measure_width_for_height(e45ca148f2a64a49). (GtkListBoxcxx . . $ GtkListBox# *box,
2655 int for_height,
2656 int *minimum,
2657 int *natural)
2658 {
2659 GSequenceItercxx . . $ GSequenceIter# *iter;
2660 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2661 int i = 0;
2662 GtkRequestedSizecxx . . $ GtkRequestedSize# *sizes = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2663 int min, max, min_height, nat_height;
2664 int n_vexpand_children = 0;
2665 int extra_height;
2666
2667 if (box->placeholdercxx . . $ _GtkListBox#placeholder. && gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (box->placeholdercxx . . $ _GtkListBox#placeholder.))
2668 {
2669 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (box->placeholdercxx . . $ _GtkListBox#placeholder., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.,
2670 for_height, minimum, natural, 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`!);
2671 return;
2672 }
2673
2674 *minimum = 0;
2675 *natural = 0;
2676
2677 /* Measure width for natural height */
2678 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2679 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2680 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2681 {
2682 int row_min, row_nat;
2683
2684 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2685
2686 /* We *do* take visible but filtered rows into account here so that
2687 * the list width doesn't change during filtering
2688 */
2689 if (!gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
2690 continue;
2691
2692 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.,
2693 -1, &row_min, &row_nat, 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`!);
2694
2695 *minimum = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*minimum, row_min);
2696 *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, row_nat);
2697
2698 if (for_height >= 0 && gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2699 n_vexpand_children++;
2700
2701 i++;
2702
2703 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2704 {
2705 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.,
2706 -1, &row_min, &row_nat, 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`!);
2707 *minimum = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*minimum, row_min);
2708 *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, row_nat);
2709
2710 if (for_height >= 0 && gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2711 n_vexpand_children++;
2712
2713 i++;
2714 }
2715 }
2716
2717 if (for_height < 0)
2718 return;
2719
2720 /* Binary search for the smallest width that lets us fit
2721 * into the suggested height. */
2722 min = *minimum;
2723 max = G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!;
2724
2725 while (min < max)
2726 {
2727 int test;
2728
2729 /* We're most likely to be measured for a height that matches
2730 * our min or nat width, so start by checking around those
2731 * sizes. */
2732 if (min == *minimum + 1 && max == *natural)
2733 test = max - 1;
2734 else if (max != G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!)
2735 test = (min + max) / 2;
2736 else if (min == *minimum)
2737 test = min;
2738 else if (min == *minimum + 1 && *natural >= min)
2739 test = *natural;
2740 else
2741 test = min * 2;
2742
2743 gtk_list_box_measure_height_for_widthcxx . . $ gtk_list_box_measure_height_for_width(c04d523fff46305f). (box, test,
2744 &min_height, &nat_height,
2745 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2746 if (min_height > for_height)
2747 min = test + 1;
2748 else
2749 max = test;
2750 }
2751
2752 *minimum = min;
2753
2754 /* Now find the natural width */
2755 sizes = g_newcxx . . $ `<external>/1123956534522462559/gmem.h:318:9`! (GtkRequestedSize, i);
2756 gtk_list_box_measure_height_for_widthcxx . . $ gtk_list_box_measure_height_for_width(c04d523fff46305f). (box, -1,
2757 &min_height, &nat_height,
2758 sizes);
2759 extra_height = gtk_distribute_natural_allocationcxx . . $ gtk_distribute_natural_allocation(f2a7c29fe290b769). (for_height - min_height,
2760 i, sizes);
2761 *natural = 0;
2762 i = 0;
2763
2764 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2765 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2766 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2767 {
2768 int row_height, row_min, row_nat;
2769
2770 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2771
2772 if (!gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row)))
2773 continue;
2774
2775 row_height = sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.;
2776 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2777 row_height += extra_height / n_vexpand_children;
2778
2779 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.,
2780 row_height, &row_min, &row_nat,
2781 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`!);
2782
2783 *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, row_nat);
2784 i++;
2785
2786 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2787 {
2788 row_height = sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.;
2789 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2790 row_height += extra_height / n_vexpand_children;
2791
2792 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.,
2793 row_height, &row_min, &row_nat,
2794 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`!);
2795
2796 *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, row_nat);
2797 i++;
2798 }
2799 }
2800
2801 g_freecxx . . $ g_free(5d22bdacc48458e8). (sizes);
2802 }
2803
2804 static void
2805 gtk_list_box_measurecxx . . $ gtk_list_box_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget,
2806 GtkOrientationcxx . . $ GtkOrientation# orientation,
2807 int for_size,
2808 int *minimum,
2809 int *natural,
2810 int *minimum_baseline,
2811 int *natural_baseline)
2812 {
2813 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (widget);
2814
2815 if (orientation == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.)
2816 gtk_list_box_measure_width_for_heightcxx . . $ gtk_list_box_measure_width_for_height(e45ca148f2a64a49). (box, for_size,
2817 minimum, natural);
2818 else
2819 gtk_list_box_measure_height_for_widthcxx . . $ gtk_list_box_measure_height_for_width(c04d523fff46305f). (box, for_size,
2820 minimum, natural, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2821 }
2822
2823 static void
2824 gtk_list_box_size_allocatecxx . . $ gtk_list_box_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget,
2825 int width,
2826 int height,
2827 int baseline)
2828 {
2829 GtkListBoxcxx . . $ GtkListBox# *box = GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (widget);
2830 GtkAllocationcxx . . $ GtkAllocation# child_allocation;
2831 GtkAllocationcxx . . $ GtkAllocation# header_allocation;
2832 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
2833 GSequenceItercxx . . $ GSequenceIter# *iter;
2834 int child_min, child_nat;
2835 int total_min = 0, total_nat = 0;
2836 gbooleancxx . . $ gboolean# allocate_min = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, allocate_nat = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
2837 GtkRequestedSizecxx . . $ GtkRequestedSize# *sizes = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2838 int i = 0;
2839 int n_vexpand_children = 0;
2840 int extra_height = height;
2841
2842
2843 child_allocation.xcxx . . $ _cairo_rectangle_int#x. = 0;
2844 child_allocation.ycxx . . $ _cairo_rectangle_int#y. = 0;
2845 child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = width;
2846 child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = 0;
2847
2848 header_allocation.xcxx . . $ _cairo_rectangle_int#x. = 0;
2849 header_allocation.ycxx . . $ _cairo_rectangle_int#y. = 0;
2850 header_allocation.widthcxx . . $ _cairo_rectangle_int#width. = width;
2851 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. = 0;
2852
2853 if (box->placeholdercxx . . $ _GtkListBox#placeholder. && gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (box->placeholdercxx . . $ _GtkListBox#placeholder.))
2854 {
2855 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (box->placeholdercxx . . $ _GtkListBox#placeholder., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2856 width,
2857 &child_min, 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
2858 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. = height;
2859 header_allocation.ycxx . . $ _cairo_rectangle_int#y. = child_allocation.ycxx . . $ _cairo_rectangle_int#y.;
2860 gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (box->placeholdercxx . . $ _GtkListBox#placeholder., &header_allocation, -1);
2861 child_allocation.ycxx . . $ _cairo_rectangle_int#y. += child_min;
2862 }
2863
2864 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2865 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2866 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2867 {
2868 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2869 if (!row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2870 continue;
2871
2872 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2873 {
2874 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2875 width, &child_min, &child_nat, 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`!);
2876 total_min += child_min;
2877 total_nat += child_nat;
2878 i++;
2879
2880 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2881 n_vexpand_children++;
2882 }
2883
2884 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.,
2885 width, &child_min, &child_nat, 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`!);
2886 total_min += child_min;
2887 total_nat += child_nat;
2888 i++;
2889
2890 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2891 n_vexpand_children++;
2892 }
2893
2894 /* We're most likely to be allocated either our minimum or natural
2895 * height, even more so when we're placed inside a GtkScrolledWindow &
2896 * GtkViewport. Detect these cases and skip the logic for distributing
2897 * sizes.
2898 */
2899 if (height == total_min)
2900 {
2901 allocate_min = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2902 extra_height = 0;
2903 goto do_allocate;
2904 }
2905 else if (height >= total_nat)
2906 {
2907 allocate_nat = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
2908 extra_height = height - total_nat;
2909 goto do_allocate;
2910 }
2911
2912 extra_height = height - total_min;
2913 sizes = g_newcxx . . $ `<external>/1123956534522462559/gmem.h:318:9`! (GtkRequestedSize, i);
2914 i = 0;
2915
2916 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2917 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2918 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2919 {
2920 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2921 if (!row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2922 continue;
2923
2924 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2925 {
2926 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.,
2927 GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., width,
2928 &sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.,
2929 &sizes[i].natural_sizecxx . . $ _GtkRequestedSize#natural_size.,
2930 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`!);
2931 i++;
2932 }
2933
2934 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row),
2935 GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., width,
2936 &sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.,
2937 &sizes[i].natural_sizecxx . . $ _GtkRequestedSize#natural_size.,
2938 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`!);
2939 i++;
2940 }
2941
2942 extra_height = gtk_distribute_natural_allocationcxx . . $ gtk_distribute_natural_allocation(f2a7c29fe290b769). (extra_height, i, sizes);
2943
2944 do_allocate:
2945 i = 0;
2946 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
2947 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
2948 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
2949 {
2950 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
2951 if (!row_is_visiblecxx . . $ row_is_visible(1bf02d92bfb6b5de). (row))
2952 {
2953 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y. = child_allocation.ycxx . . $ _cairo_rectangle_int#y.;
2954 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->heightcxx . . $ $anonymous_type_553fa5f4da0de475_0#height. = 0;
2955 continue;
2956 }
2957
2958 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2959 {
2960 if (allocate_min || allocate_nat)
2961 {
2962 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.,
2963 GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., width,
2964 &child_min, &child_nat,
2965 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`!);
2966 if (allocate_min)
2967 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. = child_min;
2968 else
2969 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. = child_nat;
2970 }
2971 else
2972 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. = sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.;
2973
2974 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2975 header_allocation.heightcxx . . $ _cairo_rectangle_int#height. += extra_height / n_vexpand_children;
2976 header_allocation.ycxx . . $ _cairo_rectangle_int#y. = child_allocation.ycxx . . $ _cairo_rectangle_int#y.;
2977 gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.,
2978 &header_allocation,
2979 -1);
2980 child_allocation.ycxx . . $ _cairo_rectangle_int#y. += header_allocation.heightcxx . . $ _cairo_rectangle_int#height.;
2981 i++;
2982 }
2983
2984 if (allocate_min || allocate_nat)
2985 {
2986 gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row),
2987 GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., width,
2988 &child_min, &child_nat,
2989 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`!);
2990 if (allocate_min)
2991 child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = child_min;
2992 else
2993 child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = child_nat;
2994 }
2995 else
2996 child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = sizes[i].minimum_sizecxx . . $ _GtkRequestedSize#minimum_size.;
2997
2998 if (gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.))
2999 child_allocation.heightcxx . . $ _cairo_rectangle_int#height. += extra_height / n_vexpand_children;
3000
3001 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y. = child_allocation.ycxx . . $ _cairo_rectangle_int#y.;
3002 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->heightcxx . . $ $anonymous_type_553fa5f4da0de475_0#height. = child_allocation.heightcxx . . $ _cairo_rectangle_int#height.;
3003 gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), &child_allocation, -1);
3004 child_allocation.ycxx . . $ _cairo_rectangle_int#y. += child_allocation.heightcxx . . $ _cairo_rectangle_int#height.;
3005 i++;
3006 }
3007
3008 g_freecxx . . $ g_free(5d22bdacc48458e8). (sizes);
3009 }
3010
3011 /**
3012 * gtk_list_box_prepend:
3013 * @box: a `GtkListBox`
3014 * @child: the `GtkWidget` to add
3015 *
3016 * Prepend a widget to the list.
3017 *
3018 * If a sort function is set, the widget will
3019 * actually be inserted at the calculated position.
3020 */
3021 void
3022 gtk_list_box_prependcxx . . $ gtk_list_box_prepend(80bd4d01e1352ed1). (GtkListBoxcxx . . $ GtkListBox# *box,
3023 GtkWidgetcxx . . $ GtkWidget# *child)
3024 {
3025 gtk_list_box_insertcxx . . $ gtk_list_box_insert(bdb302834669dfad). (box, child, 0);
3026 }
3027
3028 /**
3029 * gtk_list_box_append:
3030 * @box: a `GtkListBox`
3031 * @child: the `GtkWidget` to add
3032 *
3033 * Append a widget to the list.
3034 *
3035 * If a sort function is set, the widget will
3036 * actually be inserted at the calculated position.
3037 */
3038 void
3039 gtk_list_box_appendcxx . . $ gtk_list_box_append(80bd4d01e1352ed1). (GtkListBoxcxx . . $ GtkListBox# *box,
3040 GtkWidgetcxx . . $ GtkWidget# *child)
3041 {
3042 gtk_list_box_insertcxx . . $ gtk_list_box_insert(bdb302834669dfad). (box, child, -1);
3043 }
3044
3045 /**
3046 * gtk_list_box_insert:
3047 * @box: a `GtkListBox`
3048 * @child: the `GtkWidget` to add
3049 * @position: the position to insert @child in
3050 *
3051 * Insert the @child into the @box at @position.
3052 *
3053 * If a sort function is
3054 * set, the widget will actually be inserted at the calculated position.
3055 *
3056 * If @position is -1, or larger than the total number of items in the
3057 * @box, then the @child will be appended to the end.
3058 */
3059 void
3060 gtk_list_box_insertcxx . . $ gtk_list_box_insert(bdb302834669dfad). (GtkListBoxcxx . . $ GtkListBox# *box,
3061 GtkWidgetcxx . . $ GtkWidget# *child,
3062 int position)
3063 {
3064 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
3065 GSequenceItercxx . . $ GSequenceIter# *prev = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
3066 GSequenceItercxx . . $ GSequenceIter# *iter = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
3067
3068 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
3069 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child));
3070
3071 if (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (child))
3072 row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (child);
3073 else
3074 {
3075 row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (gtk_list_box_row_new ());
3076 gtk_list_box_row_set_childcxx . . $ gtk_list_box_row_set_child(2dc50f1b58a199a8). (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (row), child);
3077 }
3078
3079 if (box->sort_funccxx . . $ _GtkListBox#sort_func. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3080 iter = g_sequence_insert_sortedcxx . . $ g_sequence_insert_sorted(671605a171187b9c). (box->childrencxx . . $ _GtkListBox#children., row,
3081 (GCompareDataFunccxx . . $ GCompareDataFunc#)do_sortcxx . . $ do_sort(87cd0cfce39720b)., box);
3082 else if (position == 0)
3083 iter = g_sequence_prependcxx . . $ g_sequence_prepend(a2ec852d5817d205). (box->childrencxx . . $ _GtkListBox#children., row);
3084 else if (position == -1)
3085 iter = g_sequence_appendcxx . . $ g_sequence_append(a2ec852d5817d205). (box->childrencxx . . $ _GtkListBox#children., row);
3086 else
3087 {
3088 GSequenceItercxx . . $ GSequenceIter# *current_iter;
3089
3090 current_iter = g_sequence_get_iter_at_poscxx . . $ g_sequence_get_iter_at_pos(d574b5fce5b65bd). (box->childrencxx . . $ _GtkListBox#children., position);
3091 iter = g_sequence_insert_beforecxx . . $ g_sequence_insert_before(89082cf148c34bf7). (current_iter, row);
3092 }
3093
3094 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter. = iter;
3095 prev = g_sequence_iter_prevcxx . . $ g_sequence_iter_prev(5ad1731c2fb84d98). (iter);
3096 gtk_widget_insert_aftercxx . . $ gtk_widget_insert_after(72c16b162d9e96e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box),
3097 prev != iter ? g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (prev) : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
3098
3099 gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
3100 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible. = gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
3101 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->visiblecxx . . $ $anonymous_type_553fa5f4da0de475_0#visible.)
3102 list_box_add_visible_rowscxx . . $ list_box_add_visible_rows(cba6bd24aa2f15d8). (box, 1);
3103 gtk_list_box_apply_filtercxx . . $ gtk_list_box_apply_filter(6e1663ed5ab031d8). (box, row);
3104 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (box, row);
3105 if (gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)))
3106 {
3107 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
3108 gtk_list_box_update_headercxx . . $ gtk_list_box_update_header(5def562e619545ae). (box,
3109 gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.));
3110 }
3111 }
3112
3113 /**
3114 * gtk_list_box_drag_unhighlight_row:
3115 * @box: a `GtkListBox`
3116 *
3117 * If a row has previously been highlighted via gtk_list_box_drag_highlight_row(),
3118 * it will have the highlight removed.
3119 */
3120 void
3121 gtk_list_box_drag_unhighlight_rowcxx . . $ gtk_list_box_drag_unhighlight_row(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
3122 {
3123 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
3124
3125 if (box->drag_highlighted_rowcxx . . $ _GtkListBox#drag_highlighted_row. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3126 return;
3127
3128 gtk_widget_unset_state_flagscxx . . $ gtk_widget_unset_state_flags(e7d7ee4ea524d63). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box->drag_highlighted_row), GTK_STATE_FLAG_DROP_ACTIVEcxx . . $ GTK_STATE_FLAG_DROP_ACTIVE.);
3129 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&box->drag_highlighted_row);
3130 }
3131
3132 /**
3133 * gtk_list_box_drag_highlight_row:
3134 * @box: a `GtkListBox`
3135 * @row: a `GtkListBoxRow`
3136 *
3137 * Add a drag highlight to a row.
3138 *
3139 * This is a helper function for implementing DnD onto a `GtkListBox`.
3140 * The passed in @row will be highlighted by setting the
3141 * %GTK_STATE_FLAG_DROP_ACTIVE state and any previously highlighted
3142 * row will be unhighlighted.
3143 *
3144 * The row will also be unhighlighted when the widget gets
3145 * a drag leave event.
3146 */
3147 void
3148 gtk_list_box_drag_highlight_rowcxx . . $ gtk_list_box_drag_highlight_row(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
3149 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3150 {
3151 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
3152 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3153
3154 if (box->drag_highlighted_rowcxx . . $ _GtkListBox#drag_highlighted_row. == row)
3155 return;
3156
3157 gtk_list_box_drag_unhighlight_rowcxx . . $ gtk_list_box_drag_unhighlight_row(5500cc82b552208f). (box);
3158 gtk_widget_set_state_flagscxx . . $ gtk_widget_set_state_flags(2b95d95a3c3aa236). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), GTK_STATE_FLAG_DROP_ACTIVEcxx . . $ GTK_STATE_FLAG_DROP_ACTIVE., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3159 box->drag_highlighted_rowcxx . . $ _GtkListBox#drag_highlighted_row. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (row);
3160 }
3161
3162 static void
3163 gtk_list_box_activate_cursor_rowcxx . . $ gtk_list_box_activate_cursor_row(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
3164 {
3165 gtk_list_box_select_and_activatecxx . . $ `gtk/gtklistbox.c:1905:9`! (box, box->cursor_row);
3166 }
3167
3168 static void
3169 gtk_list_box_toggle_cursor_rowcxx . . $ gtk_list_box_toggle_cursor_row(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
3170 {
3171 if (box->cursor_rowcxx . . $ _GtkListBox#cursor_row. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3172 return;
3173
3174 if ((box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_SINGLEcxx . . $ GTK_SELECTION_SINGLE. ||
3175 box->selection_modecxx . . $ _GtkListBox#selection_mode. == GTK_SELECTION_MULTIPLEcxx . . $ GTK_SELECTION_MULTIPLE.) &&
3176 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (box->cursor_row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.)
3177 gtk_list_box_unselect_row_internalcxx . . $ gtk_list_box_unselect_row_internal(6e1663ed5ab031d8). (box, box->cursor_rowcxx . . $ _GtkListBox#cursor_row.);
3178 else
3179 gtk_list_box_select_and_activatecxx . . $ `gtk/gtklistbox.c:1905:9`! (box, box->cursor_row);
3180 }
3181
3182 static void
3183 gtk_list_box_move_cursorcxx . . $ gtk_list_box_move_cursor(a42815fd493f1005). (GtkListBoxcxx . . $ GtkListBox# *box,
3184 GtkMovementStepcxx . . $ GtkMovementStep# step,
3185 int count,
3186 gbooleancxx . . $ gboolean# extend,
3187 gbooleancxx . . $ gboolean# modify)
3188 {
3189 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
3190 int page_size;
3191 GSequenceItercxx . . $ GSequenceIter# *iter;
3192 int start_y;
3193 int end_y;
3194 int height;
3195
3196 row = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
3197 switch ((guintcxx . . $ guint#) step)
3198 {
3199 case GTK_MOVEMENT_BUFFER_ENDScxx . . $ GTK_MOVEMENT_BUFFER_ENDS.:
3200 if (count < 0)
3201 row = gtk_list_box_get_first_focusablecxx . . $ gtk_list_box_get_first_focusable(c6fa70182bab32a5). (box);
3202 else
3203 row = gtk_list_box_get_last_focusablecxx . . $ gtk_list_box_get_last_focusable(c6fa70182bab32a5). (box);
3204 break;
3205 case GTK_MOVEMENT_DISPLAY_LINEScxx . . $ GTK_MOVEMENT_DISPLAY_LINES.:
3206 if (box->cursor_rowcxx . . $ _GtkListBox#cursor_row. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3207 {
3208 int i = count;
3209
3210 iter = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (box->cursor_row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
3211
3212 while (i < 0 && iter != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3213 {
3214 iter = gtk_list_box_get_previous_visiblecxx . . $ gtk_list_box_get_previous_visible(17eef945c6776c06). (box, iter);
3215 i = i + 1;
3216 }
3217 while (i > 0 && iter != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3218 {
3219 iter = gtk_list_box_get_next_visiblecxx . . $ gtk_list_box_get_next_visible(17eef945c6776c06). (box, iter);
3220 i = i - 1;
3221 }
3222
3223 if (iter != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
3224 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
3225 }
3226 break;
3227 case GTK_MOVEMENT_PAGEScxx . . $ GTK_MOVEMENT_PAGES.:
3228 page_size = 100;
3229 if (box->adjustmentcxx . . $ _GtkListBox#adjustment. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3230 page_size = gtk_adjustment_get_page_incrementcxx . . $ gtk_adjustment_get_page_increment(23c94c3b49116bb3). (box->adjustmentcxx . . $ _GtkListBox#adjustment.);
3231
3232 if (box->cursor_rowcxx . . $ _GtkListBox#cursor_row. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3233 {
3234 start_y = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (box->cursor_row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.;
3235 height = gtk_widget_get_heightcxx . . $ gtk_widget_get_height(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box));
3236 end_y = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (start_y + page_size * count, 0, height - 1);
3237 row = gtk_list_box_get_row_at_ycxx . . $ gtk_list_box_get_row_at_y(f694cf0d427bb76b). (box, end_y);
3238
3239 if (!row)
3240 {
3241 GSequenceItercxx . . $ GSequenceIter# *cursor_iter;
3242 GSequenceItercxx . . $ GSequenceIter# *next_iter;
3243
3244 if (count > 0)
3245 {
3246 cursor_iter = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (box->cursor_row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
3247 next_iter = gtk_list_box_get_last_visiblecxx . . $ gtk_list_box_get_last_visible(17eef945c6776c06). (box, cursor_iter);
3248
3249 if (next_iter)
3250 {
3251 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (next_iter);
3252 end_y = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.;
3253 }
3254 }
3255 else
3256 {
3257 row = gtk_list_box_get_row_at_indexcxx . . $ gtk_list_box_get_row_at_index(f694cf0d427bb76b). (box, 0);
3258 end_y = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.;
3259 }
3260 }
3261 else if (row == box->cursor_rowcxx . . $ _GtkListBox#cursor_row.)
3262 {
3263 iter = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.;
3264
3265 /* Move at least one row. This is important when the cursor_row's height is
3266 * greater than page_size */
3267 if (count < 0)
3268 iter = g_sequence_iter_prevcxx . . $ g_sequence_iter_prev(5ad1731c2fb84d98). (iter);
3269 else
3270 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter);
3271
3272 if (!g_sequence_iter_is_begincxx . . $ g_sequence_iter_is_begin(5b8ca6ef87da3483). (iter) && !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
3273 {
3274 row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
3275 end_y = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->ycxx . . $ $anonymous_type_553fa5f4da0de475_0#y.;
3276 }
3277 }
3278
3279 if (end_y != start_y && box->adjustmentcxx . . $ _GtkListBox#adjustment. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3280 gtk_adjustment_animate_to_valuecxx . . $ gtk_adjustment_animate_to_value(7d3846fa90c40411). (box->adjustmentcxx . . $ _GtkListBox#adjustment., end_y);
3281 }
3282 break;
3283 default:
3284 return;
3285 }
3286
3287 if (row == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || row == box->cursor_rowcxx . . $ _GtkListBox#cursor_row.)
3288 {
3289 GtkDirectionTypecxx . . $ GtkDirectionType# direction = count < 0 ? GTK_DIR_UPcxx . . $ GTK_DIR_UP. : GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN.;
3290
3291 if (!gtk_widget_keynav_failedcxx . . $ gtk_widget_keynav_failed(8bb1c65c821a69cd). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), direction))
3292 {
3293 GtkWidgetcxx . . $ GtkWidget# *toplevel = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (gtk_widget_get_root (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box)));
3294
3295 if (toplevel)
3296 gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (toplevel,
3297 direction == GTK_DIR_UPcxx . . $ GTK_DIR_UP. ?
3298 GTK_DIR_TAB_BACKWARDcxx . . $ GTK_DIR_TAB_BACKWARD. :
3299 GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.);
3300
3301 }
3302
3303 return;
3304 }
3305
3306 gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (box, row, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
3307 if (!modify)
3308 gtk_list_box_update_selectioncxx . . $ `gtk/gtklistbox.c:1815:9`! (box, row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, extend);
3309 }
3310
3311
3312 /**
3313 * gtk_list_box_row_new:
3314 *
3315 * Creates a new `GtkListBoxRow`.
3316 *
3317 * Returns: a new `GtkListBoxRow`
3318 */
3319 GtkWidgetcxx . . $ GtkWidget# *
3320 gtk_list_box_row_newcxx . . $ gtk_list_box_row_new(2369ce5e9f2c7dfd). (void)
3321 {
3322 return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:41:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
3323 }
3324
3325 /**
3326 * gtk_list_box_row_set_child:
3327 * @row: a `GtkListBoxRow`
3328 * @child: (nullable): the child widget
3329 *
3330 * Sets the child widget of @self.
3331 */
3332 void
3333 gtk_list_box_row_set_childcxx . . $ gtk_list_box_row_set_child(2dc50f1b58a199a8). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
3334 GtkWidgetcxx . . $ GtkWidget# *child)
3335 {
3336 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3337
3338 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3339 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`! || priv->child == child || gtk_widget_get_parent (child) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
3340
3341 if (priv->childcxx . . $ $anonymous_type_553fa5f4da0de475_0#child. == child)
3342 return;
3343
3344 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&priv->child, gtk_widget_unparent);
3345
3346 priv->childcxx . . $ $anonymous_type_553fa5f4da0de475_0#child. = child;
3347 if (child)
3348 gtk_widget_set_parentcxx . . $ gtk_widget_set_parent(4f261c0971c30e7). (child, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
3349
3350 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (row), row_propertiescxx . . $ row_properties.[ROW_PROP_CHILDcxx . . $ ROW_PROP_CHILD.]);
3351 }
3352
3353 /**
3354 * gtk_list_box_row_get_child:
3355 * @row: a `GtkListBoxRow`
3356 *
3357 * Gets the child widget of @row.
3358 *
3359 * Returns: (nullable) (transfer none): the child widget of @row
3360 */
3361 GtkWidgetcxx . . $ GtkWidget# *
3362 gtk_list_box_row_get_childcxx . . $ gtk_list_box_row_get_child(502f7da618c20acb). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3363 {
3364 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->childcxx . . $ $anonymous_type_553fa5f4da0de475_0#child.;
3365 }
3366
3367 static void
3368 gtk_list_box_row_set_focuscxx . . $ gtk_list_box_row_set_focus(1ffc39f62b616d8e). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3369 {
3370 GtkListBoxcxx . . $ GtkListBox# *box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3371
3372 if (!box)
3373 return;
3374
3375 gtk_list_box_update_selectioncxx . . $ `gtk/gtklistbox.c:1815:9`! (box, row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3376 }
3377
3378 static gbooleancxx . . $ gboolean#
3379 gtk_list_box_row_focuscxx . . $ gtk_list_box_row_focus(8bb1c65c821a69cd). (GtkWidgetcxx . . $ GtkWidget# *widget,
3380 GtkDirectionTypecxx . . $ GtkDirectionType# direction)
3381 {
3382 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (widget);
3383 gbooleancxx . . $ gboolean# had_focus = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3384 GtkWidgetcxx . . $ GtkWidget# *child = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->childcxx . . $ $anonymous_type_553fa5f4da0de475_0#child.;
3385 GtkWidgetcxx . . $ GtkWidget# *focus_child = gtk_widget_get_focus_childcxx . . $ gtk_widget_get_focus_child(ef973e1b01680070). (widget);
3386
3387 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (widget, "has-focus", &had_focus, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
3388
3389 /* If a child has focus, always try to navigate within that first. */
3390 if (focus_child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3391 {
3392 if (gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (focus_child, direction))
3393 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3394 }
3395
3396 /* Otherwise, decide based on the direction. */
3397 if (direction == GTK_DIR_RIGHTcxx . . $ GTK_DIR_RIGHT. || direction == GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD. || direction == GTK_DIR_DOWNcxx . . $ GTK_DIR_DOWN.)
3398 {
3399 /* If a child was focused and focus couldn't be moved within that (see
3400 * above), let focus leave. */
3401 if (focus_child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3402 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3403
3404 /* If the row is not focused, try to focus it. */
3405 if (!had_focus && gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (widget))
3406 {
3407 gtk_list_box_row_set_focuscxx . . $ gtk_list_box_row_set_focus(1ffc39f62b616d8e). (row);
3408 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3409 }
3410
3411 /* Finally, try to move focus into the child. */
3412 if (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (child, direction))
3413 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3414
3415 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3416 }
3417 else if (direction == GTK_DIR_LEFTcxx . . $ GTK_DIR_LEFT. || direction == GTK_DIR_TAB_BACKWARDcxx . . $ GTK_DIR_TAB_BACKWARD. || direction == GTK_DIR_UPcxx . . $ GTK_DIR_UP.)
3418 {
3419 /* If the row itself is focused, let focus leave it. */
3420 if (had_focus)
3421 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3422
3423 /* Otherwise, let focus enter the child widget, if possible. */
3424 if (child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (child, direction))
3425 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3426
3427 /* If that didn't work, try to focus the row itself. */
3428 if (gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (widget))
3429 {
3430 gtk_list_box_row_set_focuscxx . . $ gtk_list_box_row_set_focus(1ffc39f62b616d8e). (row);
3431 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3432 }
3433
3434 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3435 }
3436
3437 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3438 }
3439
3440 static void
3441 gtk_list_box_row_activatecxx . . $ gtk_list_box_row_activate(1ffc39f62b616d8e). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3442 {
3443 GtkListBoxcxx . . $ GtkListBox# *box;
3444
3445 box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3446 if (box)
3447 gtk_list_box_select_and_activatecxx . . $ `gtk/gtklistbox.c:1905:9`! (box, row);
3448 }
3449
3450 static void
3451 gtk_list_box_row_showcxx . . $ gtk_list_box_row_show(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
3452 {
3453 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (widget);
3454 GtkListBoxcxx . . $ GtkListBox# *box;
3455
3456 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_list_box_row_parent_class)->showcxx . . $ _GtkWidgetClass#show. (widget);
3457
3458 box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3459 if (box)
3460 gtk_list_box_row_visibility_changedcxx . . $ gtk_list_box_row_visibility_changed(6e1663ed5ab031d8). (box, row);
3461 }
3462
3463 static void
3464 gtk_list_box_row_hidecxx . . $ gtk_list_box_row_hide(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
3465 {
3466 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (widget);
3467 GtkListBoxcxx . . $ GtkListBox# *box;
3468
3469 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_list_box_row_parent_class)->hidecxx . . $ _GtkWidgetClass#hide. (widget);
3470
3471 box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3472 if (box)
3473 gtk_list_box_row_visibility_changedcxx . . $ gtk_list_box_row_visibility_changed(6e1663ed5ab031d8). (box, row);
3474 }
3475
3476 static void
3477 gtk_list_box_row_rootcxx . . $ gtk_list_box_row_root(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
3478 {
3479 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (widget);
3480 GtkListBoxcxx . . $ GtkListBox# *box;
3481
3482 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_list_box_row_parent_class)->rootcxx . . $ _GtkWidgetClass#root. (widget);
3483
3484 box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3485 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (box, row);
3486 }
3487
3488 /**
3489 * gtk_list_box_row_changed:
3490 * @row: a `GtkListBoxRow`
3491 *
3492 * Marks @row as changed, causing any state that depends on this
3493 * to be updated.
3494 *
3495 * This affects sorting, filtering and headers.
3496 *
3497 * Note that calls to this method must be in sync with the data
3498 * used for the row functions. For instance, if the list is
3499 * mirroring some external data set, and *two* rows changed in the
3500 * external data set then when you call gtk_list_box_row_changed()
3501 * on the first row the sort function must only read the new data
3502 * for the first of the two changed rows, otherwise the resorting
3503 * of the rows will be wrong.
3504 *
3505 * This generally means that if you don’t fully control the data
3506 * model you have to duplicate the data that affects the listbox
3507 * row functions into the row widgets themselves. Another alternative
3508 * is to call [[email protected]_sort] on any model change,
3509 * but that is more expensive.
3510 */
3511 void
3512 gtk_list_box_row_changedcxx . . $ gtk_list_box_row_changed(1ffc39f62b616d8e). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3513 {
3514 GtkListBoxcxx . . $ GtkListBox# *box;
3515
3516 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3517
3518 box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3519 if (box)
3520 gtk_list_box_got_row_changedcxx . . $ gtk_list_box_got_row_changed(6e1663ed5ab031d8). (box, row);
3521 }
3522
3523 /**
3524 * gtk_list_box_row_get_header:
3525 * @row: a `GtkListBoxRow`
3526 *
3527 * Returns the current header of the @row.
3528 *
3529 * This can be used
3530 * in a [[email protected]] to see if
3531 * there is a header set already, and if so to update
3532 * the state of it.
3533 *
3534 * Returns: (transfer none) (nullable): the current header
3535 */
3536 GtkWidgetcxx . . $ GtkWidget# *
3537 gtk_list_box_row_get_headercxx . . $ gtk_list_box_row_get_header(502f7da618c20acb). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3538 {
3539 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
3540
3541 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.;
3542 }
3543
3544 /**
3545 * gtk_list_box_row_set_header:
3546 * @row: a `GtkListBoxRow`
3547 * @header: (nullable): the header
3548 *
3549 * Sets the current header of the @row.
3550 *
3551 * This is only allowed to be called
3552 * from a [[email protected]].
3553 * It will replace any existing header in the row,
3554 * and be shown in front of the row in the listbox.
3555 */
3556 void
3557 gtk_list_box_row_set_headercxx . . $ gtk_list_box_row_set_header(2dc50f1b58a199a8). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
3558 GtkWidgetcxx . . $ GtkWidget# *header)
3559 {
3560 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3561
3562 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3563 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (header == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (header));
3564
3565 if (priv->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.)
3566 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header.);
3567
3568 priv->headercxx . . $ $anonymous_type_553fa5f4da0de475_0#header. = header;
3569
3570 if (header)
3571 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (header);
3572 }
3573
3574 /**
3575 * gtk_list_box_row_get_index:
3576 * @row: a `GtkListBoxRow`
3577 *
3578 * Gets the current index of the @row in its `GtkListBox` container.
3579 *
3580 * Returns: the index of the @row, or -1 if the @row is not in a listbox
3581 */
3582 int
3583 gtk_list_box_row_get_indexcxx . . $ gtk_list_box_row_get_index(1bf02d92bfb6b5de). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3584 {
3585 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3586
3587 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row), -1);
3588
3589 if (priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
3590 return g_sequence_iter_get_positioncxx . . $ g_sequence_iter_get_position(5b8ca6ef87da3483). (priv->itercxx . . $ $anonymous_type_553fa5f4da0de475_0#iter.);
3591
3592 return -1;
3593 }
3594
3595 /**
3596 * gtk_list_box_row_is_selected:
3597 * @row: a `GtkListBoxRow`
3598 *
3599 * Returns whether the child is currently selected in its
3600 * `GtkListBox` container.
3601 *
3602 * Returns: %TRUE if @row is selected
3603 */
3604 gbooleancxx . . $ gboolean#
3605 gtk_list_box_row_is_selectedcxx . . $ gtk_list_box_row_is_selected(1bf02d92bfb6b5de). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3606 {
3607 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3608
3609 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.;
3610 }
3611
3612 /*< private >
3613 * gtk_list_box_update_row:
3614 * @box: the list box
3615 * @row: the row
3616 *
3617 * Update the visual and accessible representation of a row.
3618 */
3619 static void
3620 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (GtkListBoxcxx . . $ GtkListBox# *box,
3621 GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3622 {
3623 gbooleancxx . . $ gboolean# can_select;
3624
3625 if (box && box->selection_modecxx . . $ _GtkListBox#selection_mode. != GTK_SELECTION_NONEcxx . . $ GTK_SELECTION_NONE.)
3626 can_select = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3627 else
3628 can_select = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3629
3630 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable. ||
3631 (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. && can_select))
3632 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), "activatable");
3633 else
3634 gtk_widget_remove_css_classcxx . . $ gtk_widget_remove_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), "activatable");
3635
3636 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. && can_select)
3637 gtk_accessible_update_statecxx . . $ gtk_accessible_update_state(a322e699be08ab8a). (GTK_ACCESSIBLEcxx . . $ GTK_ACCESSIBLE(4ecffd44f086533a). (row),
3638 GTK_ACCESSIBLE_STATE_SELECTEDcxx . . $ GTK_ACCESSIBLE_STATE_SELECTED., ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectedcxx . . $ $anonymous_type_553fa5f4da0de475_0#selected.,
3639 -1);
3640 else
3641 gtk_accessible_reset_statecxx . . $ gtk_accessible_reset_state(a21a779102f74de1). (GTK_ACCESSIBLEcxx . . $ GTK_ACCESSIBLE(4ecffd44f086533a). (row),
3642 GTK_ACCESSIBLE_STATE_SELECTEDcxx . . $ GTK_ACCESSIBLE_STATE_SELECTED.);
3643 }
3644
3645 static void
3646 gtk_list_box_update_rowscxx . . $ gtk_list_box_update_rows(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
3647 {
3648 GSequenceItercxx . . $ GSequenceIter# *iter;
3649
3650 for (iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
3651 !g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter);
3652 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter))
3653 {
3654 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
3655 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (box, row);
3656 }
3657 }
3658
3659 /**
3660 * gtk_list_box_row_set_activatable:
3661 * @row: a `GtkListBoxRow`
3662 * @activatable: %TRUE to mark the row as activatable
3663 *
3664 * Set whether the row is activatable.
3665 */
3666 void
3667 gtk_list_box_row_set_activatablecxx . . $ gtk_list_box_row_set_activatable(f571d033dd69c4c3). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
3668 gbooleancxx . . $ gboolean# activatable)
3669 {
3670 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3671
3672 activatable = activatable != FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3673
3674 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable. != activatable)
3675 {
3676 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable. = activatable;
3677
3678 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row), row);
3679 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (row), row_propertiescxx . . $ row_properties.[ROW_PROP_ACTIVATABLEcxx . . $ ROW_PROP_ACTIVATABLE.]);
3680 }
3681 }
3682
3683 /**
3684 * gtk_list_box_row_get_activatable:
3685 * @row: a `GtkListBoxRow`
3686 *
3687 * Gets whether the row is activatable.
3688 *
3689 * Returns: %TRUE if the row is activatable
3690 */
3691 gbooleancxx . . $ gboolean#
3692 gtk_list_box_row_get_activatablecxx . . $ gtk_list_box_row_get_activatable(1bf02d92bfb6b5de). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3693 {
3694 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
3695
3696 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable.;
3697 }
3698
3699 /**
3700 * gtk_list_box_row_set_selectable:
3701 * @row: a `GtkListBoxRow`
3702 * @selectable: %TRUE to mark the row as selectable
3703 *
3704 * Set whether the row can be selected.
3705 */
3706 void
3707 gtk_list_box_row_set_selectablecxx . . $ gtk_list_box_row_set_selectable(f571d033dd69c4c3). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row,
3708 gbooleancxx . . $ gboolean# selectable)
3709 {
3710 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row));
3711
3712 selectable = selectable != FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3713
3714 if (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. != selectable)
3715 {
3716 if (!selectable)
3717 gtk_list_box_row_set_selectedcxx . . $ gtk_list_box_row_set_selected(d534517e3e51ff8d). (row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3718
3719 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. = selectable;
3720
3721 gtk_list_box_update_rowcxx . . $ gtk_list_box_update_row(6e1663ed5ab031d8). (gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row), row);
3722
3723 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (row), row_propertiescxx . . $ row_properties.[ROW_PROP_SELECTABLEcxx . . $ ROW_PROP_SELECTABLE.]);
3724 }
3725 }
3726
3727 /**
3728 * gtk_list_box_row_get_selectable:
3729 * @row: a `GtkListBoxRow`
3730 *
3731 * Gets whether the row can be selected.
3732 *
3733 * Returns: %TRUE if the row is selectable
3734 */
3735 gbooleancxx . . $ gboolean#
3736 gtk_list_box_row_get_selectablecxx . . $ gtk_list_box_row_get_selectable(1bf02d92bfb6b5de). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3737 {
3738 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:44:9`! (row), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
3739
3740 return ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable.;
3741 }
3742
3743 static void
3744 gtk_list_box_row_set_action_namecxx . . $ gtk_list_box_row_set_action_name(39e9d00c5c2c9a37). (GtkActionablecxx . . $ GtkActionable# *actionable,
3745 const char *action_name)
3746 {
3747 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (actionable);
3748 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3749
3750 if (!priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.)
3751 priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper. = gtk_action_helper_newcxx . . $ gtk_action_helper_new(1fe6472b62321f5a). (actionable);
3752
3753 gtk_action_helper_set_action_namecxx . . $ gtk_action_helper_set_action_name(6b92d88ae336b7f9). (priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper., action_name);
3754 }
3755
3756 static void
3757 gtk_list_box_row_set_action_target_valuecxx . . $ gtk_list_box_row_set_action_target_value(c1201f03c921791a). (GtkActionablecxx . . $ GtkActionable# *actionable,
3758 GVariantcxx . . $ GVariant# *action_target)
3759 {
3760 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (actionable);
3761 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3762
3763 if (!priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.)
3764 priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper. = gtk_action_helper_newcxx . . $ gtk_action_helper_new(1fe6472b62321f5a). (actionable);
3765
3766 gtk_action_helper_set_action_target_valuecxx . . $ gtk_action_helper_set_action_target_value(8f9c9d1e9dacb603). (priv->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper., action_target);
3767 }
3768
3769 static void
3770 gtk_list_box_row_get_propertycxx . . $ gtk_list_box_row_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *obj,
3771 guintcxx . . $ guint# property_id,
3772 GValuecxx . . $ GValue# *value,
3773 GParamSpeccxx . . $ GParamSpec# *pspec)
3774 {
3775 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (obj);
3776
3777 switch (property_id)
3778 {
3779 case ROW_PROP_ACTIVATABLEcxx . . $ ROW_PROP_ACTIVATABLE.:
3780 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, gtk_list_box_row_get_activatablecxx . . $ gtk_list_box_row_get_activatable(1bf02d92bfb6b5de). (row));
3781 break;
3782 case ROW_PROP_SELECTABLEcxx . . $ ROW_PROP_SELECTABLE.:
3783 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, gtk_list_box_row_get_selectablecxx . . $ gtk_list_box_row_get_selectable(1bf02d92bfb6b5de). (row));
3784 break;
3785 case ROW_PROP_ACTION_NAMEcxx . . $ ROW_PROP_ACTION_NAME.:
3786 g_value_set_stringcxx . . $ g_value_set_string(65b9ea7708b82b9b). (value, gtk_action_helper_get_action_namecxx . . $ gtk_action_helper_get_action_name(47aa6e242d303022). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.));
3787 break;
3788 case ROW_PROP_ACTION_TARGETcxx . . $ ROW_PROP_ACTION_TARGET.:
3789 g_value_set_variantcxx . . $ g_value_set_variant(d1a15ae1b11a2e3e). (value, gtk_action_helper_get_action_target_valuecxx . . $ gtk_action_helper_get_action_target_value(561dfa610e46c748). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.));
3790 break;
3791 case ROW_PROP_CHILDcxx . . $ ROW_PROP_CHILD.:
3792 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, gtk_list_box_row_get_childcxx . . $ gtk_list_box_row_get_child(502f7da618c20acb). (row));
3793 break;
3794 default:
3795 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (obj, property_id, pspec);
3796 break;
3797 }
3798 }
3799
3800 static void
3801 gtk_list_box_row_set_propertycxx . . $ gtk_list_box_row_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *obj,
3802 guintcxx . . $ guint# property_id,
3803 const GValuecxx . . $ GValue# *value,
3804 GParamSpeccxx . . $ GParamSpec# *pspec)
3805 {
3806 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (obj);
3807
3808 switch (property_id)
3809 {
3810 case ROW_PROP_ACTIVATABLEcxx . . $ ROW_PROP_ACTIVATABLE.:
3811 gtk_list_box_row_set_activatablecxx . . $ gtk_list_box_row_set_activatable(f571d033dd69c4c3). (row, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
3812 break;
3813 case ROW_PROP_SELECTABLEcxx . . $ ROW_PROP_SELECTABLE.:
3814 gtk_list_box_row_set_selectablecxx . . $ gtk_list_box_row_set_selectable(f571d033dd69c4c3). (row, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
3815 break;
3816 case ROW_PROP_ACTION_NAMEcxx . . $ ROW_PROP_ACTION_NAME.:
3817 gtk_list_box_row_set_action_namecxx . . $ gtk_list_box_row_set_action_name(39e9d00c5c2c9a37). (GTK_ACTIONABLEcxx . . $ `gtk/gtkactionable.h:28:9`! (row), g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (value));
3818 break;
3819 case ROW_PROP_ACTION_TARGETcxx . . $ ROW_PROP_ACTION_TARGET.:
3820 gtk_list_box_row_set_action_target_valuecxx . . $ gtk_list_box_row_set_action_target_value(c1201f03c921791a). (GTK_ACTIONABLEcxx . . $ `gtk/gtkactionable.h:28:9`! (row), g_value_get_variantcxx . . $ g_value_get_variant(15d62b30de5f1cbd). (value));
3821 break;
3822 case ROW_PROP_CHILDcxx . . $ ROW_PROP_CHILD.:
3823 gtk_list_box_row_set_childcxx . . $ gtk_list_box_row_set_child(2dc50f1b58a199a8). (row, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value));
3824 break;
3825 default:
3826 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (obj, property_id, pspec);
3827 break;
3828 }
3829 }
3830
3831 static const char *
3832 gtk_list_box_row_get_action_namecxx . . $ gtk_list_box_row_get_action_name(fbdd32c1ca7119f8). (GtkActionablecxx . . $ GtkActionable# *actionable)
3833 {
3834 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (actionable);
3835
3836 return gtk_action_helper_get_action_namecxx . . $ gtk_action_helper_get_action_name(47aa6e242d303022). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.);
3837 }
3838
3839 static GVariantcxx . . $ GVariant# *
3840 gtk_list_box_row_get_action_target_valuecxx . . $ gtk_list_box_row_get_action_target_value(2f1a9f6a6084d284). (GtkActionablecxx . . $ GtkActionable# *actionable)
3841 {
3842 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (actionable);
3843
3844 return gtk_action_helper_get_action_target_valuecxx . . $ gtk_action_helper_get_action_target_value(561dfa610e46c748). (ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->action_helpercxx . . $ $anonymous_type_553fa5f4da0de475_0#action_helper.);
3845 }
3846
3847 static void
3848 gtk_list_box_row_actionable_iface_initcxx . . $ gtk_list_box_row_actionable_iface_init(16d04ea56a00f533). (GtkActionableInterfacecxx . . $ GtkActionableInterface# *iface)
3849 {
3850 iface->get_action_namecxx . . $ _GtkActionableInterface#get_action_name. = gtk_list_box_row_get_action_namecxx . . $ gtk_list_box_row_get_action_name(fbdd32c1ca7119f8).;
3851 iface->set_action_namecxx . . $ _GtkActionableInterface#set_action_name. = gtk_list_box_row_set_action_namecxx . . $ gtk_list_box_row_set_action_name(39e9d00c5c2c9a37).;
3852 iface->get_action_target_valuecxx . . $ _GtkActionableInterface#get_action_target_value. = gtk_list_box_row_get_action_target_valuecxx . . $ gtk_list_box_row_get_action_target_value(2f1a9f6a6084d284).;
3853 iface->set_action_target_valuecxx . . $ _GtkActionableInterface#set_action_target_value. = gtk_list_box_row_set_action_target_valuecxx . . $ gtk_list_box_row_set_action_target_value(c1201f03c921791a).;
3854 }
3855
3856 static void
3857 gtk_list_box_row_finalizecxx . . $ gtk_list_box_row_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *obj)
3858 {
3859 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (obj))->header);
3860
3861 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_list_box_row_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (obj);
3862 }
3863
3864 static void
3865 gtk_list_box_row_disposecxx . . $ gtk_list_box_row_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
3866 {
3867 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (object);
3868 GtkListBoxRowPrivatecxx . . $ GtkListBoxRowPrivate# *priv = ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row);
3869
3870 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&priv->action_helper);
3871 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&priv->child, gtk_widget_unparent);
3872
3873 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_list_box_row_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
3874 }
3875
3876 static gbooleancxx . . $ gboolean#
3877 gtk_list_box_row_grab_focuscxx . . $ gtk_list_box_row_grab_focus(9247ef2dc26c5426). (GtkWidgetcxx . . $ GtkWidget# *widget)
3878 {
3879 GtkListBoxRowcxx . . $ GtkListBoxRow# *row = GTK_LIST_BOX_ROWcxx . . $ `gtk/gtklistbox.h:42:9`! (widget);
3880 GtkListBoxcxx . . $ GtkListBox# *box = gtk_list_box_row_get_boxcxx . . $ gtk_list_box_row_get_box(de537c52ee8f1ff6). (row);
3881
3882 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (box != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3883
3884 if (gtk_widget_grab_focus_selfcxx . . $ gtk_widget_grab_focus_self(9247ef2dc26c5426). (widget))
3885 {
3886 if (box->cursor_rowcxx . . $ _GtkListBox#cursor_row. != row)
3887 gtk_list_box_update_cursorcxx . . $ gtk_list_box_update_cursor(7792ec58b97ef62e). (box, row, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
3888
3889 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3890 }
3891
3892 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
3893 }
3894
3895 static void
3896 gtk_list_box_row_class_initcxx . . $ gtk_list_box_row_class_init(33b9eb49d5c038c4). (GtkListBoxRowClasscxx . . $ GtkListBoxRowClass# *klass)
3897 {
3898 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
3899 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (klass);
3900
3901 object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_list_box_row_get_propertycxx . . $ gtk_list_box_row_get_property(cee2c52f22407c66).;
3902 object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_list_box_row_set_propertycxx . . $ gtk_list_box_row_set_property(d7c4bb29f36c0dc4).;
3903 object_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_list_box_row_finalizecxx . . $ gtk_list_box_row_finalize(6087475fa43034d3).;
3904 object_class->disposecxx . . $ _GObjectClass#dispose. = gtk_list_box_row_disposecxx . . $ gtk_list_box_row_dispose(6087475fa43034d3).;
3905
3906 widget_class->rootcxx . . $ _GtkWidgetClass#root. = gtk_list_box_row_rootcxx . . $ gtk_list_box_row_root(d7cf858254b37903).;
3907 widget_class->showcxx . . $ _GtkWidgetClass#show. = gtk_list_box_row_showcxx . . $ gtk_list_box_row_show(d7cf858254b37903).;
3908 widget_class->hidecxx . . $ _GtkWidgetClass#hide. = gtk_list_box_row_hidecxx . . $ gtk_list_box_row_hide(d7cf858254b37903).;
3909 widget_class->focuscxx . . $ _GtkWidgetClass#focus. = gtk_list_box_row_focuscxx . . $ gtk_list_box_row_focus(8bb1c65c821a69cd).;
3910 widget_class->grab_focuscxx . . $ _GtkWidgetClass#grab_focus. = gtk_list_box_row_grab_focuscxx . . $ gtk_list_box_row_grab_focus(9247ef2dc26c5426).;
3911
3912 klass->activatecxx . . $ _GtkListBoxRowClass#activate. = gtk_list_box_row_activatecxx . . $ gtk_list_box_row_activate(1ffc39f62b616d8e).;
3913
3914 /**
3915 * GtkListBoxRow::activate:
3916 *
3917 * This is a keybinding signal, which will cause this row to be activated.
3918 *
3919 * If you want to be notified when the user activates a row (by key or not),
3920 * use the [[email protected]::row-activated] signal on the row’s parent
3921 * `GtkListBox`.
3922 */
3923 row_signalscxx . . $ row_signals.[ROW__ACTIVATEcxx . . $ ROW__ACTIVATE.] =
3924 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("activate"),
3925 G_OBJECT_CLASS_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:117:9`! (object_class),
3926 G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION.,
3927 G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkListBoxRowClass, activate),
3928 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`!,
3929 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
3930 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
3931
3932 gtk_widget_class_set_activate_signalcxx . . $ gtk_widget_class_set_activate_signal(53d965ee418c3db). (widget_class, row_signalscxx . . $ row_signals.[ROW__ACTIVATEcxx . . $ ROW__ACTIVATE.]);
3933
3934 /**
3935 * GtkListBoxRow:activatable:
3936 *
3937 * Determines whether the ::row-activated
3938 * signal will be emitted for this row.
3939 */
3940 row_propertiescxx . . $ row_properties.[ROW_PROP_ACTIVATABLEcxx . . $ ROW_PROP_ACTIVATABLE.] =
3941 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("activatable", 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`!,
3942 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!,
3943 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
3944
3945 /**
3946 * GtkListBoxRow:selectable:
3947 *
3948 * Determines whether this row can be selected.
3949 */
3950 row_propertiescxx . . $ row_properties.[ROW_PROP_SELECTABLEcxx . . $ ROW_PROP_SELECTABLE.] =
3951 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("selectable", 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`!,
3952 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!,
3953 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
3954
3955 /**
3956 * GtkListBoxRow:child:
3957 *
3958 * The child widget.
3959 */
3960 row_propertiescxx . . $ row_properties.[ROW_PROP_CHILDcxx . . $ ROW_PROP_CHILD.] =
3961 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`!,
3962 GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!,
3963 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.);
3964
3965 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, LAST_ROW_PROPERTYcxx . . $ LAST_ROW_PROPERTY., row_propertiescxx . . $ row_properties.);
3966
3967 g_object_class_override_propertycxx . . $ g_object_class_override_property(3aa56717d1bf1f20). (object_class, ROW_PROP_ACTION_NAMEcxx . . $ ROW_PROP_ACTION_NAME., "action-name");
3968 g_object_class_override_propertycxx . . $ g_object_class_override_property(3aa56717d1bf1f20). (object_class, ROW_PROP_ACTION_TARGETcxx . . $ ROW_PROP_ACTION_TARGET., "action-target");
3969
3970 gtk_widget_class_set_layout_manager_typecxx . . $ gtk_widget_class_set_layout_manager_type(2a839cbf4b1b4191). (widget_class, GTK_TYPE_BIN_LAYOUTcxx . . $ `gtk/gtkbinlayout.h:23:9`!);
3971 gtk_widget_class_set_css_namecxx . . $ gtk_widget_class_set_css_name(6333614c746ab65a). (widget_class, I_cxx . . $ `gdk/gdkprivate.h:35:9`!("row"));
3972 gtk_widget_class_set_accessible_rolecxx . . $ gtk_widget_class_set_accessible_role(a3df1a29abf28273). (widget_class, GTK_ACCESSIBLE_ROLE_LIST_ITEMcxx . . $ GTK_ACCESSIBLE_ROLE_LIST_ITEM.);
3973 }
3974
3975 static void
3976 gtk_list_box_row_initcxx . . $ gtk_list_box_row_init(1ffc39f62b616d8e). (GtkListBoxRowcxx . . $ GtkListBoxRow# *row)
3977 {
3978 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->activatablecxx . . $ $anonymous_type_553fa5f4da0de475_0#activatable. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3979 ROW_PRIVcxx . . $ `gtk/gtklistbox.c:245:9`! (row)->selectablecxx . . $ $anonymous_type_553fa5f4da0de475_0#selectable. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
3980
3981 gtk_widget_set_focusablecxx . . $ gtk_widget_set_focusable(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
3982 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row), "activatable");
3983 }
3984
3985 static void
3986 gtk_list_box_buildable_add_childcxx . . $ gtk_list_box_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable,
3987 GtkBuildercxx . . $ GtkBuilder# *builder,
3988 GObjectcxx . . $ GObject# *child,
3989 const char *type)
3990 {
3991 if (type && strcmpcxx . . $ strcmp(5ae29d726ae57f88). (type, "placeholder") == 0)
3992 gtk_list_box_set_placeholdercxx . . $ gtk_list_box_set_placeholder(80bd4d01e1352ed1). (GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (buildable), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child));
3993 else if (GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child))
3994 gtk_list_box_insertcxx . . $ gtk_list_box_insert(bdb302834669dfad). (GTK_LIST_BOXcxx . . $ `gtk/gtklistbox.h:34:9`! (buildable), GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child), -1);
3995 else
3996 parent_buildable_ifacecxx . . $ parent_buildable_iface.->add_childcxx . . $ _GtkBuildableIface#add_child. (buildable, builder, child, type);
3997 }
3998
3999 static void
4000 gtk_list_box_buildable_interface_initcxx . . $ gtk_list_box_buildable_interface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface)
4001 {
4002 parent_buildable_ifacecxx . . $ parent_buildable_iface. = g_type_interface_peek_parentcxx . . $ g_type_interface_peek_parent(9f162e79bfc6c74). (iface);
4003
4004 iface->add_childcxx . . $ _GtkBuildableIface#add_child. = gtk_list_box_buildable_add_childcxx . . $ gtk_list_box_buildable_add_child(784606fbae7a2cc).;
4005 }
4006
4007 static void
4008 gtk_list_box_bound_model_changedcxx . . $ gtk_list_box_bound_model_changed(22f2e28664e4f9e5). (GListModelcxx . . $ GListModel# *list,
4009 guintcxx . . $ guint# position,
4010 guintcxx . . $ guint# removed,
4011 guintcxx . . $ guint# added,
4012 gpointercxx . . $ gpointer# user_data)
4013 {
4014 GtkListBoxcxx . . $ GtkListBox# *box = user_data;
4015 guintcxx . . $ guint# i;
4016
4017 while (removed--)
4018 {
4019 GtkListBoxRowcxx . . $ GtkListBoxRow# *row;
4020
4021 row = gtk_list_box_get_row_at_indexcxx . . $ gtk_list_box_get_row_at_index(f694cf0d427bb76b). (box, position);
4022 gtk_list_box_removecxx . . $ gtk_list_box_remove(80bd4d01e1352ed1). (box, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (row));
4023 }
4024
4025 for (i = 0; i < added; i++)
4026 {
4027 GObjectcxx . . $ GObject# *item;
4028 GtkWidgetcxx . . $ GtkWidget# *widget;
4029
4030 item = g_list_model_get_itemcxx . . $ g_list_model_get_item(9715a6516b430a30). (list, position + i);
4031 widget = box->create_widget_funccxx . . $ _GtkListBox#create_widget_func. (item, box->create_widget_func_datacxx . . $ _GtkListBox#create_widget_func_data.);
4032
4033 /* We allow the create_widget_func to either return a full
4034 * reference or a floating reference. If we got the floating
4035 * reference, then turn it into a full reference now. That means
4036 * that gtk_list_box_insert() will take another full reference.
4037 * Finally, we'll release this full reference below, leaving only
4038 * the one held by the box.
4039 */
4040 if (g_object_is_floatingcxx . . $ g_object_is_floating(dedf1e9b1c614a07). (widget))
4041 g_object_ref_sinkcxx . . $ `<external>/1341695927569185362/gobject.h:534:9`! (widget);
4042
4043 gtk_list_box_insertcxx . . $ gtk_list_box_insert(bdb302834669dfad). (box, widget, position + i);
4044
4045 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (widget);
4046 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (item);
4047 }
4048 }
4049
4050 static void
4051 gtk_list_box_check_model_compatcxx . . $ gtk_list_box_check_model_compat(5500cc82b552208f). (GtkListBoxcxx . . $ GtkListBox# *box)
4052 {
4053 if (box->bound_modelcxx . . $ _GtkListBox#bound_model. &&
4054 (box->sort_funccxx . . $ _GtkListBox#sort_func. || box->filter_funccxx . . $ _GtkListBox#filter_func.))
4055 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("GtkListBox with a model will ignore sort and filter functions");
4056 }
4057
4058 /**
4059 * gtk_list_box_bind_model:
4060 * @box: a `GtkListBox`
4061 * @model: (nullable): the `GListModel` to be bound to @box
4062 * @create_widget_func: (nullable) (scope notified) (closure user_data) (destroy user_data_free_func): a function
4063 * that creates widgets for items or %NULL in case you also passed %NULL as @model
4064 * @user_data: user data passed to @create_widget_func
4065 * @user_data_free_func: function for freeing @user_data
4066 *
4067 * Binds @model to @box.
4068 *
4069 * If @box was already bound to a model, that previous binding is
4070 * destroyed.
4071 *
4072 * The contents of @box are cleared and then filled with widgets that
4073 * represent items from @model. @box is updated whenever @model changes.
4074 * If @model is %NULL, @box is left empty.
4075 *
4076 * It is undefined to add or remove widgets directly (for example, with
4077 * [[email protected]]) while @box is bound to a model.
4078 *
4079 * Note that using a model is incompatible with the filtering and sorting
4080 * functionality in `GtkListBox`. When using a model, filtering and sorting
4081 * should be implemented by the model.
4082 */
4083 void
4084 gtk_list_box_bind_modelcxx . . $ gtk_list_box_bind_model(4fdbbb7a51a7d176). (GtkListBoxcxx . . $ GtkListBox# *box,
4085 GListModelcxx . . $ GListModel# *model,
4086 GtkListBoxCreateWidgetFunccxx . . $ GtkListBoxCreateWidgetFunc# create_widget_func,
4087 gpointercxx . . $ gpointer# user_data,
4088 GDestroyNotifycxx . . $ GDestroyNotify# user_data_free_func)
4089 {
4090 GSequenceItercxx . . $ GSequenceIter# *iter;
4091
4092 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
4093 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (model == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || G_IS_LIST_MODEL (model));
4094 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (model == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || create_widget_func != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
4095
4096 if (box->bound_modelcxx . . $ _GtkListBox#bound_model.)
4097 {
4098 if (box->create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy.)
4099 box->create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy. (box->create_widget_func_datacxx . . $ _GtkListBox#create_widget_func_data.);
4100
4101 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (box->bound_model, gtk_list_box_bound_model_changed, box);
4102 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&box->bound_model);
4103 }
4104
4105 iter = g_sequence_get_begin_itercxx . . $ g_sequence_get_begin_iter(c65380f4a12a3407). (box->childrencxx . . $ _GtkListBox#children.);
4106 while (!g_sequence_iter_is_endcxx . . $ g_sequence_iter_is_end(5b8ca6ef87da3483). (iter))
4107 {
4108 GtkWidgetcxx . . $ GtkWidget# *row = g_sequence_getcxx . . $ g_sequence_get(275cb62a9823f84f). (iter);
4109 iter = g_sequence_iter_nextcxx . . $ g_sequence_iter_next(5ad1731c2fb84d98). (iter);
4110 gtk_list_box_removecxx . . $ gtk_list_box_remove(80bd4d01e1352ed1). (box, row);
4111 }
4112
4113
4114 if (model == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
4115 return;
4116
4117 box->bound_modelcxx . . $ _GtkListBox#bound_model. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (model);
4118 box->create_widget_funccxx . . $ _GtkListBox#create_widget_func. = create_widget_func;
4119 box->create_widget_func_datacxx . . $ _GtkListBox#create_widget_func_data. = user_data;
4120 box->create_widget_func_data_destroycxx . . $ _GtkListBox#create_widget_func_data_destroy. = user_data_free_func;
4121
4122 gtk_list_box_check_model_compatcxx . . $ gtk_list_box_check_model_compat(5500cc82b552208f). (box);
4123
4124 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (box->bound_model, "items-changed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_list_box_bound_model_changed), box);
4125 gtk_list_box_bound_model_changedcxx . . $ gtk_list_box_bound_model_changed(22f2e28664e4f9e5). (model, 0, 0, g_list_model_get_n_itemscxx . . $ g_list_model_get_n_items(43b97f6a983b4be8). (model), box);
4126 }
4127
4128 /**
4129 * gtk_list_box_set_show_separators:
4130 * @box: a `GtkListBox`
4131 * @show_separators: %TRUE to show separators
4132 *
4133 * Sets whether the list box should show separators
4134 * between rows.
4135 */
4136 void
4137 gtk_list_box_set_show_separatorscxx . . $ gtk_list_box_set_show_separators(cba6bd24aa2f15d8). (GtkListBoxcxx . . $ GtkListBox# *box,
4138 gbooleancxx . . $ gboolean# show_separators)
4139 {
4140 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
4141
4142 if (box->show_separatorscxx . . $ _GtkListBox#show_separators. == show_separators)
4143 return;
4144
4145 box->show_separatorscxx . . $ _GtkListBox#show_separators. = show_separators;
4146
4147 if (show_separators)
4148 gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), "separators");
4149 else
4150 gtk_widget_remove_css_classcxx . . $ gtk_widget_remove_css_class(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (box), "separators");
4151
4152 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (box), propertiescxx . . $ properties.[PROP_SHOW_SEPARATORScxx . . $ PROP_SHOW_SEPARATORS.]);
4153 }
4154
4155 /**
4156 * gtk_list_box_get_show_separators:
4157 * @box: a `GtkListBox`
4158 *
4159 * Returns whether the list box should show separators
4160 * between rows.
4161 *
4162 * Returns: %TRUE if the list box shows separators
4163 */
4164 gbooleancxx . . $ gboolean#
4165 gtk_list_box_get_show_separatorscxx . . $ gtk_list_box_get_show_separators(5d27981c6da10d47). (GtkListBoxcxx . . $ GtkListBox# *box)
4166 {
4167 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
4168
4169 return box->show_separatorscxx . . $ _GtkListBox#show_separators.;
4170 }
4171
4172 /**
4173 * gtk_list_box_set_tab_behavior:
4174 * @box: a `GtkListBox`
4175 * @behavior: the tab behavior
4176 *
4177 * Sets the behavior of the <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keys.
4178 *
4179 * Since: 4.18
4180 */
4181 void
4182 gtk_list_box_set_tab_behaviorcxx . . $ gtk_list_box_set_tab_behavior(73bd33e66c6c5384). (GtkListBoxcxx . . $ GtkListBox# *box,
4183 GtkListTabBehaviorcxx . . $ GtkListTabBehavior# behavior)
4184 {
4185 g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box));
4186
4187 if (box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior. == behavior)
4188 return;
4189
4190 box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior. = behavior;
4191
4192 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (box), propertiescxx . . $ properties.[PROP_TAB_BEHAVIORcxx . . $ PROP_TAB_BEHAVIOR.]);
4193 }
4194
4195 /**
4196 * gtk_list_box_get_tab_behavior:
4197 * @box: a `GtkListBox`
4198 *
4199 * Returns the behavior of the <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keys.
4200 *
4201 * Returns: the tab behavior
4202 *
4203 * Since: 4.18
4204 */
4205 GtkListTabBehaviorcxx . . $ GtkListTabBehavior#
4206 gtk_list_box_get_tab_behaviorcxx . . $ gtk_list_box_get_tab_behavior(f988328ecaab98c). (GtkListBoxcxx . . $ GtkListBox# *box)
4207 {
4208 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_LIST_BOXcxx . . $ `gtk/gtklistbox.h:35:9`! (box), GTK_LIST_TAB_ALL);
4209
4210 return box->tab_behaviorcxx . . $ _GtkListBox#tab_behavior.;
4211 }