Debian Codegraph @

testsuite/gtk/singleselection.c

raw symbols SCIP
1 /*
2 * Copyright (C) 2019, Red Hat, Inc.
3 * Authors: Matthias Clasen <[email protected]>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include <locale.h>
20
21 #include <gtk/gtk.h>cxx . . $ `<file>/gtk/gtk.h`/
22
23 static GQuarkcxx . . $ GQuark# number_quarkcxx . . $ number_quark.;
24 static GQuarkcxx . . $ GQuark# changes_quarkcxx . . $ changes_quark.;
25 static GQuarkcxx . . $ GQuark# selection_quarkcxx . . $ selection_quark.;
26
27 static guintcxx . . $ guint#
28 getcxx . . $ get(e46b26058287899b). (GListModelcxx . . $ GListModel# *model,
29 guintcxx . . $ guint# position)
30 {
31 guintcxx . . $ guint# number;
32 GObjectcxx . . $ GObject# *object = g_list_model_get_itemcxx . . $ g_list_model_get_item(9715a6516b430a30). (model, position);
33 g_assert_nonnullcxx . . $ `<external>/15287032793271088244/gtestutils.h:254:9`! (object);
34 number = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (object, number_quark));
35 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (object);
36 return number;
37 }
38
39 static char *
40 model_to_stringcxx . . $ model_to_string(89d23d5deefe135b). (GListModelcxx . . $ GListModel# *model)
41 {
42 GStringcxx . . $ GString# *string = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
43 guintcxx . . $ guint# i;
44
45 for (i = 0; i < g_list_model_get_n_itemscxx . . $ g_list_model_get_n_items(43b97f6a983b4be8). (model); i++)
46 {
47 if (i > 0)
48 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " ");
49 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (string, "%u", getcxx . . $ get(e46b26058287899b). (model, i));
50 }
51
52 return g_string_freecxx . . $ `<external>/2906017559248664336/gstring.h:73:9`! (string, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
53 }
54
55 static char *
56 section_model_to_stringcxx . . $ section_model_to_string(89d23d5deefe135b). (GListModelcxx . . $ GListModel# *model)
57 {
58 GStringcxx . . $ GString# *string;
59 guintcxx . . $ guint# i, s, e, n;
60
61 if (!GTK_IS_SECTION_MODELcxx . . $ GTK_IS_SECTION_MODEL(dedf1e9b1c614a07). (model))
62 return model_to_stringcxx . . $ model_to_string(89d23d5deefe135b). (model);
63
64 string = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
65 n = g_list_model_get_n_itemscxx . . $ g_list_model_get_n_items(43b97f6a983b4be8). (model);
66
67 i = 0;
68 while (i < n)
69 {
70 gtk_section_model_get_sectioncxx . . $ gtk_section_model_get_section(cb2d549c16e2156c). (GTK_SECTION_MODELcxx . . $ GTK_SECTION_MODEL(f2def7259fc93597). (model), i, &s, &e);
71
72 if (i > 0)
73 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " ");
74
75 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "[");
76
77 for (; i < e; i++)
78 {
79 if (i > s)
80 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " ");
81
82 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (string, "%u", getcxx . . $ get(e46b26058287899b). (model, i));
83 }
84
85 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "]");
86 i = e;
87 }
88
89 return g_string_freecxx . . $ `<external>/2906017559248664336/gstring.h:73:9`! (string, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
90 }
91
92 static char *
93 selection_to_stringcxx . . $ selection_to_string(89d23d5deefe135b). (GListModelcxx . . $ GListModel# *model)
94 {
95 GStringcxx . . $ GString# *string = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
96 guintcxx . . $ guint# i;
97
98 for (i = 0; i < g_list_model_get_n_itemscxx . . $ g_list_model_get_n_items(43b97f6a983b4be8). (model); i++)
99 {
100 if (!gtk_selection_model_is_selectedcxx . . $ gtk_selection_model_is_selected(529f4b1ddcf02a7a). (GTK_SELECTION_MODELcxx . . $ GTK_SELECTION_MODEL(26da0a312d84729c). (model), i))
101 continue;
102
103 if (string->lencxx . . $ _GString#len. > 0)
104 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " ");
105 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (string, "%u", getcxx . . $ get(e46b26058287899b). (model, i));
106 }
107
108 return g_string_freecxx . . $ `<external>/2906017559248664336/gstring.h:73:9`! (string, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
109 }
110
111 static GListStorecxx . . $ GListStore# *
112 new_storecxx . . $ new_store(960a592ce42bea9c). (guintcxx . . $ guint# start,
113 guintcxx . . $ guint# end,
114 guintcxx . . $ guint# step);
115
116 static GObjectcxx . . $ GObject# *
117 make_objectcxx . . $ make_object(c122d2d8b9e0139b). (guintcxx . . $ guint# number)
118 {
119 GObjectcxx . . $ GObject# *object;
120
121 /* 0 cannot be differentiated from NULL, so don't use it */
122 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (number, !=, 0);
123
124 object = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
125 g_object_set_qdatacxx . . $ g_object_set_qdata(d7e2e719dfad0cc9). (object, number_quarkcxx . . $ number_quark., GUINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:107:9`! (number));
126
127 return object;
128 }
129
130 static void
131 splicecxx . . $ splice(95fde87855f9f1ec). (GListStorecxx . . $ GListStore# *store,
132 guintcxx . . $ guint# pos,
133 guintcxx . . $ guint# removed,
134 guintcxx . . $ guint# *numbers,
135 guintcxx . . $ guint# added)
136 {
137 GObjectcxx . . $ GObject# **objects = g_newacxx . . $ `<external>/2019178843399655176/galloca.h:131:9`! (GObject *, added);
138 guintcxx . . $ guint# i;
139
140 for (i = 0; i < added; i++)
141 objects[i] = make_objectcxx . . $ make_object(c122d2d8b9e0139b). (numbers[i]);
142
143 g_list_store_splicecxx . . $ g_list_store_splice(50e7776f3f95220d). (store, pos, removed, (gpointercxx . . $ gpointer# *) objects, added);
144
145 for (i = 0; i < added; i++)
146 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (objects[i]);
147 }
148
149 static void
150 addcxx . . $ add(5492454d463e0600). (GListStorecxx . . $ GListStore# *store,
151 guintcxx . . $ guint# number)
152 {
153 GObjectcxx . . $ GObject# *object = make_objectcxx . . $ make_object(c122d2d8b9e0139b). (number);
154 g_list_store_appendcxx . . $ g_list_store_append(fe077dfa3c2ace38). (store, object);
155 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (object);
156 }
157
158 static void
159 insertcxx . . $ insert(453fd9d66f3cdf41). (GListStorecxx . . $ GListStore# *store,
160 guintcxx . . $ guint# position,
161 guintcxx . . $ guint# number)
162 {
163 GObjectcxx . . $ GObject# *object = make_objectcxx . . $ make_object(c122d2d8b9e0139b). (number);
164 g_list_store_insertcxx . . $ g_list_store_insert(2eb64cd2628a98a9). (store, position, object);
165 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (object);
166 }
167
168 #define assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`!(model, expected) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
169 char *s = model_to_string (G_LIST_MODEL (model)); \
170 if (!g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (s, expected)) \
171 g_assertion_message_cmpstr (G_LOG_DOMAINcxx . . $ `<external>/5169755362661750954/gmessages.h:323:9`!, __FILE__, __LINE__, G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!, \
172 #model " == " #expected, s, "==", expected); \
173 g_free (s); \
174 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
175
176 #define assert_section_modelcxx . . $ `testsuite/gtk/singleselection.c:176:9`!(model, expected) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
177 char *s = section_model_to_string (G_LIST_MODEL (model)); \
178 if (!g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (s, expected)) \
179 g_assertion_message_cmpstr (G_LOG_DOMAINcxx . . $ `<external>/5169755362661750954/gmessages.h:323:9`!, __FILE__, __LINE__, G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!, \
180 #model " == " #expected, s, "==", expected); \
181 g_free (s); \
182 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
183
184 #define ignore_changescxx . . $ `testsuite/gtk/singleselection.c:184:9`!(model) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
185 GString *changes = g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (model), changes_quark); \
186 g_string_set_size (changes, 0); \
187 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
188
189 #define assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`!(model, expected) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
190 GString *changes = g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (model), changes_quark); \
191 if (!g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (changes->str, expected)) \
192 g_assertion_message_cmpstr (G_LOG_DOMAINcxx . . $ `<external>/5169755362661750954/gmessages.h:323:9`!, __FILE__, __LINE__, G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!, \
193 #model " == " #expected, changes->str, "==", expected); \
194 g_string_set_size (changes, 0); \
195 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
196
197 #define assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`!(model, expected) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
198 char *s = selection_to_string (G_LIST_MODEL (model)); \
199 if (!g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (s, expected)) \
200 g_assertion_message_cmpstr (G_LOG_DOMAINcxx . . $ `<external>/5169755362661750954/gmessages.h:323:9`!, __FILE__, __LINE__, G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!, \
201 #model " == " #expected, s, "==", expected); \
202 g_free (s); \
203 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
204
205 #define assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`!(model, expected) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
206 GString *changes = g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (model), selection_quark); \
207 if (!g_str_equalcxx . . $ `<external>/7714589265505779806/ghash.h:175:9`! (changes->str, expected)) \
208 g_assertion_message_cmpstr (G_LOG_DOMAINcxx . . $ `<external>/5169755362661750954/gmessages.h:323:9`!, __FILE__, __LINE__, G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!, \
209 #model " == " #expected, changes->str, "==", expected); \
210 g_string_set_size (changes, 0); \
211 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
212
213 #define ignore_selection_changescxx . . $ `testsuite/gtk/singleselection.c:213:9`!(model) G_STMT_STARTcxx . . $ `<external>/12741050725406041920/gmacros.h:1027:9`!{ \
214 GString *changes = g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (model), selection_quark); \
215 g_string_set_size (changes, 0); \
216 }G_STMT_ENDcxx . . $ `<external>/12741050725406041920/gmacros.h:1035:9`!
217
218 static GListStorecxx . . $ GListStore# *
219 new_empty_storecxx . . $ new_empty_store(160e068c1a5dcea). (void)
220 {
221 return g_list_store_newcxx . . $ g_list_store_new(3a1260efc23394a5). (G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!);
222 }
223
224 static GListStorecxx . . $ GListStore# *
225 new_storecxx . . $ new_store(960a592ce42bea9c). (guintcxx . . $ guint# start,
226 guintcxx . . $ guint# end,
227 guintcxx . . $ guint# step)
228 {
229 GListStorecxx . . $ GListStore# *store = new_empty_storecxx . . $ new_empty_store(160e068c1a5dcea). ();
230 guintcxx . . $ guint# i;
231
232 for (i = start; i <= end; i += step)
233 addcxx . . $ add(5492454d463e0600). (store, i);
234
235 return store;
236 }
237
238 static void
239 items_changedcxx . . $ items_changed(e5549006cdf9e889). (GListModelcxx . . $ GListModel# *model,
240 guintcxx . . $ guint# position,
241 guintcxx . . $ guint# removed,
242 guintcxx . . $ guint# added,
243 GStringcxx . . $ GString# *changes)
244 {
245 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (removed != 0 || added != 0);
246
247 if (changes->lencxx . . $ _GString#len.)
248 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (changes, ", ");
249
250 if (removed == 1 && added == 0)
251 {
252 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "-%u", position);
253 }
254 else if (removed == 0 && added == 1)
255 {
256 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "+%u", position);
257 }
258 else
259 {
260 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "%u", position);
261 if (removed > 0)
262 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "-%u", removed);
263 if (added > 0)
264 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "+%u", added);
265 }
266 }
267
268 static void
269 sections_changedcxx . . $ sections_changed(cf1e2c75bd9bfffb). (GListModelcxx . . $ GListModel# *model,
270 guintcxx . . $ guint# position,
271 guintcxx . . $ guint# n_items,
272 GStringcxx . . $ GString# *changes)
273 {
274 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (n_items != 0);
275
276 if (changes->lencxx . . $ _GString#len.)
277 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (changes, ", ");
278
279 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "s%u:%u", position, n_items);
280 }
281
282 static void
283 notify_n_itemscxx . . $ notify_n_items(6ec9adafb8c33ec7). (GObjectcxx . . $ GObject# *object,
284 GParamSpeccxx . . $ GParamSpec# *pspec,
285 GStringcxx . . $ GString# *changes)
286 {
287 g_string_append_ccxx . . $ `<external>/2906017559248664336/gstring.h:215:9`! (changes, '*');
288 }
289
290 static void
291 selection_changedcxx . . $ selection_changed(cf1e2c75bd9bfffb). (GListModelcxx . . $ GListModel# *model,
292 guintcxx . . $ guint# position,
293 guintcxx . . $ guint# n_items,
294 GStringcxx . . $ GString# *changes)
295 {
296 if (changes->lencxx . . $ _GString#len.)
297 g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (changes, ", ");
298
299 g_string_append_printfcxx . . $ g_string_append_printf(eeccf837eb821d11). (changes, "%u:%u", position, n_items);
300 }
301
302 static void
303 free_changescxx . . $ free_changes(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data)
304 {
305 GStringcxx . . $ GString# *changes = data;
306
307 /* all changes must have been checked via assert_changes() before */
308 g_assert_cmpstrcxx . . $ `<external>/15287032793271088244/gtestutils.h:46:9`! (changes->str, ==, "");
309
310 g_string_freecxx . . $ `<external>/2906017559248664336/gstring.h:73:9`! (changes, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
311 }
312
313 static GtkSelectionModelcxx . . $ GtkSelectionModel# *
314 new_modelcxx . . $ new_model(7eb57c44088aeaef). (GListModelcxx . . $ GListModel# *store, gbooleancxx . . $ gboolean# autoselect, gbooleancxx . . $ gboolean# can_unselect)
315 {
316 GtkSelectionModelcxx . . $ GtkSelectionModel# *result;
317 GStringcxx . . $ GString# *changes;
318
319 result = GTK_SELECTION_MODELcxx . . $ GTK_SELECTION_MODEL(26da0a312d84729c). (gtk_single_selection_newcxx . . $ gtk_single_selection_new(2a1ff8e2fc90edfb). (g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (store)));
320
321 /* We want to return an empty selection unless autoselect is true,
322 * so undo the initial selection due to autoselect defaulting to TRUE.
323 */
324 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (result), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
325 gtk_single_selection_set_can_unselectcxx . . $ gtk_single_selection_set_can_unselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (result), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
326 gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (result, 0);
327 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (result, "");
328
329 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (result), autoselect);
330 gtk_single_selection_set_can_unselectcxx . . $ gtk_single_selection_set_can_unselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (result), can_unselect);
331
332 changes = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). ("");
333 g_object_set_qdata_fullcxx . . $ g_object_set_qdata_full(65a765778c030710). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (result), changes_quarkcxx . . $ changes_quark., changes, free_changescxx . . $ free_changes(5d22bdacc48458e8).);
334 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (result, "items-changed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (items_changed), changes);
335 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (result, "sections-changed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (sections_changed), changes);
336 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (result, "notify::n-items", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (notify_n_items), changes);
337
338 changes = g_string_newcxx . . $ g_string_new(e8737c02110bb79b). ("");
339 g_object_set_qdata_fullcxx . . $ g_object_set_qdata_full(65a765778c030710). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`!(result), selection_quarkcxx . . $ selection_quark., changes, free_changescxx . . $ free_changes(5d22bdacc48458e8).);
340 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (result, "selection-changed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (selection_changed), changes);
341
342 return result;
343 }
344
345 static void
346 test_createcxx . . $ test_create(49f6e7a06ebc5aa8). (void)
347 {
348 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
349 GListStorecxx . . $ GListStore# *store;
350 guintcxx . . $ guint# start, end;
351
352 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
353 {
354 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
355 return;
356 }
357
358 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 2);
359 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
360 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (gtk_single_selection_get_autoselect (GTK_SINGLE_SELECTION (selection)));
361
362 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 3 5");
363 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
364 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
365 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
366
367 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
368
369 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 3 5");
370 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
371 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
372 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
373
374 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (g_list_model_get_item_type (G_LIST_MODEL (selection)) == G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!);
375 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (gtk_single_selection_get_model (GTK_SINGLE_SELECTION (selection)) == G_LIST_MODEL (store));
376 gtk_section_model_get_sectioncxx . . $ gtk_section_model_get_section(cb2d549c16e2156c). (GTK_SECTION_MODELcxx . . $ GTK_SECTION_MODEL(f2def7259fc93597). (selection), 0, &start, &end);
377 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (start, ==, 0);
378 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (end, ==, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!);
379
380 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
381 }
382
383 static void
384 test_create_emptycxx . . $ test_create_empty(49f6e7a06ebc5aa8). (void)
385 {
386 GtkSingleSelectioncxx . . $ GtkSingleSelection# *selection;
387
388 selection = gtk_single_selection_newcxx . . $ gtk_single_selection_new(2a1ff8e2fc90edfb). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
389 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (g_list_model_get_n_items (G_LIST_MODEL (selection)), ==, 0);
390
391 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
392 }
393
394 static void
395 test_changescxx . . $ test_changes(49f6e7a06ebc5aa8). (void)
396 {
397 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
398 GListStorecxx . . $ GListStore# *store;
399
400 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 58, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
401 {
402 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_splice() is broken before GLIB 2.58.0");
403 return;
404 }
405
406 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
407 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
408 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2 3 4 5");
409 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
410 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
411 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
412
413 g_list_store_removecxx . . $ g_list_store_remove(5492454d463e0600). (store, 3);
414 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2 3 5");
415 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "-3*");
416 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
417 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
418
419 insertcxx . . $ insert(453fd9d66f3cdf41). (store, 3, 99);
420 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2 3 99 5");
421 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "+3*");
422 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
423 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
424
425 splicecxx . . $ splice(95fde87855f9f1ec). (store, 3, 2, (guintcxx . . $ guint#[]) { 97 }, 1);
426 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2 3 97");
427 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "3-2+1*");
428 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
429 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
430
431 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
432 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
433 }
434
435 static void
436 test_selectioncxx . . $ test_selection(49f6e7a06ebc5aa8). (void)
437 {
438 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
439 GListStorecxx . . $ GListStore# *store;
440 gbooleancxx . . $ gboolean# ret;
441
442 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
443 {
444 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
445 return;
446 }
447
448 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
449 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
450 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
451 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
452
453 ret = gtk_selection_model_select_itemcxx . . $ gtk_selection_model_select_item(aa78d1adc59a5f9d). (selection, 3, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
454 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (ret);
455 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "4");
456 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "0:4");
457
458 ret = gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 3);
459 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
460 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "4");
461 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
462
463 ret = gtk_selection_model_select_itemcxx . . $ gtk_selection_model_select_item(aa78d1adc59a5f9d). (selection, 1, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
464 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (ret);
465 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
466 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "1:3");
467
468 ret = gtk_selection_model_select_rangecxx . . $ gtk_selection_model_select_range(cd09285e087e88aa). (selection, 3, 2, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
469 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
470 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
471 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
472
473 ret = gtk_selection_model_unselect_rangecxx . . $ gtk_selection_model_unselect_range(213e9a6d4494a00f). (selection, 4, 2);
474 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
475 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
476 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
477
478 ret = gtk_selection_model_select_allcxx . . $ gtk_selection_model_select_all(4309ae51268723ae). (selection);
479 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
480 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
481 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
482
483 ret = gtk_selection_model_unselect_allcxx . . $ gtk_selection_model_unselect_all(4309ae51268723ae). (selection);
484 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
485 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
486 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
487
488 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
489 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
490 }
491
492 static void
493 test_autoselectcxx . . $ test_autoselect(49f6e7a06ebc5aa8). (void)
494 {
495 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
496 GListStorecxx . . $ GListStore# *store;
497
498 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
499 {
500 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
501 return;
502 }
503
504 store = new_empty_storecxx . . $ new_empty_store(160e068c1a5dcea). ();
505 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
506 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "");
507 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
508 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
509 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
510
511 addcxx . . $ add(5492454d463e0600). (store, 1);
512 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1");
513 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "+0*");
514 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
515 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
516
517 splicecxx . . $ splice(95fde87855f9f1ec). (store, 0, 1, (guintcxx . . $ guint#[]) { 7, 8, 9 }, 3);
518 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "7 8 9");
519 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-1+3*");
520 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "7");
521 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
522
523 splicecxx . . $ splice(95fde87855f9f1ec). (store, 0, 0, (guintcxx . . $ guint#[]) { 5, 6 }, 2);
524 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "5 6 7 8 9");
525 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0+2*");
526 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "7");
527 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
528
529 g_list_store_removecxx . . $ g_list_store_remove(5492454d463e0600). (store, 2);
530 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "5 6 8 9");
531 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "2-2+1*");
532 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "8");
533 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
534
535 splicecxx . . $ splice(95fde87855f9f1ec). (store, 2, 2, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0);
536 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "5 6");
537 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "1-3+1*");
538 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "6");
539 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
540
541 splicecxx . . $ splice(95fde87855f9f1ec). (store, 0, 2, (guintcxx . . $ guint#[]) { 1, 2 }, 2);
542 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2");
543 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-2+2");
544 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
545 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
546
547 g_list_store_removecxx . . $ g_list_store_remove(5492454d463e0600). (store, 0);
548 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "2");
549 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "-0*");
550 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "2");
551 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
552
553 g_list_store_removecxx . . $ g_list_store_remove(5492454d463e0600). (store, 0);
554 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "");
555 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "-0*");
556 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
557 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
558
559 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
560 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
561 }
562
563 static void
564 test_autoselect_togglecxx . . $ test_autoselect_toggle(49f6e7a06ebc5aa8). (void)
565 {
566 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
567 GListStorecxx . . $ GListStore# *store;
568
569 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
570 {
571 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
572 return;
573 }
574
575 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 1, 1);
576 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
577 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1");
578 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
579 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
580 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
581
582 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
583 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1");
584 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
585 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
586 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
587
588 gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 0);
589 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1");
590 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
591 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
592 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "0:1");
593
594 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
595 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1");
596 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
597 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
598 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "0:1");
599
600 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
601 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
602 }
603
604 static void
605 test_can_unselectcxx . . $ test_can_unselect(49f6e7a06ebc5aa8). (void)
606 {
607 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
608 GListStorecxx . . $ GListStore# *store;
609 gbooleancxx . . $ gboolean# ret;
610
611 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
612 {
613 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
614 return;
615 }
616
617 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
618 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
619 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
620 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
621
622 ret = gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 0);
623 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
624 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
625 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
626
627 gtk_single_selection_set_can_unselectcxx . . $ gtk_single_selection_set_can_unselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
628
629 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
630 ret = gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 0);
631 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (ret);
632 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
633 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
634
635 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
636
637 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
638 ret = gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 0);
639 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (ret);
640 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
641 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "0:1");
642
643 ignore_changescxx . . $ `testsuite/gtk/singleselection.c:184:9`! (selection);
644
645 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
646 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
647 }
648
649 static int
650 sort_inversecxx . . $ sort_inverse(b8f62d2ccbc12f7d). (gconstpointercxx . . $ gconstpointer# a, gconstpointercxx . . $ gconstpointer# b, gpointercxx . . $ gpointer# data)
651 {
652 int ia = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (a), number_quark));
653 int ib = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (b), number_quark));
654
655 return ib - ia;
656 }
657
658 static void
659 test_persistencecxx . . $ test_persistence(49f6e7a06ebc5aa8). (void)
660 {
661 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
662 GListStorecxx . . $ GListStore# *store;
663
664 if (glib_check_versioncxx . . $ glib_check_version(d0423e63b8cd2939). (2, 59, 0) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
665 {
666 g_test_skipcxx . . $ g_test_skip(85c52e162fed56f9). ("g_list_store_get_item() has overflow issues before GLIB 2.59.0");
667 return;
668 }
669
670 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
671 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
672 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
673 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
674 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (gtk_selection_model_is_selected (selection, 0));
675 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (gtk_selection_model_is_selected (selection, 4));
676
677 g_list_store_sortcxx . . $ g_list_store_sort(ef9762788b2deb81). (store, sort_inversecxx . . $ sort_inverse(b8f62d2ccbc12f7d)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
678
679 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
680 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
681 g_assert_falsecxx . . $ `<external>/15287032793271088244/gtestutils.h:232:9`! (gtk_selection_model_is_selected (selection, 0));
682 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (gtk_selection_model_is_selected (selection, 4));
683
684 ignore_changescxx . . $ `testsuite/gtk/singleselection.c:184:9`! (selection);
685
686 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
687 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
688 }
689
690 static void
691 check_get_selectioncxx . . $ check_get_selection(403f8af134ff23c). (GtkSelectionModelcxx . . $ GtkSelectionModel# *selection)
692 {
693 GtkBitsetcxx . . $ GtkBitset# *set;
694 guintcxx . . $ guint# i, n_items;
695
696 set = gtk_selection_model_get_selectioncxx . . $ gtk_selection_model_get_selection(2685d35c08279656). (selection);
697
698 n_items = g_list_model_get_n_itemscxx . . $ g_list_model_get_n_items(43b97f6a983b4be8). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (selection));
699 if (n_items == 0)
700 {
701 g_assert_truecxx . . $ `<external>/15287032793271088244/gtestutils.h:227:9`! (gtk_bitset_is_empty (set));
702 }
703 else
704 {
705 for (i = 0; i < n_items; i++)
706 {
707 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (gtk_bitset_contains (set, i), ==, gtk_selection_model_is_selected (selection, i));
708 }
709
710 /* check that out-of-range has no bits set */
711 g_assert_cmpintcxx . . $ `<external>/15287032793271088244/gtestutils.h:53:9`! (gtk_bitset_get_maximum (set), <, g_list_model_get_n_items (G_LIST_MODEL (selection)));
712 }
713
714 gtk_bitset_unrefcxx . . $ gtk_bitset_unref(a981648d8e5e1e8a). (set);
715 }
716
717 static void
718 test_query_rangecxx . . $ test_query_range(49f6e7a06ebc5aa8). (void)
719 {
720 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
721 GListStorecxx . . $ GListStore# *store;
722
723 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
724 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
725 check_get_selectioncxx . . $ check_get_selection(403f8af134ff23c). (selection);
726
727 gtk_selection_model_unselect_itemcxx . . $ gtk_selection_model_unselect_item(529f4b1ddcf02a7a). (selection, 0);
728 check_get_selectioncxx . . $ check_get_selection(403f8af134ff23c). (selection);
729
730 gtk_selection_model_select_itemcxx . . $ gtk_selection_model_select_item(aa78d1adc59a5f9d). (selection, 2, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
731 check_get_selectioncxx . . $ check_get_selection(403f8af134ff23c). (selection);
732
733 gtk_selection_model_select_itemcxx . . $ gtk_selection_model_select_item(aa78d1adc59a5f9d). (selection, 4, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
734 check_get_selectioncxx . . $ check_get_selection(403f8af134ff23c). (selection);
735
736 ignore_selection_changescxx . . $ `testsuite/gtk/singleselection.c:213:9`! (selection);
737
738 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
739 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
740 }
741
742 static void
743 test_set_modelcxx . . $ test_set_model(49f6e7a06ebc5aa8). (void)
744 {
745 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
746 GListStorecxx . . $ GListStore# *store;
747 GListModelcxx . . $ GListModel# *m1, *m2;
748
749 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 5, 1);
750 m1 = G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store);
751 m2 = G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (gtk_slice_list_model_newcxx . . $ gtk_slice_list_model_new(dfa817357b726ad7). (g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (m1), 0, 3));
752 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
753 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
754 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
755
756 /* we retain the selected item across model changes */
757 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), m2);
758 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-5+3*");
759 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "1");
760 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
761
762 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
763 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-3*");
764 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
765 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
766
767 gtk_single_selection_set_autoselectcxx . . $ gtk_single_selection_set_autoselect(4d768e359b3ef3a0). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
768 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), m2);
769 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0+3*");
770 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
771 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
772
773 /* we retain no selected item across model changes */
774 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), m1);
775 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-3+5*");
776 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
777 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
778
779 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (selection, "selected", 4, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
780 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "5");
781 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "4:1");
782
783 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (GTK_SINGLE_SELECTIONcxx . . $ GTK_SINGLE_SELECTION(6a7c8e4a4b8cbd50). (selection), m2);
784 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "0-5+3*");
785 assert_selectioncxx . . $ `testsuite/gtk/singleselection.c:197:9`! (selection, "");
786 assert_selection_changescxx . . $ `testsuite/gtk/singleselection.c:205:9`! (selection, "");
787
788 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (m2);
789 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (m1);
790 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
791 }
792
793 static void
794 test_emptycxx . . $ test_empty(49f6e7a06ebc5aa8). (void)
795 {
796 GtkSingleSelectioncxx . . $ GtkSingleSelection# *selection;
797 GListStorecxx . . $ GListStore# *store;
798
799 selection = gtk_single_selection_newcxx . . $ gtk_single_selection_new(2a1ff8e2fc90edfb). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
800
801 g_assert_cmpuintcxx . . $ `<external>/15287032793271088244/gtestutils.h:59:9`! (g_list_model_get_n_items (G_LIST_MODEL (selection)), ==, 0);
802 g_assert_nullcxx . . $ `<external>/15287032793271088244/gtestutils.h:250:9`! (g_list_model_get_item (G_LIST_MODEL (selection), 11));
803
804 store = g_list_store_newcxx . . $ g_list_store_new(3a1260efc23394a5). (G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!);
805 gtk_single_selection_set_modelcxx . . $ gtk_single_selection_set_model(fbaac6029c963790). (selection, G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store));
806 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (store);
807
808 g_assert_cmpuintcxx . . $ `<external>/15287032793271088244/gtestutils.h:59:9`! (g_list_model_get_n_items (G_LIST_MODEL (selection)), ==, 0);
809 g_assert_nullcxx . . $ `<external>/15287032793271088244/gtestutils.h:250:9`! (g_list_model_get_item (G_LIST_MODEL (selection), 11));
810
811 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
812 }
813
814 static int
815 by_ncxx . . $ by_n(b8f62d2ccbc12f7d). (gconstpointercxx . . $ gconstpointer# p1,
816 gconstpointercxx . . $ gconstpointer# p2,
817 gpointercxx . . $ gpointer# data)
818 {
819 guintcxx . . $ guint# n1 = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (p1), number_quark));
820 guintcxx . . $ guint# n2 = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (p2), number_quark));
821 unsigned int n = GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (data);
822
823 n1 = n1 / n;
824 n2 = n2 / n;
825
826 if (n1 < n2)
827 return -1;
828 else if (n1 > n2)
829 return 1;
830 else
831 return 0;
832 }
833
834 static int
835 comparecxx . . $ compare(b8f62d2ccbc12f7d). (gconstpointercxx . . $ gconstpointer# first,
836 gconstpointercxx . . $ gconstpointer# second,
837 gpointercxx . . $ gpointer# unused)
838 {
839 return GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (first), number_quark))
840 - GPOINTER_TO_UINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:104:9`! (g_object_get_qdata (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (second), number_quark));
841 }
842
843 static void
844 test_sectionscxx . . $ test_sections(49f6e7a06ebc5aa8). (void)
845 {
846 GListStorecxx . . $ GListStore# *store;
847 GtkSortListModelcxx . . $ GtkSortListModel# *sorted;
848 GtkSelectionModelcxx . . $ GtkSelectionModel# *selection;
849 GtkSortercxx . . $ GtkSorter# *sorter;
850
851 store = new_storecxx . . $ new_store(960a592ce42bea9c). (1, 10, 1);
852 sorted = gtk_sort_list_model_newcxx . . $ gtk_sort_list_model_new(8824ba106326af8f). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (store),
853 GTK_SORTERcxx . . $ GTK_SORTER(cf32dcc2d2e89335). (gtk_custom_sorter_newcxx . . $ gtk_custom_sorter_new(23a2bd63ffcecdf9). (comparecxx . . $ compare(b8f62d2ccbc12f7d)., 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`!)));
854 selection = new_modelcxx . . $ new_model(7eb57c44088aeaef). (G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (sorted), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
855 assert_modelcxx . . $ `testsuite/gtk/singleselection.c:168:9`! (selection, "1 2 3 4 5 6 7 8 9 10");
856 assert_section_modelcxx . . $ `testsuite/gtk/singleselection.c:176:9`! (selection, "[1 2 3 4 5 6 7 8 9 10]");
857 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "");
858
859 sorter = GTK_SORTERcxx . . $ GTK_SORTER(cf32dcc2d2e89335). (gtk_custom_sorter_newcxx . . $ gtk_custom_sorter_new(23a2bd63ffcecdf9). (by_ncxx . . $ by_n(b8f62d2ccbc12f7d)., GUINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:107:9`! (3), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!));
860 gtk_sort_list_model_set_section_sortercxx . . $ gtk_sort_list_model_set_section_sorter(2def8541674f11ea). (sorted, sorter);
861 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (sorter);
862
863 assert_section_modelcxx . . $ `testsuite/gtk/singleselection.c:176:9`! (selection, "[1 2] [3 4 5] [6 7 8] [9 10]");
864 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "s0:10");
865
866 gtk_section_model_sections_changedcxx . . $ gtk_section_model_sections_changed(769754b59bafb6d0). (GTK_SECTION_MODELcxx . . $ GTK_SECTION_MODEL(f2def7259fc93597). (sorted), 0, 3);
867 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "s0:3");
868
869 gtk_section_model_sections_changedcxx . . $ gtk_section_model_sections_changed(769754b59bafb6d0). (GTK_SECTION_MODELcxx . . $ GTK_SECTION_MODEL(f2def7259fc93597). (sorted), 5, 3);
870 assert_changescxx . . $ `testsuite/gtk/singleselection.c:189:9`! (selection, "s5:3");
871
872 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (selection);
873 }
874
875 int
876 maincxx . . $ main(afcd3168fc1188a4). (int argc, char *argv[])
877 {
878 (g_test_initcxx . . $ g_test_init(b91bcc5cc1349d78).) (&argc, &argv, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
879 setlocalecxx . . $ setlocale(10ed28bce9115888). (LC_ALLcxx . . $ `<external>/3736975272097309885/locale.h:41:9`!, "C");
880
881 number_quarkcxx . . $ number_quark. = g_quark_from_static_stringcxx . . $ g_quark_from_static_string(c61c63047ce273de). ("Hell and fire was spawned to be released.");
882 changes_quarkcxx . . $ changes_quark. = g_quark_from_static_stringcxx . . $ g_quark_from_static_string(c61c63047ce273de). ("What did I see? Can I believe what I saw?");
883 selection_quarkcxx . . $ selection_quark. = g_quark_from_static_stringcxx . . $ g_quark_from_static_string(c61c63047ce273de). ("Mana mana, badibidibi");
884
885 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/create", test_createcxx . . $ test_create(49f6e7a06ebc5aa8).);
886 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/create-empty", test_create_emptycxx . . $ test_create_empty(49f6e7a06ebc5aa8).);
887 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/autoselect", test_autoselectcxx . . $ test_autoselect(49f6e7a06ebc5aa8).);
888 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/autoselect-toggle", test_autoselect_togglecxx . . $ test_autoselect_toggle(49f6e7a06ebc5aa8).);
889 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/selection", test_selectioncxx . . $ test_selection(49f6e7a06ebc5aa8).);
890 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/can-unselect", test_can_unselectcxx . . $ test_can_unselect(49f6e7a06ebc5aa8).);
891 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/persistence", test_persistencecxx . . $ test_persistence(49f6e7a06ebc5aa8).);
892 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/query-range", test_query_rangecxx . . $ test_query_range(49f6e7a06ebc5aa8).);
893 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/changes", test_changescxx . . $ test_changes(49f6e7a06ebc5aa8).);
894 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/set-model", test_set_modelcxx . . $ test_set_model(49f6e7a06ebc5aa8).);
895 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/empty", test_emptycxx . . $ test_empty(49f6e7a06ebc5aa8).);
896 g_test_add_funccxx . . $ g_test_add_func(18fee6cbb4bb18a4). ("/singleselection/sections", test_sectionscxx . . $ test_sections(49f6e7a06ebc5aa8).);
897
898 return g_test_runcxx . . $ g_test_run(b126dc7c1de90089). ();
899 }