Debian Codegraph @

demos/icon-editor/icon-editor-window.c

raw symbols SCIP
1 /*
2 * Copyright © 2025 Red Hat, Inc
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.1 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 * SPDX-License-Identifier: LGPL-2.1-or-later
18 *
19 * Authors: Matthias Clasen <[email protected]>
20 */
21
22 #include "icon-editor-window.h"cxx . . $ `<file>/demos/icon-editor/icon-editor-window.h`/
23
24 #include "paintable-editor.h"cxx . . $ `<file>/demos/icon-editor/paintable-editor.h`/
25 #include "path-paintable.h"cxx . . $ `<file>/demos/icon-editor/path-paintable.h`/
26 #include "border-paintable.h"cxx . . $ `<file>/demos/icon-editor/border-paintable.h`/
27 #include "state-editor.h"cxx . . $ `<file>/demos/icon-editor/state-editor.h`/
28
29 #include <glib/gstdio.h>
30
31
32 struct _IconEditorWindowcxx . . $ _IconEditorWindow#
33 {
34 GtkApplicationWindowcxx . . $ GtkApplicationWindow# parentcxx . . $ _IconEditorWindow#parent.;
35
36 GFilecxx . . $ GFile# *filecxx . . $ _IconEditorWindow#file.;
37 PathPaintablecxx . . $ PathPaintable# *paintablecxx . . $ _IconEditorWindow#paintable.;
38 PathPaintablecxx . . $ PathPaintable# *orig_paintablecxx . . $ _IconEditorWindow#orig_paintable.;
39 GBindingcxx . . $ GBinding# *playing_bindingcxx . . $ _IconEditorWindow#playing_binding.;
40 gbooleancxx . . $ gboolean# changedcxx . . $ _IconEditorWindow#changed.;
41 gbooleancxx . . $ gboolean# show_controlscxx . . $ _IconEditorWindow#show_controls.;
42 gbooleancxx . . $ gboolean# show_thumbnailscxx . . $ _IconEditorWindow#show_thumbnails.;
43 gbooleancxx . . $ gboolean# show_boundscxx . . $ _IconEditorWindow#show_bounds.;
44 gbooleancxx . . $ gboolean# show_spinescxx . . $ _IconEditorWindow#show_spines.;
45 gbooleancxx . . $ gboolean# show_gridcxx . . $ _IconEditorWindow#show_grid.;
46 gbooleancxx . . $ gboolean# invert_colorscxx . . $ _IconEditorWindow#invert_colors.;
47 gbooleancxx . . $ gboolean# playingcxx . . $ _IconEditorWindow#playing.;
48 float weightcxx . . $ _IconEditorWindow#weight.;
49 unsigned int statecxx . . $ _IconEditorWindow#state.;
50 unsigned int initial_statecxx . . $ _IconEditorWindow#initial_state.;
51 GtkStackcxx . . $ GtkStack# *main_stackcxx . . $ _IconEditorWindow#main_stack.;
52 GtkImagecxx . . $ GtkImage# *empty_logocxx . . $ _IconEditorWindow#empty_logo.;
53 unioncxx . . $ _IconEditorWindow#$anonymous_type_0# {
54 GtkImagecxx . . $ GtkImage# *imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[24];
55 structcxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1# {
56 GtkImagecxx . . $ GtkImage# *image48_0cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_0., *image48_1cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_1., *image48_2cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_2., *image48_3cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_3.;
57 GtkImagecxx . . $ GtkImage# *image48_4cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_4., *image48_5cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_5., *image48_6cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_6., *image48_7cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image48_7.;
58 GtkImagecxx . . $ GtkImage# *image24_0cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_0., *image24_1cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_1., *image24_2cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_2., *image24_3cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_3.;
59 GtkImagecxx . . $ GtkImage# *image24_4cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_4., *image24_5cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_5., *image24_6cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_6., *image24_7cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_7.;
60 GtkImagecxx . . $ GtkImage# *image24_8cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_8., *image24_9cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_9., *image24_10cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_10., *image24_11cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_11.;
61 GtkImagecxx . . $ GtkImage# *image24_12cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_12., *image24_13cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_13., *image24_14cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_14., *image24_15cxx . . $ _IconEditorWindow#$anonymous_type_0#$anonymous_type_1#image24_15.;
62 };
63 };
64 unioncxx . . $ _IconEditorWindow#$anonymous_type_2# {
65 GtkImagecxx . . $ GtkImage# *examplescxx . . $ _IconEditorWindow#$anonymous_type_2#examples.[6];
66 structcxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3# {
67 GtkImagecxx . . $ GtkImage# *example1cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example1., *example2cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example2., *example3cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example3.;
68 GtkImagecxx . . $ GtkImage# *example4cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example4., *example5cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example5., *example6cxx . . $ _IconEditorWindow#$anonymous_type_2#$anonymous_type_3#example6.;
69 };
70 };
71 PaintableEditorcxx . . $ PaintableEditor# *paintable_editorcxx . . $ _IconEditorWindow#paintable_editor.;
72 GtkCssProvidercxx . . $ GtkCssProvider# *paintable_stylecxx . . $ _IconEditorWindow#paintable_style.;
73 };
74
75 struct _IconEditorWindowClasscxx . . $ _IconEditorWindowClass#
76 {
77 GtkApplicationWindowClasscxx . . $ GtkApplicationWindowClass# parent_classcxx . . $ _IconEditorWindowClass#parent_class.;
78 };
79
80 enumcxx . . $ $anonymous_type_12c8daa7b48473b6_4#
81 {
82 PROP_PAINTABLEcxx . . $ PROP_PAINTABLE. = 1,
83 PROP_CHANGEDcxx . . $ PROP_CHANGED.,
84 PROP_SHOW_CONTROLScxx . . $ PROP_SHOW_CONTROLS.,
85 PROP_SHOW_BOUNDScxx . . $ PROP_SHOW_BOUNDS.,
86 PROP_SHOW_SPINEScxx . . $ PROP_SHOW_SPINES.,
87 PROP_SHOW_GRIDcxx . . $ PROP_SHOW_GRID.,
88 PROP_INVERT_COLORScxx . . $ PROP_INVERT_COLORS.,
89 PROP_WEIGHTcxx . . $ PROP_WEIGHT.,
90 PROP_STATEcxx . . $ PROP_STATE.,
91 PROP_INITIAL_STATEcxx . . $ PROP_INITIAL_STATE.,
92 PROP_PLAYINGcxx . . $ PROP_PLAYING.,
93 NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.,
94 };
95
96 static GParamSpeccxx . . $ GParamSpec# *propertiescxx . . $ properties.[NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.];
97
98 G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`!(IconEditorWindow, icon_editor_window, GTK_TYPE_APPLICATION_WINDOWcxx . . $ `gtk/gtkapplicationwindow.h:31:9`!);
99
100 /* {{{ Setters */
101
102 static void
103 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
104 gbooleancxx . . $ gboolean# show_controls)
105 {
106 if (self->show_controlscxx . . $ _IconEditorWindow#show_controls. == show_controls)
107 return;
108
109 if (show_controls)
110 {
111 GActioncxx . . $ GAction# *action;
112
113 action = g_action_map_lookup_actioncxx . . $ g_action_map_lookup_action(a35da38ead4c8170). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "close");
114 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (action), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
115 gtk_stack_set_visible_child_namecxx . . $ gtk_stack_set_visible_child_name(1f0a433b96d04ad5). (self->main_stackcxx . . $ _IconEditorWindow#main_stack., "content");
116 }
117
118 self->show_controlscxx . . $ _IconEditorWindow#show_controls. = show_controls;
119
120 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_SHOW_CONTROLScxx . . $ PROP_SHOW_CONTROLS.]);
121 }
122
123 static void
124 icon_editor_window_set_show_boundscxx . . $ icon_editor_window_set_show_bounds(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
125 gbooleancxx . . $ gboolean# show_bounds)
126 {
127 if (self->show_boundscxx . . $ _IconEditorWindow#show_bounds. == show_bounds)
128 return;
129
130 self->show_boundscxx . . $ _IconEditorWindow#show_bounds. = show_bounds;
131 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_SHOW_BOUNDScxx . . $ PROP_SHOW_BOUNDS.]);
132 }
133
134 static void
135 icon_editor_window_set_show_spinescxx . . $ icon_editor_window_set_show_spines(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
136 gbooleancxx . . $ gboolean# show_spines)
137 {
138 if (self->show_spinescxx . . $ _IconEditorWindow#show_spines. == show_spines)
139 return;
140
141 self->show_spinescxx . . $ _IconEditorWindow#show_spines. = show_spines;
142 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_SHOW_SPINEScxx . . $ PROP_SHOW_SPINES.]);
143 }
144
145 static void
146 icon_editor_window_set_show_gridcxx . . $ icon_editor_window_set_show_grid(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
147 gbooleancxx . . $ gboolean# show_grid)
148 {
149 if (self->show_gridcxx . . $ _IconEditorWindow#show_grid. == show_grid)
150 return;
151
152 self->show_gridcxx . . $ _IconEditorWindow#show_grid. = show_grid;
153 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_SHOW_GRIDcxx . . $ PROP_SHOW_GRID.]);
154 }
155
156 static void
157 icon_editor_window_set_invert_colorscxx . . $ icon_editor_window_set_invert_colors(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
158 gbooleancxx . . $ gboolean# invert_colors)
159 {
160 GtkSettingscxx . . $ GtkSettings# *settings;
161
162 if (self->invert_colorscxx . . $ _IconEditorWindow#invert_colors. == invert_colors)
163 return;
164
165 self->invert_colorscxx . . $ _IconEditorWindow#invert_colors. = invert_colors;
166
167 settings = gtk_widget_get_settingscxx . . $ gtk_widget_get_settings(ffe4fbf99830fa29). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self));
168
169 if (invert_colors)
170 {
171 GtkInterfaceColorSchemecxx . . $ GtkInterfaceColorScheme# color_scheme;
172
173 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, "gtk-interface-color-scheme", &color_scheme, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
174 if (color_scheme == GTK_INTERFACE_COLOR_SCHEME_DARKcxx . . $ GTK_INTERFACE_COLOR_SCHEME_DARK.)
175 color_scheme = GTK_INTERFACE_COLOR_SCHEME_LIGHTcxx . . $ GTK_INTERFACE_COLOR_SCHEME_LIGHT.;
176 else
177 color_scheme = GTK_INTERFACE_COLOR_SCHEME_DARKcxx . . $ GTK_INTERFACE_COLOR_SCHEME_DARK.;
178 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (settings, "gtk-interface-color-scheme", color_scheme, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
179 }
180 else
181 gtk_settings_reset_propertycxx . . $ gtk_settings_reset_property(ea98dc5554e3c3de). (settings, "gtk-interface-color-scheme");
182
183 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_INVERT_COLORScxx . . $ PROP_INVERT_COLORS.]);
184 }
185
186 static void
187 update_icon_paintable_stylecxx . . $ update_icon_paintable_style(83bf4976f528cc90). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
188 float weight)
189 {
190 char *css;
191
192 css = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("image.icon-paintable-preview { -gtk-icon-weight: %f; }", weight);
193
194 if (!self->paintable_stylecxx . . $ _IconEditorWindow#paintable_style.)
195 {
196 self->paintable_stylecxx . . $ _IconEditorWindow#paintable_style. = gtk_css_provider_newcxx . . $ gtk_css_provider_new(f6024b130244f968). ();
197 gtk_style_context_add_provider_for_displaycxx . . $ gtk_style_context_add_provider_for_display(8a449d0cfd17a958). (gtk_widget_get_displaycxx . . $ gtk_widget_get_display(6423c64908d5796a). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self)),
198 GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (self->paintable_style),
199 GTK_STYLE_PROVIDER_PRIORITY_APPLICATIONcxx . . $ `gtk/gtkstyleprovider.h:72:9`!);
200 }
201
202 gtk_css_provider_load_from_stringcxx . . $ gtk_css_provider_load_from_string(791d7ec27a3bdea5). (self->paintable_stylecxx . . $ _IconEditorWindow#paintable_style., css);
203
204 g_freecxx . . $ g_free(5d22bdacc48458e8). (css);
205 }
206
207 static void
208 icon_editor_window_set_weightcxx . . $ icon_editor_window_set_weight(83bf4976f528cc90). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
209 float weight)
210 {
211 if (self->weightcxx . . $ _IconEditorWindow#weight. == weight)
212 return;
213
214 self->weightcxx . . $ _IconEditorWindow#weight. = weight;
215
216 path_paintable_set_weightcxx . . $ path_paintable_set_weight(c15336e018e96776). (self->paintablecxx . . $ _IconEditorWindow#paintable., weight);
217
218 update_icon_paintable_stylecxx . . $ update_icon_paintable_style(83bf4976f528cc90). (self, weight);
219
220 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_WEIGHTcxx . . $ PROP_WEIGHT.]);
221 }
222
223 static void
224 icon_editor_window_set_statecxx . . $ icon_editor_window_set_state(6ac8d187edf4a566). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
225 unsigned int state)
226 {
227 if (self->statecxx . . $ _IconEditorWindow#state. == state)
228 return;
229
230 self->statecxx . . $ _IconEditorWindow#state. = state;
231
232 path_paintable_set_statecxx . . $ path_paintable_set_state(a485caca516fd785). (self->paintablecxx . . $ _IconEditorWindow#paintable., state);
233
234 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_STATEcxx . . $ PROP_STATE.]);
235 }
236
237 static void
238 icon_editor_window_set_changedcxx . . $ icon_editor_window_set_changed(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
239 gbooleancxx . . $ gboolean# changed)
240 {
241 GActioncxx . . $ GAction# *action;
242
243 if (self->changedcxx . . $ _IconEditorWindow#changed. == changed)
244 return;
245
246 self->changedcxx . . $ _IconEditorWindow#changed. = changed;
247 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_CHANGEDcxx . . $ PROP_CHANGED.]);
248
249 action = g_action_map_lookup_actioncxx . . $ g_action_map_lookup_action(a35da38ead4c8170). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "save");
250 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (action), changed);
251 action = g_action_map_lookup_actioncxx . . $ g_action_map_lookup_action(a35da38ead4c8170). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "revert");
252 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (action), changed);
253 }
254
255 static void
256 icon_editor_window_set_initial_statecxx . . $ icon_editor_window_set_initial_state(6ac8d187edf4a566). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
257 unsigned int initial_state)
258 {
259 if (self->initial_statecxx . . $ _IconEditorWindow#initial_state. == initial_state)
260 return;
261
262 self->initial_statecxx . . $ _IconEditorWindow#initial_state. = initial_state;
263
264 icon_editor_window_set_changedcxx . . $ icon_editor_window_set_changed(eda31d6d7de2fe33). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
265
266 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_INITIAL_STATEcxx . . $ PROP_INITIAL_STATE.]);
267 }
268
269 static void
270 icon_editor_window_set_playingcxx . . $ icon_editor_window_set_playing(eda31d6d7de2fe33). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
271 gbooleancxx . . $ gboolean# playing)
272 {
273 if (self->playingcxx . . $ _IconEditorWindow#playing. == playing)
274 return;
275
276 self->playingcxx . . $ _IconEditorWindow#playing. = playing;
277
278 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_PLAYINGcxx . . $ PROP_PLAYING.]);
279 }
280
281 /* }}} */
282 /* {{{ Callbacks, utilities */
283
284 static void
285 toggle_controlscxx . . $ toggle_controls(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
286 {
287 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (self, !self->show_controlscxx . . $ _IconEditorWindow#show_controls.);
288 }
289
290 static void
291 paintable_changedcxx . . $ paintable_changed(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
292 {
293 gbooleancxx . . $ gboolean# changed;
294
295 changed = !path_paintable_equalcxx . . $ path_paintable_equal(aa68ab391e244f9). (self->paintablecxx . . $ _IconEditorWindow#paintable., self->orig_paintablecxx . . $ _IconEditorWindow#orig_paintable.);
296
297 icon_editor_window_set_changedcxx . . $ icon_editor_window_set_changed(eda31d6d7de2fe33). (self, changed);
298 }
299
300 static void
301 show_errorcxx . . $ show_error(caf62fe812190d0f). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
302 const char *title,
303 const char *detail)
304 {
305 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkAlertDialog) alert = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
306
307 alert = gtk_alert_dialog_newcxx . . $ gtk_alert_dialog_new(4e5c815afce1ffb2). ("%s", title);
308 gtk_alert_dialog_set_detailcxx . . $ gtk_alert_dialog_set_detail(ee746d0c74298e15). (alert, detail);
309 gtk_alert_dialog_showcxx . . $ gtk_alert_dialog_show(6c2edd87d95daef6). (alert, GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self));
310 }
311
312 /* }}} */
313 /* {{{ Opening/Importing */
314
315 static void
316 load_errorcxx . . $ load_error(ea81532f0f945116). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
317 const char *message)
318 {
319 show_errorcxx . . $ show_error(caf62fe812190d0f). (self, "Loading failed", message);
320 }
321
322 static void
323 set_random_iconscxx . . $ set_random_icons(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
324 {
325 const char *names[] = {
326 "bookmark-new-symbolic",
327 "color-select-symbolic",
328 "document-open-recent-symbolic",
329 "document-open-symbolic",
330 "document-save-as-symbolic",
331 "document-save-symbolic",
332 "edit-clear-all-symbolic",
333 "edit-clear-symbolic-rtl",
334 "edit-clear-symbolic",
335 "edit-copy-symbolic",
336 "edit-cut-symbolic",
337 "edit-delete-symbolic",
338 "edit-find-symbolic",
339 "edit-paste-symbolic",
340 "edit-select-all-symbolic",
341 "find-location-symbolic",
342 "folder-new-symbolic",
343 "function-linear-symbolic",
344 "go-down-symbolic",
345 "go-next-symbolic-rtl",
346 "go-next-symbolic",
347 "go-previous-symbolic-rtl",
348 "go-previous-symbolic",
349 "go-up-symbolic",
350 "info-outline-symbolic",
351 "insert-image-symbolic",
352 "insert-object-symbolic",
353 "list-add-symbolic",
354 "list-remove-all-symbolic",
355 "list-remove-symbolic",
356 "media-eject-symbolic",
357 "media-playback-pause-symbolic",
358 "media-playback-start-symbolic",
359 "media-playback-stop-symbolic",
360 "media-record-symbolic",
361 "object-select-symbolic",
362 "open-menu-symbolic",
363 "pan-down-symbolic",
364 "pan-end-symbolic-rtl",
365 "pan-end-symbolic",
366 "pan-start-symbolic-rtl",
367 "pan-start-symbolic",
368 "pan-up-symbolic",
369 "system-run-symbolic",
370 "system-search-symbolic",
371 "value-decrease-symbolic",
372 "value-increase-symbolic",
373 "view-conceal-symbolic",
374 "view-grid-symbolic",
375 "view-list-symbolic",
376 "view-more-symbolic",
377 "view-refresh-symbolic",
378 "view-reveal-symbolic",
379 "window-close-symbolic",
380 "window-maximize-symbolic",
381 "window-minimize-symbolic",
382 "window-restore-symbolic",
383 "zoom-in-symbolic",
384 "zoom-original-symbolic",
385 "zoom-out-symbolic",
386 "emoji-activities-symbolic",
387 "emoji-body-symbolic",
388 "emoji-flags-symbolic",
389 "emoji-food-symbolic",
390 "emoji-nature-symbolic",
391 "emoji-objects-symbolic",
392 "emoji-people-symbolic",
393 "emoji-recent-symbolic",
394 "emoji-symbols-symbolic",
395 "emoji-travel-symbolic",
396 "audio-volume-high-symbolic",
397 "audio-volume-low-symbolic",
398 "audio-volume-medium-symbolic",
399 "audio-volume-muted-symbolic",
400 "caps-lock-symbolic",
401 "changes-allow-symbolic",
402 "changes-prevent-symbolic",
403 "dialog-error-symbolic",
404 "dialog-information-symbolic",
405 "dialog-password-symbolic",
406 "dialog-question-symbolic",
407 "dialog-warning-symbolic",
408 "display-brightness-symbolic",
409 "media-playlist-repeat-symbolic",
410 "orientation-landscape-inverse-symbolic",
411 "orientation-landscape-symbolic",
412 "orientation-portrait-inverse-symbolic",
413 "orientation-portrait-symbolic",
414 "process-working-symbolic",
415 "switch-off-symbolic",
416 "switch-on-symbolic",
417 };
418 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkBitset) used = gtk_bitset_new_emptycxx . . $ gtk_bitset_new_empty(7215c10b13ba217f). ();
419
420 for (unsigned int i = 0; i < 24; i++)
421 {
422 uint32_tcxx . . $ uint32_t# r;
423 g_autofreecxx . . $ `<external>/12741050725406041920/gmacros.h:1429:9`! char *path;
424 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkSvg) paintable = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
425
426 do {
427 r = g_random_int_rangecxx . . $ g_random_int_range(9b79fb6aee4c0440). (0, (uint32_tcxx . . $ uint32_t#) G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (names));
428 } while (gtk_bitset_containscxx . . $ gtk_bitset_contains(b5dbc79c3ad10a04). (used, r));
429
430 path = g_strconcatcxx . . $ g_strconcat(a849077ff1b8d812). ("/org/gtk/libgtk/icons/", names[r], ".svg", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
431 paintable = gtk_svg_new_from_resourcecxx . . $ gtk_svg_new_from_resource(6348aab8bd92b079). (path);
432 gtk_svg_set_statecxx . . $ gtk_svg_set_state(e6279f62a0c48c0). (paintable, 0);
433 gtk_svg_playcxx . . $ gtk_svg_play(25a6314994c4dcaf). (paintable);
434 g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (self, "weight",
435 paintable, "weight",
436 G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.);
437 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[i], GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (paintable));
438 gtk_widget_set_tooltip_textcxx . . $ gtk_widget_set_tooltip_text(3e0616a87a6c51e5). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self->images[i]), names[r]);
439 gtk_bitset_addcxx . . $ gtk_bitset_add(ccf69cc021ffb008). (used, r);
440 }
441
442 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[g_random_int_rangecxx . . $ g_random_int_range(9b79fb6aee4c0440). (0, 3)], GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self->paintablecxx . . $ _IconEditorWindow#paintable.));
443 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[g_random_int_rangecxx . . $ g_random_int_range(9b79fb6aee4c0440). (4, 7)], GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self->paintablecxx . . $ _IconEditorWindow#paintable.));
444 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[g_random_int_rangecxx . . $ g_random_int_range(9b79fb6aee4c0440). (8, 15)], GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self->paintablecxx . . $ _IconEditorWindow#paintable.));
445 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->imagescxx . . $ _IconEditorWindow#$anonymous_type_0#images.[g_random_int_rangecxx . . $ g_random_int_range(9b79fb6aee4c0440). (16, 23)], GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (self->paintablecxx . . $ _IconEditorWindow#paintable.));
446 }
447
448 static void
449 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
450 PathPaintablecxx . . $ PathPaintable# *paintable)
451 {
452 if (self->paintablecxx . . $ _IconEditorWindow#paintable. == paintable)
453 return;
454
455 if (self->paintablecxx . . $ _IconEditorWindow#paintable.)
456 {
457 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (self->paintable, paintable_changed, self);
458 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->playing_binding);
459 }
460
461 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&self->paintable, paintable);
462
463 if (self->paintablecxx . . $ _IconEditorWindow#paintable.)
464 {
465 path_paintable_set_frame_clockcxx . . $ path_paintable_set_frame_clock(899b0424109fae88). (self->paintablecxx . . $ _IconEditorWindow#paintable., gtk_widget_get_frame_clockcxx . . $ gtk_widget_get_frame_clock(82b8f1b122c490a1). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self)));
466 icon_editor_window_set_statecxx . . $ icon_editor_window_set_state(6ac8d187edf4a566). (self, path_paintable_get_statecxx . . $ path_paintable_get_state(57b981cbae20163a). (paintable));
467 icon_editor_window_set_initial_statecxx . . $ icon_editor_window_set_initial_state(6ac8d187edf4a566). (self, path_paintable_get_statecxx . . $ path_paintable_get_state(57b981cbae20163a). (paintable));
468
469 g_signal_connect_swappedcxx . . $ `<external>/15952772511652638895/gsignal.h:617:9`! (self->paintable, "changed",
470 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (paintable_changed), self);
471
472 self->playing_bindingcxx . . $ _IconEditorWindow#playing_binding. = g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (self, "playing",
473 self->paintablecxx . . $ _IconEditorWindow#paintable., "playing",
474 G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.);
475
476 set_random_iconscxx . . $ set_random_icons(393c55041694a50e). (self);
477
478 if (path_paintable_get_n_pathscxx . . $ path_paintable_get_n_paths(143b05c78c0369dc). (self->paintablecxx . . $ _IconEditorWindow#paintable.) > 0)
479 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
480 }
481
482 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->orig_paintable);
483 if (paintable)
484 self->orig_paintablecxx . . $ _IconEditorWindow#orig_paintable. = path_paintable_copycxx . . $ path_paintable_copy(71737795e544eaec). (paintable);
485
486 icon_editor_window_set_changedcxx . . $ icon_editor_window_set_changed(eda31d6d7de2fe33). (self, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
487
488 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_PAINTABLEcxx . . $ PROP_PAINTABLE.]);
489 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_CHANGEDcxx . . $ PROP_CHANGED.]);
490 }
491
492 static gbooleancxx . . $ gboolean#
493 load_bytescxx . . $ load_bytes(fae2797ebb372c5b). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
494 GBytescxx . . $ GBytes# *bytes)
495 {
496 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
497 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (PathPaintable) paintable = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
498
499 if (!g_utf8_validatecxx . . $ g_utf8_validate(5b8a8496e2429420). (g_bytes_get_datacxx . . $ g_bytes_get_data(e1c692f77020eb9f). (bytes, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!), g_bytes_get_sizecxx . . $ g_bytes_get_size(e1085f059f6486). (bytes), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))
500 {
501 load_errorcxx . . $ load_error(ea81532f0f945116). (self, "Invalid UTF-8");
502 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
503 }
504
505 paintable = path_paintable_new_from_bytescxx . . $ path_paintable_new_from_bytes(377d4a57b1629e1f). (bytes, &error);
506 if (!paintable)
507 {
508 load_errorcxx . . $ load_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
509 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
510 }
511
512 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, paintable);
513
514 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
515 }
516
517 static gbooleancxx . . $ gboolean#
518 load_file_contentscxx . . $ load_file_contents(2c5295c9b9659e02). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
519 GFilecxx . . $ GFile# *file)
520 {
521 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GBytes) bytes = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
522 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
523
524 bytes = g_file_load_bytescxx . . $ g_file_load_bytes(18620e260c3da24b). (file, 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`!, &error);
525 if (!bytes)
526 {
527 load_errorcxx . . $ load_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
528 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
529 }
530
531 return load_bytescxx . . $ load_bytes(fae2797ebb372c5b). (self, bytes);
532 }
533
534 static gbooleancxx . . $ gboolean#
535 file_dropcxx . . $ file_drop(4e2d0c5084d29da6). (GtkDropTargetcxx . . $ GtkDropTarget# *target,
536 const GValuecxx . . $ GValue# *value,
537 double x,
538 double y,
539 gpointercxx . . $ gpointer# user_data)
540 {
541 if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (value, G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!))
542 {
543 GtkWidgetcxx . . $ GtkWidget# *self = gtk_event_controller_get_widgetcxx . . $ gtk_event_controller_get_widget(71aab0125320da1a). (GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (target));
544 GFilecxx . . $ GFile# *file = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value);
545
546 icon_editor_window_loadcxx . . $ icon_editor_window_load(2c5295c9b9659e02). (ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (self), file);
547 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
548 }
549
550 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
551 }
552
553 static void
554 open_response_cbcxx . . $ open_response_cb(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
555 GAsyncResultcxx . . $ GAsyncResult# *result,
556 void *user_data)
557 {
558 GtkFileDialogcxx . . $ GtkFileDialog# *dialog = GTK_FILE_DIALOGcxx . . $ GTK_FILE_DIALOG(a1bf18d381298cdc). (source);
559 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
560 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) file = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
561 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
562
563 file = gtk_file_dialog_open_finishcxx . . $ gtk_file_dialog_open_finish(19fba5e91a127fe). (dialog, result, &error);
564 if (!file)
565 {
566 if (!g_error_matchescxx . . $ g_error_matches(604444fafc3e7b63). (error, GTK_DIALOG_ERRORcxx . . $ `gtk/gtkdialogerror.h:36:9`!, GTK_DIALOG_ERROR_DISMISSEDcxx . . $ GTK_DIALOG_ERROR_DISMISSED.))
567 load_errorcxx . . $ load_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
568 return;
569 }
570
571 icon_editor_window_loadcxx . . $ icon_editor_window_load(2c5295c9b9659e02). (self, file);
572 }
573
574 static void
575 show_open_filechoosercxx . . $ show_open_filechooser(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
576 {
577 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkFileDialog) dialog = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
578 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GListStore) filters = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
579 GtkFileFiltercxx . . $ GtkFileFilter# *filter;
580
581 filters = g_list_store_newcxx . . $ g_list_store_new(3a1260efc23394a5). (GTK_TYPE_FILE_FILTERcxx . . $ `gtk/gtkfilefilter.h:30:9`!);
582 filter = gtk_file_filter_newcxx . . $ gtk_file_filter_new(806b88e386f6f0ef). ();
583 gtk_file_filter_set_namecxx . . $ gtk_file_filter_set_name(102c1e828b503e54). (filter, "All files");
584 gtk_file_filter_add_patterncxx . . $ gtk_file_filter_add_pattern(102c1e828b503e54). (filter, "*");
585 g_list_store_appendcxx . . $ g_list_store_append(fe077dfa3c2ace38). (filters, filter);
586 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (filter);
587 filter = gtk_file_filter_newcxx . . $ gtk_file_filter_new(806b88e386f6f0ef). ();
588 gtk_file_filter_set_namecxx . . $ gtk_file_filter_set_name(102c1e828b503e54). (filter, "SVG files");
589 gtk_file_filter_add_mime_typecxx . . $ gtk_file_filter_add_mime_type(102c1e828b503e54). (filter, "image/svg+xml");
590 g_list_store_appendcxx . . $ g_list_store_append(fe077dfa3c2ace38). (filters, filter);
591 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (filter);
592 filter = gtk_file_filter_newcxx . . $ gtk_file_filter_new(806b88e386f6f0ef). ();
593 gtk_file_filter_set_namecxx . . $ gtk_file_filter_set_name(102c1e828b503e54). (filter, "GTK icons");
594 gtk_file_filter_add_mime_typecxx . . $ gtk_file_filter_add_mime_type(102c1e828b503e54). (filter, "image/x-gtk-path-animation");
595 gtk_file_filter_add_patterncxx . . $ gtk_file_filter_add_pattern(102c1e828b503e54). (filter, "*.gpa");
596 g_list_store_appendcxx . . $ g_list_store_append(fe077dfa3c2ace38). (filters, filter);
597 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (filter);
598
599 dialog = gtk_file_dialog_newcxx . . $ gtk_file_dialog_new(f87ea6f797710591). ();
600 gtk_file_dialog_set_titlecxx . . $ gtk_file_dialog_set_title(422a78432ccd4654). (dialog, "Open icon file");
601
602 gtk_file_dialog_set_filterscxx . . $ gtk_file_dialog_set_filters(284a29b79bc34a5c). (dialog, G_LIST_MODELcxx . . $ G_LIST_MODEL(26f73d2a39e7201f). (filters));
603
604 if (self->filecxx . . $ _IconEditorWindow#file.)
605 {
606 gtk_file_dialog_set_initial_filecxx . . $ gtk_file_dialog_set_initial_file(eb109179525ac422). (dialog, self->filecxx . . $ _IconEditorWindow#file.);
607 }
608 else
609 {
610 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) cwd = g_file_new_for_pathcxx . . $ g_file_new_for_path(ba1fd5950b7d7bd5). (".");
611 gtk_file_dialog_set_initial_foldercxx . . $ gtk_file_dialog_set_initial_folder(eb109179525ac422). (dialog, cwd);
612 }
613
614
615 gtk_file_dialog_opencxx . . $ gtk_file_dialog_open(226bffbed4ba5314). (dialog, GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self),
616 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, open_response_cbcxx . . $ open_response_cb(aa1d200d824d915d)., self);
617 }
618
619 /* }}} */
620 /* {{{ Saving/Exporting */
621
622 static void
623 save_errorcxx . . $ save_error(ea81532f0f945116). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
624 const char *message)
625 {
626 show_errorcxx . . $ show_error(caf62fe812190d0f). (self, "Saving failed", message);
627 }
628
629 static void
630 save_to_filecxx . . $ save_to_file(4a817a6fa22d798c). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
631 GFilecxx . . $ GFile# *file)
632 {
633 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GBytes) bytes = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
634 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
635
636 bytes = path_paintable_serializecxx . . $ path_paintable_serialize(647ba27ee771617c). (self->paintablecxx . . $ _IconEditorWindow#paintable., self->initial_statecxx . . $ _IconEditorWindow#initial_state.);
637 if (!g_file_replace_contentscxx . . $ g_file_replace_contents(5f1f28f250e4f72e). (file,
638 g_bytes_get_datacxx . . $ g_bytes_get_data(e1c692f77020eb9f). (bytes, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!),
639 g_bytes_get_sizecxx . . $ g_bytes_get_size(e1085f059f6486). (bytes),
640 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
641 G_FILE_CREATE_NONEcxx . . $ G_FILE_CREATE_NONE.,
642 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
643 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
644 &error))
645 {
646 save_errorcxx . . $ save_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
647 return;
648 }
649
650 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&self->file, file);
651 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&self->orig_paintable, path_paintable_copy (self->paintable));
652 icon_editor_window_set_changedcxx . . $ icon_editor_window_set_changed(eda31d6d7de2fe33). (self, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
653 }
654
655 static void
656 save_response_cbcxx . . $ save_response_cb(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
657 GAsyncResultcxx . . $ GAsyncResult# *result,
658 void *user_data)
659 {
660 GtkFileDialogcxx . . $ GtkFileDialog# *dialog = GTK_FILE_DIALOGcxx . . $ GTK_FILE_DIALOG(a1bf18d381298cdc). (source);
661 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
662 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) file = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
663 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
664
665 file = gtk_file_dialog_save_finishcxx . . $ gtk_file_dialog_save_finish(19fba5e91a127fe). (dialog, result, &error);
666 if (!file)
667 {
668 if (!g_error_matchescxx . . $ g_error_matches(604444fafc3e7b63). (error, GTK_DIALOG_ERRORcxx . . $ `gtk/gtkdialogerror.h:36:9`!, GTK_DIALOG_ERROR_DISMISSEDcxx . . $ GTK_DIALOG_ERROR_DISMISSED.))
669 save_errorcxx . . $ save_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
670 return;
671 }
672
673 save_to_filecxx . . $ save_to_file(4a817a6fa22d798c). (self, file);
674 }
675
676 static void
677 show_save_filechoosercxx . . $ show_save_filechooser(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
678 {
679 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkFileDialog) dialog = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
680
681 dialog = gtk_file_dialog_newcxx . . $ gtk_file_dialog_new(f87ea6f797710591). ();
682 gtk_file_dialog_set_titlecxx . . $ gtk_file_dialog_set_title(422a78432ccd4654). (dialog, "Save icon");
683 if (self->filecxx . . $ _IconEditorWindow#file.)
684 {
685 gtk_file_dialog_set_initial_filecxx . . $ gtk_file_dialog_set_initial_file(eb109179525ac422). (dialog, self->filecxx . . $ _IconEditorWindow#file.);
686 }
687 else
688 {
689 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) cwd = g_file_new_for_pathcxx . . $ g_file_new_for_path(ba1fd5950b7d7bd5). (".");
690 gtk_file_dialog_set_initial_foldercxx . . $ gtk_file_dialog_set_initial_folder(eb109179525ac422). (dialog, cwd);
691 gtk_file_dialog_set_initial_namecxx . . $ gtk_file_dialog_set_initial_name(422a78432ccd4654). (dialog, "demo.gpa");
692 }
693
694 gtk_file_dialog_savecxx . . $ gtk_file_dialog_save(226bffbed4ba5314). (dialog,
695 GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self),
696 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
697 save_response_cbcxx . . $ save_response_cb(aa1d200d824d915d)., self);
698 }
699
700 static void
701 export_to_filecxx . . $ export_to_file(4a817a6fa22d798c). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
702 GFilecxx . . $ GFile# *file)
703 {
704 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GBytes) bytes = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
705 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
706
707 bytes = path_paintable_serialize_as_svgcxx . . $ path_paintable_serialize_as_svg(512658429e7ac8d3). (self->paintablecxx . . $ _IconEditorWindow#paintable.);
708 if (!g_file_replace_contentscxx . . $ g_file_replace_contents(5f1f28f250e4f72e). (file,
709 g_bytes_get_datacxx . . $ g_bytes_get_data(e1c692f77020eb9f). (bytes, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!),
710 g_bytes_get_sizecxx . . $ g_bytes_get_size(e1085f059f6486). (bytes),
711 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
712 G_FILE_CREATE_NONEcxx . . $ G_FILE_CREATE_NONE.,
713 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
714 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
715 &error))
716 {
717 save_errorcxx . . $ save_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
718 return;
719 }
720 }
721
722 static void
723 export_response_cbcxx . . $ export_response_cb(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
724 GAsyncResultcxx . . $ GAsyncResult# *result,
725 void *user_data)
726 {
727 GtkFileDialogcxx . . $ GtkFileDialog# *dialog = GTK_FILE_DIALOGcxx . . $ GTK_FILE_DIALOG(a1bf18d381298cdc). (source);
728 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
729 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) file = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
730 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
731
732 file = gtk_file_dialog_save_finishcxx . . $ gtk_file_dialog_save_finish(19fba5e91a127fe). (dialog, result, &error);
733 if (!file)
734 {
735 if (!g_error_matchescxx . . $ g_error_matches(604444fafc3e7b63). (error, GTK_DIALOG_ERRORcxx . . $ `gtk/gtkdialogerror.h:36:9`!, GTK_DIALOG_ERROR_DISMISSEDcxx . . $ GTK_DIALOG_ERROR_DISMISSED.))
736 save_errorcxx . . $ save_error(ea81532f0f945116). (self, error->messagecxx . . $ _GError#message.);
737 return;
738 }
739
740 export_to_filecxx . . $ export_to_file(4a817a6fa22d798c). (self, file);
741 }
742
743 static void
744 show_export_filechoosercxx . . $ show_export_filechooser(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
745 {
746 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkFileDialog) dialog = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
747 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) cwd = g_file_new_for_pathcxx . . $ g_file_new_for_path(ba1fd5950b7d7bd5). (".");
748
749 dialog = gtk_file_dialog_newcxx . . $ gtk_file_dialog_new(f87ea6f797710591). ();
750 gtk_file_dialog_set_titlecxx . . $ gtk_file_dialog_set_title(422a78432ccd4654). (dialog, "Export as SVG");
751 gtk_file_dialog_set_initial_foldercxx . . $ gtk_file_dialog_set_initial_folder(eb109179525ac422). (dialog, cwd);
752 gtk_file_dialog_set_initial_namecxx . . $ gtk_file_dialog_set_initial_name(422a78432ccd4654). (dialog, "demo.svg");
753
754 gtk_file_dialog_savecxx . . $ gtk_file_dialog_save(226bffbed4ba5314). (dialog,
755 GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self),
756 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
757 export_response_cbcxx . . $ export_response_cb(aa1d200d824d915d)., self);
758 }
759
760 /* }}} */
761 /* {{{ GtkWindow implementation */
762
763 static void
764 quit_alert_donecxx . . $ quit_alert_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
765 GAsyncResultcxx . . $ GAsyncResult# *result,
766 gpointercxx . . $ gpointer# data)
767 {
768 GtkAlertDialogcxx . . $ GtkAlertDialog# *alert = GTK_ALERT_DIALOGcxx . . $ GTK_ALERT_DIALOG(42519f0d472910f0). (source);
769 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (data);
770 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
771 int res;
772
773 res = gtk_alert_dialog_choose_finishcxx . . $ gtk_alert_dialog_choose_finish(59bd1cf911ec6b9c). (alert, result, &error);
774 if (res == -1)
775 return;
776
777 if (res == 0)
778 {
779 if (self->filecxx . . $ _IconEditorWindow#file.)
780 save_to_filecxx . . $ save_to_file(4a817a6fa22d798c). (self, self->filecxx . . $ _IconEditorWindow#file.);
781 else
782 show_save_filechoosercxx . . $ show_save_filechooser(393c55041694a50e). (self);
783 }
784 else if (res == 1)
785 {
786 self->changedcxx . . $ _IconEditorWindow#changed. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
787 gtk_window_closecxx . . $ gtk_window_close(f2417dd135ed86f3). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self));
788 }
789 }
790
791
792 static gbooleancxx . . $ gboolean#
793 icon_editor_window_close_requestcxx . . $ icon_editor_window_close_request(b9ada049f487cdbd). (GtkWindowcxx . . $ GtkWindow# *window)
794 {
795 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (window);
796
797 if (self->changedcxx . . $ _IconEditorWindow#changed.)
798 {
799 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkAlertDialog) alert = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
800 const char *buttons[] = { "Save", "Quit", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
801
802 alert = gtk_alert_dialog_newcxx . . $ gtk_alert_dialog_new(4e5c815afce1ffb2). ("Unsaved changes");
803 gtk_alert_dialog_set_detailcxx . . $ gtk_alert_dialog_set_detail(ee746d0c74298e15). (alert, "The icon contains unsaved changes.");
804 gtk_alert_dialog_set_modalcxx . . $ gtk_alert_dialog_set_modal(fc873d9b9ed411c4). (alert, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
805 gtk_alert_dialog_set_buttonscxx . . $ gtk_alert_dialog_set_buttons(a039d08122bd725e). (alert, buttons);
806 gtk_alert_dialog_set_default_buttoncxx . . $ gtk_alert_dialog_set_default_button(fc873d9b9ed411c4). (alert, 0);
807 gtk_alert_dialog_choosecxx . . $ gtk_alert_dialog_choose(61dce01a1d102b04). (alert, window, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, quit_alert_donecxx . . $ quit_alert_done(aa1d200d824d915d)., self);
808
809 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
810 }
811
812 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
813 }
814
815 /* }}} */
816 /* {{{ Actions */
817
818 static void
819 file_opencxx . . $ file_open(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
820 GVariantcxx . . $ GVariant# *parameter,
821 gpointercxx . . $ gpointer# user_data)
822 {
823 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
824
825 show_open_filechoosercxx . . $ show_open_filechooser(393c55041694a50e). (self);
826 }
827
828 static void
829 file_savecxx . . $ file_save(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
830 GVariantcxx . . $ GVariant# *parameter,
831 gpointercxx . . $ gpointer# user_data)
832 {
833 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
834
835 if (self->filecxx . . $ _IconEditorWindow#file.)
836 save_to_filecxx . . $ save_to_file(4a817a6fa22d798c). (self, self->filecxx . . $ _IconEditorWindow#file.);
837 else
838 show_save_filechoosercxx . . $ show_save_filechooser(393c55041694a50e). (self);
839 }
840
841 static void
842 file_save_ascxx . . $ file_save_as(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
843 GVariantcxx . . $ GVariant# *parameter,
844 gpointercxx . . $ gpointer# user_data)
845 {
846 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
847
848 show_save_filechoosercxx . . $ show_save_filechooser(393c55041694a50e). (self);
849 }
850
851 static void
852 file_exportcxx . . $ file_export(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
853 GVariantcxx . . $ GVariant# *parameter,
854 gpointercxx . . $ gpointer# user_data)
855 {
856 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
857
858 show_export_filechoosercxx . . $ show_export_filechooser(393c55041694a50e). (self);
859 }
860
861 static void
862 back_to_emptycxx . . $ back_to_empty(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
863 {
864 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (PathPaintable) paintable = path_paintable_newcxx . . $ path_paintable_new(10156ecc823c2f80). ();
865 GActioncxx . . $ GAction# *action;
866
867 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, paintable);
868 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (self, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
869
870 gtk_stack_set_visible_child_namecxx . . $ gtk_stack_set_visible_child_name(1f0a433b96d04ad5). (self->main_stackcxx . . $ _IconEditorWindow#main_stack., "empty");
871 action = g_action_map_lookup_actioncxx . . $ g_action_map_lookup_action(a35da38ead4c8170). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "close");
872 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (action), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
873 }
874
875 static void
876 close_alert_donecxx . . $ close_alert_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
877 GAsyncResultcxx . . $ GAsyncResult# *result,
878 gpointercxx . . $ gpointer# data)
879 {
880 GtkAlertDialogcxx . . $ GtkAlertDialog# *alert = GTK_ALERT_DIALOGcxx . . $ GTK_ALERT_DIALOG(42519f0d472910f0). (source);
881 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (data);
882 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
883 int res;
884
885 res = gtk_alert_dialog_choose_finishcxx . . $ gtk_alert_dialog_choose_finish(59bd1cf911ec6b9c). (alert, result, &error);
886 if (res == -1)
887 return;
888
889 if (res == 0)
890 {
891 if (self->filecxx . . $ _IconEditorWindow#file.)
892 save_to_filecxx . . $ save_to_file(4a817a6fa22d798c). (self, self->filecxx . . $ _IconEditorWindow#file.);
893 else
894 show_save_filechoosercxx . . $ show_save_filechooser(393c55041694a50e). (self);
895 }
896 else if (res == 1)
897 {
898 back_to_emptycxx . . $ back_to_empty(393c55041694a50e). (self);
899 }
900 }
901
902 static void
903 file_closecxx . . $ file_close(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
904 GVariantcxx . . $ GVariant# *parameter,
905 gpointercxx . . $ gpointer# user_data)
906 {
907 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
908
909 if (self->changedcxx . . $ _IconEditorWindow#changed.)
910 {
911 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkAlertDialog) alert = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
912 const char *buttons[] = { "Save", "Close", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! };
913
914 alert = gtk_alert_dialog_newcxx . . $ gtk_alert_dialog_new(4e5c815afce1ffb2). ("Unsaved changes");
915 gtk_alert_dialog_set_detailcxx . . $ gtk_alert_dialog_set_detail(ee746d0c74298e15). (alert, "The icon contains unsaved changes.");
916 gtk_alert_dialog_set_modalcxx . . $ gtk_alert_dialog_set_modal(fc873d9b9ed411c4). (alert, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
917 gtk_alert_dialog_set_buttonscxx . . $ gtk_alert_dialog_set_buttons(a039d08122bd725e). (alert, buttons);
918 gtk_alert_dialog_set_default_buttoncxx . . $ gtk_alert_dialog_set_default_button(fc873d9b9ed411c4). (alert, 0);
919 gtk_alert_dialog_choosecxx . . $ gtk_alert_dialog_choose(61dce01a1d102b04). (alert, GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, close_alert_donecxx . . $ close_alert_done(aa1d200d824d915d)., self);
920 }
921 else
922 {
923 back_to_emptycxx . . $ back_to_empty(393c55041694a50e). (self);
924 }
925 }
926
927 static void
928 revert_changescxx . . $ revert_changes(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
929 GVariantcxx . . $ GVariant# *parameter,
930 gpointercxx . . $ gpointer# user_data)
931 {
932 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
933
934 if (!self->paintablecxx . . $ _IconEditorWindow#paintable.)
935 return;
936
937 path_paintable_set_statecxx . . $ path_paintable_set_state(a485caca516fd785). (self->orig_paintablecxx . . $ _IconEditorWindow#orig_paintable., path_paintable_get_statecxx . . $ path_paintable_get_state(57b981cbae20163a). (self->paintablecxx . . $ _IconEditorWindow#paintable.));
938 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, self->orig_paintablecxx . . $ _IconEditorWindow#orig_paintable.);
939 }
940
941 static void
942 add_pathcxx . . $ add_path(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
943 GVariantcxx . . $ GVariant# *parameter,
944 gpointercxx . . $ gpointer# user_data)
945 {
946 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
947
948 paintable_editor_add_pathcxx . . $ paintable_editor_add_path(50c207b2b4859223). (self->paintable_editorcxx . . $ _IconEditorWindow#paintable_editor.);
949 }
950
951 static void
952 edit_statescxx . . $ edit_states(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
953 GVariantcxx . . $ GVariant# *parameter,
954 gpointercxx . . $ gpointer# user_data)
955 {
956 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
957 StateEditorcxx . . $ StateEditor# *editor;
958
959 editor = state_editor_newcxx . . $ state_editor_new(2ae85ab72c4491d3). ();
960 gtk_window_set_transient_forcxx . . $ gtk_window_set_transient_for(6701bc127c5ef35c). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (editor), GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self));
961
962 state_editor_set_paintablecxx . . $ state_editor_set_paintable(7c09a7ad9bf13dc3). (editor, self->paintablecxx . . $ _IconEditorWindow#paintable.);
963
964 gtk_window_presentcxx . . $ gtk_window_present(f2417dd135ed86f3). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (editor));
965 }
966
967 static void
968 show_controlscxx . . $ show_controls(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
969 GVariantcxx . . $ GVariant# *parameter,
970 gpointercxx . . $ gpointer# user_data)
971 {
972 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
973
974 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
975 }
976
977 static void
978 open_examplecxx . . $ open_example(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
979 GVariantcxx . . $ GVariant# *parameter,
980 gpointercxx . . $ gpointer# user_data)
981 {
982 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
983 g_autofreecxx . . $ `<external>/12741050725406041920/gmacros.h:1429:9`! char *path = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
984 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (PathPaintable) paintable = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
985
986 path = g_strconcatcxx . . $ g_strconcat(a849077ff1b8d812). ("/org/gtk/Shaper/",
987 g_variant_get_stringcxx . . $ g_variant_get_string(5d5cac9792ea78b8). (parameter, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!),
988 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
989
990 paintable = path_paintable_new_from_resourcecxx . . $ path_paintable_new_from_resource(d5f361c9fb51d61d). (path);
991
992 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, paintable);
993 }
994
995 static void
996 reshufflecxx . . $ reshuffle(679672dd5b90f6e2). (GSimpleActioncxx . . $ GSimpleAction# *action,
997 GVariantcxx . . $ GVariant# *parameter,
998 gpointercxx . . $ gpointer# user_data)
999 {
1000 IconEditorWindowcxx . . $ IconEditorWindow# *self = user_data;
1001
1002 set_random_iconscxx . . $ set_random_icons(393c55041694a50e). (self);
1003 }
1004
1005 static GActionEntrycxx . . $ GActionEntry# win_entriescxx . . $ win_entries.[] = {
1006 { "open", file_opencxx . . $ file_open(679672dd5b90f6e2)., 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`! },
1007 { "save", file_savecxx . . $ file_save(679672dd5b90f6e2)., 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`! },
1008 { "save-as", file_save_ascxx . . $ file_save_as(679672dd5b90f6e2)., 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`! },
1009 { "export", file_exportcxx . . $ file_export(679672dd5b90f6e2)., 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`! },
1010 { "revert", revert_changescxx . . $ revert_changes(679672dd5b90f6e2)., 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`! },
1011 { "close", file_closecxx . . $ file_close(679672dd5b90f6e2)., 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`! },
1012 { "add-path", add_pathcxx . . $ add_path(679672dd5b90f6e2)., 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`! },
1013 { "edit-states", edit_statescxx . . $ edit_states(679672dd5b90f6e2)., 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`! },
1014 { "show-controls", show_controlscxx . . $ show_controls(679672dd5b90f6e2)., 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`! },
1015 { "open-example", open_examplecxx . . $ open_example(679672dd5b90f6e2)., "s", 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`! },
1016 { "reshuffle", reshufflecxx . . $ reshuffle(679672dd5b90f6e2)., 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`! },
1017 };
1018
1019 /* }}} */
1020 /* {{{ GObject boilerplate */
1021
1022 static void
1023 icon_editor_window_initcxx . . $ icon_editor_window_init(393c55041694a50e). (IconEditorWindowcxx . . $ IconEditorWindow# *self)
1024 {
1025 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GPropertyAction) action = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1026 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (PathPaintable) paintable = path_paintable_newcxx . . $ path_paintable_new(10156ecc823c2f80). ();
1027
1028 self->weightcxx . . $ _IconEditorWindow#weight. = 400;
1029 self->statecxx . . $ _IconEditorWindow#state. = 0;
1030 self->playingcxx . . $ _IconEditorWindow#playing. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1031
1032 gtk_widget_init_templatecxx . . $ gtk_widget_init_template(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self));
1033
1034 g_action_map_add_action_entriescxx . . $ g_action_map_add_action_entries(79e0db0f7727624f). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self),
1035 win_entriescxx . . $ win_entries., G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (win_entries),
1036 self);
1037
1038 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&action, g_property_action_new ("invert-colors", self, "invert-colors"));
1039 g_action_map_add_actioncxx . . $ g_action_map_add_action(c031ced9b624ca0a). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), G_ACTIONcxx . . $ `<external>/4927576621387421614/gaction.h:34:9`! (action));
1040
1041 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&action, g_property_action_new ("show-bounds", self, "show-bounds"));
1042 g_action_map_add_actioncxx . . $ g_action_map_add_action(c031ced9b624ca0a). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), G_ACTIONcxx . . $ `<external>/4927576621387421614/gaction.h:34:9`! (action));
1043
1044 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&action, g_property_action_new ("show-spines", self, "show-spines"));
1045 g_action_map_add_actioncxx . . $ g_action_map_add_action(c031ced9b624ca0a). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), G_ACTIONcxx . . $ `<external>/4927576621387421614/gaction.h:34:9`! (action));
1046
1047 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&action, g_property_action_new ("show-grid", self, "show-grid"));
1048 g_action_map_add_actioncxx . . $ g_action_map_add_action(c031ced9b624ca0a). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), G_ACTIONcxx . . $ `<external>/4927576621387421614/gaction.h:34:9`! (action));
1049
1050 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&action, g_property_action_new ("set-playing", self, "playing"));
1051 g_action_map_add_actioncxx . . $ g_action_map_add_action(c031ced9b624ca0a). (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), G_ACTIONcxx . . $ `<external>/4927576621387421614/gaction.h:34:9`! (action));
1052
1053 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (g_action_map_lookup_action (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "save")), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1054
1055 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (g_action_map_lookup_action (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "revert")), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1056
1057 g_simple_action_set_enabledcxx . . $ g_simple_action_set_enabled(ab58cdf58f04a5b8). (G_SIMPLE_ACTIONcxx . . $ `<external>/8320783298595883819/gsimpleaction.h:34:9`! (g_action_map_lookup_action (G_ACTION_MAPcxx . . $ `<external>/8692053299015392416/gactionmap.h:35:9`! (self), "close")), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
1058
1059 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, paintable);
1060 }
1061
1062 static void
1063 icon_editor_window_set_propertycxx . . $ icon_editor_window_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
1064 unsigned int prop_id,
1065 const GValuecxx . . $ GValue# *value,
1066 GParamSpeccxx . . $ GParamSpec# *pspec)
1067 {
1068 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (object);
1069
1070 switch (prop_id)
1071 {
1072 case PROP_PAINTABLEcxx . . $ PROP_PAINTABLE.:
1073 icon_editor_window_set_paintablecxx . . $ icon_editor_window_set_paintable(34e5688fba6e0d12). (self, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value));
1074 break;
1075
1076 case PROP_SHOW_CONTROLScxx . . $ PROP_SHOW_CONTROLS.:
1077 icon_editor_window_set_show_controlscxx . . $ icon_editor_window_set_show_controls(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1078 break;
1079
1080 case PROP_SHOW_BOUNDScxx . . $ PROP_SHOW_BOUNDS.:
1081 icon_editor_window_set_show_boundscxx . . $ icon_editor_window_set_show_bounds(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1082 break;
1083
1084 case PROP_SHOW_SPINEScxx . . $ PROP_SHOW_SPINES.:
1085 icon_editor_window_set_show_spinescxx . . $ icon_editor_window_set_show_spines(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1086 break;
1087
1088 case PROP_SHOW_GRIDcxx . . $ PROP_SHOW_GRID.:
1089 icon_editor_window_set_show_gridcxx . . $ icon_editor_window_set_show_grid(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1090 break;
1091
1092 case PROP_INVERT_COLORScxx . . $ PROP_INVERT_COLORS.:
1093 icon_editor_window_set_invert_colorscxx . . $ icon_editor_window_set_invert_colors(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1094 break;
1095
1096 case PROP_WEIGHTcxx . . $ PROP_WEIGHT.:
1097 icon_editor_window_set_weightcxx . . $ icon_editor_window_set_weight(83bf4976f528cc90). (self, g_value_get_floatcxx . . $ g_value_get_float(19582a908f876f88). (value));
1098 break;
1099
1100 case PROP_STATEcxx . . $ PROP_STATE.:
1101 icon_editor_window_set_statecxx . . $ icon_editor_window_set_state(6ac8d187edf4a566). (self, g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value));
1102 break;
1103
1104 case PROP_INITIAL_STATEcxx . . $ PROP_INITIAL_STATE.:
1105 icon_editor_window_set_initial_statecxx . . $ icon_editor_window_set_initial_state(6ac8d187edf4a566). (self, g_value_get_uintcxx . . $ g_value_get_uint(1e175b1568bd83e1). (value));
1106 break;
1107
1108 case PROP_PLAYINGcxx . . $ PROP_PLAYING.:
1109 icon_editor_window_set_playingcxx . . $ icon_editor_window_set_playing(eda31d6d7de2fe33). (self, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value));
1110 break;
1111
1112 default:
1113 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
1114 break;
1115 }
1116 }
1117
1118 static void
1119 icon_editor_window_get_propertycxx . . $ icon_editor_window_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
1120 unsigned int prop_id,
1121 GValuecxx . . $ GValue# *value,
1122 GParamSpeccxx . . $ GParamSpec# *pspec)
1123 {
1124 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (object);
1125
1126 switch (prop_id)
1127 {
1128 case PROP_PAINTABLEcxx . . $ PROP_PAINTABLE.:
1129 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, self->paintablecxx . . $ _IconEditorWindow#paintable.);
1130 break;
1131
1132 case PROP_CHANGEDcxx . . $ PROP_CHANGED.:
1133 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->changedcxx . . $ _IconEditorWindow#changed.);
1134 break;
1135
1136 case PROP_SHOW_CONTROLScxx . . $ PROP_SHOW_CONTROLS.:
1137 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->show_controlscxx . . $ _IconEditorWindow#show_controls.);
1138 break;
1139
1140 case PROP_SHOW_BOUNDScxx . . $ PROP_SHOW_BOUNDS.:
1141 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->show_boundscxx . . $ _IconEditorWindow#show_bounds.);
1142 break;
1143
1144 case PROP_SHOW_SPINEScxx . . $ PROP_SHOW_SPINES.:
1145 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->show_spinescxx . . $ _IconEditorWindow#show_spines.);
1146 break;
1147
1148 case PROP_SHOW_GRIDcxx . . $ PROP_SHOW_GRID.:
1149 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->show_gridcxx . . $ _IconEditorWindow#show_grid.);
1150 break;
1151
1152 case PROP_INVERT_COLORScxx . . $ PROP_INVERT_COLORS.:
1153 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->invert_colorscxx . . $ _IconEditorWindow#invert_colors.);
1154 break;
1155
1156 case PROP_WEIGHTcxx . . $ PROP_WEIGHT.:
1157 g_value_set_floatcxx . . $ g_value_set_float(b22d5fe81e4f0ffb). (value, self->weightcxx . . $ _IconEditorWindow#weight.);
1158 break;
1159
1160 case PROP_STATEcxx . . $ PROP_STATE.:
1161 g_value_set_uintcxx . . $ g_value_set_uint(f81c5c84daf56975). (value, self->statecxx . . $ _IconEditorWindow#state.);
1162 break;
1163
1164 case PROP_INITIAL_STATEcxx . . $ PROP_INITIAL_STATE.:
1165 g_value_set_uintcxx . . $ g_value_set_uint(f81c5c84daf56975). (value, self->initial_statecxx . . $ _IconEditorWindow#initial_state.);
1166 break;
1167
1168 case PROP_PLAYINGcxx . . $ PROP_PLAYING.:
1169 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->playingcxx . . $ _IconEditorWindow#playing.);
1170 break;
1171
1172 default:
1173 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
1174 break;
1175 }
1176 }
1177
1178 static void
1179 icon_editor_window_disposecxx . . $ icon_editor_window_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
1180 {
1181 gtk_widget_dispose_templatecxx . . $ gtk_widget_dispose_template(5521378f274ca76e). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (object), ICON_EDITOR_WINDOW_TYPEcxx . . $ `demos/icon-editor/icon-editor-window.h:27:9`!);
1182
1183 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (icon_editor_window_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
1184 }
1185
1186 static void
1187 icon_editor_window_finalizecxx . . $ icon_editor_window_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
1188 {
1189 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (object);
1190
1191 if (self->paintablecxx . . $ _IconEditorWindow#paintable.)
1192 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (self->paintable, paintable_changed, self);
1193
1194 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->paintable);
1195 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->orig_paintable);
1196 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->file);
1197 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->paintable_style);
1198
1199 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (icon_editor_window_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
1200 }
1201
1202 static void
1203 icon_editor_window_realizecxx . . $ icon_editor_window_realize(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget)
1204 {
1205 IconEditorWindowcxx . . $ IconEditorWindow# *self = ICON_EDITOR_WINDOWcxx . . $ ICON_EDITOR_WINDOW(e14ea6116ab47001). (widget);
1206 GtkApplicationcxx . . $ GtkApplication# *app = gtk_window_get_applicationcxx . . $ gtk_window_get_application(9540270548888317). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self));
1207 g_autofreecxx . . $ `<external>/12741050725406041920/gmacros.h:1429:9`! char *path = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1208 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GFile) file = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1209 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`! (GtkIconPaintable) logo = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1210 GdkFrameClockcxx . . $ GdkFrameClock# *clock;
1211
1212 GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (icon_editor_window_parent_class)->realizecxx . . $ _GtkWidgetClass#realize. (widget);
1213
1214 path = g_strconcatcxx . . $ g_strconcat(a849077ff1b8d812). ("resource:///org/gtk/Shaper/",
1215 g_application_get_application_idcxx . . $ g_application_get_application_id(c0115ed535dd56a1). (G_APPLICATIONcxx . . $ `<external>/8167319438790187723/gapplication.h:34:9`! (app)),
1216 ".svg",
1217 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1218 file = g_file_new_for_uricxx . . $ g_file_new_for_uri(ba1fd5950b7d7bd5). (path);
1219 logo = gtk_icon_paintable_new_for_filecxx . . $ gtk_icon_paintable_new_for_file(fda37d9b333e60fe). (file, 128, 1);
1220 gtk_image_set_from_paintablecxx . . $ gtk_image_set_from_paintable(f9684481cacbb24e). (self->empty_logocxx . . $ _IconEditorWindow#empty_logo., GDK_PAINTABLEcxx . . $ GDK_PAINTABLE(2d62fee13419e51d). (logo));
1221
1222 clock = gtk_widget_get_frame_clockcxx . . $ gtk_widget_get_frame_clock(82b8f1b122c490a1). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self));
1223 for (unsigned int i = 0; i < 6; i++)
1224 gtk_svg_set_frame_clockcxx . . $ gtk_svg_set_frame_clock(869ab15cbad1719e). (GTK_SVGcxx . . $ GTK_SVG(562e652d3b4c3091). (gtk_image_get_paintablecxx . . $ gtk_image_get_paintable(a20e38bb71f9e021). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->examples[i]))), clock);
1225
1226 if (self->paintablecxx . . $ _IconEditorWindow#paintable.)
1227 path_paintable_set_frame_clockcxx . . $ path_paintable_set_frame_clock(899b0424109fae88). (self->paintablecxx . . $ _IconEditorWindow#paintable., clock);
1228 }
1229
1230 static void
1231 icon_editor_window_class_initcxx . . $ icon_editor_window_class_init(8f33013d99917a4). (IconEditorWindowClasscxx . . $ IconEditorWindowClass# *class)
1232 {
1233 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class);
1234 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (class);
1235 GtkWindowClasscxx . . $ GtkWindowClass# *window_class = GTK_WINDOW_CLASScxx . . $ `gtk/gtkwindow.h:40:9`! (class);
1236
1237 g_type_ensurecxx . . $ g_type_ensure(2c44cd906ae4e829). (PAINTABLE_EDITOR_TYPEcxx . . $ `demos/icon-editor/paintable-editor.h:29:9`!);
1238 g_type_ensurecxx . . $ g_type_ensure(2c44cd906ae4e829). (BORDER_PAINTABLE_TYPEcxx . . $ `demos/icon-editor/border-paintable.h:29:9`!);
1239
1240 object_class->set_propertycxx . . $ _GObjectClass#set_property. = icon_editor_window_set_propertycxx . . $ icon_editor_window_set_property(d7c4bb29f36c0dc4).;
1241 object_class->get_propertycxx . . $ _GObjectClass#get_property. = icon_editor_window_get_propertycxx . . $ icon_editor_window_get_property(cee2c52f22407c66).;
1242 object_class->disposecxx . . $ _GObjectClass#dispose. = icon_editor_window_disposecxx . . $ icon_editor_window_dispose(6087475fa43034d3).;
1243 object_class->finalizecxx . . $ _GObjectClass#finalize. = icon_editor_window_finalizecxx . . $ icon_editor_window_finalize(6087475fa43034d3).;
1244
1245 widget_class->realizecxx . . $ _GtkWidgetClass#realize. = icon_editor_window_realizecxx . . $ icon_editor_window_realize(d7cf858254b37903).;
1246 window_class->close_requestcxx . . $ _GtkWindowClass#close_request. = icon_editor_window_close_requestcxx . . $ icon_editor_window_close_request(b9ada049f487cdbd).;
1247
1248 propertiescxx . . $ properties.[PROP_PAINTABLEcxx . . $ PROP_PAINTABLE.] =
1249 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("paintable", 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`!,
1250 PATH_PAINTABLE_TYPEcxx . . $ `demos/icon-editor/path-paintable.h:40:9`!,
1251 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1252
1253 propertiescxx . . $ properties.[PROP_CHANGEDcxx . . $ PROP_CHANGED.] =
1254 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("changed", 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`!,
1255 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1256 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1257
1258 propertiescxx . . $ properties.[PROP_SHOW_CONTROLScxx . . $ PROP_SHOW_CONTROLS.] =
1259 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("show-controls", 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`!,
1260 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1261 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1262
1263 propertiescxx . . $ properties.[PROP_SHOW_BOUNDScxx . . $ PROP_SHOW_BOUNDS.] =
1264 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("show-bounds", 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`!,
1265 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1266 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1267
1268 propertiescxx . . $ properties.[PROP_SHOW_SPINEScxx . . $ PROP_SHOW_SPINES.] =
1269 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("show-spines", 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`!,
1270 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1271 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1272
1273 propertiescxx . . $ properties.[PROP_SHOW_GRIDcxx . . $ PROP_SHOW_GRID.] =
1274 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("show-grid", 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`!,
1275 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1276 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1277
1278 propertiescxx . . $ properties.[PROP_INVERT_COLORScxx . . $ PROP_INVERT_COLORS.] =
1279 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("invert-colors", 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`!,
1280 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1281 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1282
1283 propertiescxx . . $ properties.[PROP_WEIGHTcxx . . $ PROP_WEIGHT.] =
1284 g_param_spec_floatcxx . . $ g_param_spec_float(62471560c2840e09). ("weight", 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`!,
1285 1.f, 1000.f, 400.f,
1286 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1287
1288 propertiescxx . . $ properties.[PROP_STATEcxx . . $ PROP_STATE.] =
1289 g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("state", 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`!,
1290 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, 0,
1291 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1292
1293 propertiescxx . . $ properties.[PROP_INITIAL_STATEcxx . . $ PROP_INITIAL_STATE.] =
1294 g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("initial-state", 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`!,
1295 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, 0,
1296 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1297
1298 propertiescxx . . $ properties.[PROP_PLAYINGcxx . . $ PROP_PLAYING.] =
1299 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("playing", 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`!,
1300 TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!,
1301 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_NAMEcxx . . $ G_PARAM_STATIC_NAME.);
1302
1303 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, NUM_PROPERTIEScxx . . $ NUM_PROPERTIES., propertiescxx . . $ properties.);
1304
1305 gtk_widget_class_set_template_from_resourcecxx . . $ gtk_widget_class_set_template_from_resource(6333614c746ab65a). (widget_class, "/org/gtk/Shaper/icon-editor-window.ui");
1306
1307 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, main_stack);
1308 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, empty_logo);
1309 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_0);
1310 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_1);
1311 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_2);
1312 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_3);
1313 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_4);
1314 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_5);
1315 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_6);
1316 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image48_7);
1317 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_0);
1318 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_1);
1319 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_2);
1320 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_3);
1321 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_4);
1322 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_5);
1323 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_6);
1324 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_7);
1325 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_8);
1326 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_9);
1327 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_10);
1328 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_11);
1329 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_12);
1330 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_13);
1331 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_14);
1332 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, image24_15);
1333 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, paintable_editor);
1334 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example1);
1335 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example2);
1336 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example3);
1337 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example4);
1338 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example5);
1339 gtk_widget_class_bind_template_childcxx . . $ `gtk/gtkwidget.h:762:9`! (widget_class, IconEditorWindow, example6);
1340
1341 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, show_open_filechooser);
1342 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, toggle_controls);
1343 gtk_widget_class_bind_template_callbackcxx . . $ `gtk/gtkwidget.h:743:9`! (widget_class, file_drop);
1344 }
1345
1346 /* }}} */
1347 /* {{{ Public API */
1348
1349 IconEditorWindowcxx . . $ IconEditorWindow# *
1350 icon_editor_window_newcxx . . $ icon_editor_window_new(4241d067d0507b3c). (IconEditorApplicationcxx . . $ IconEditorApplication# *application)
1351 {
1352 return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (ICON_EDITOR_WINDOW_TYPEcxx . . $ `demos/icon-editor/icon-editor-window.h:27:9`!,
1353 "application", application,
1354 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1355 }
1356
1357 gbooleancxx . . $ gboolean#
1358 icon_editor_window_loadcxx . . $ icon_editor_window_load(2c5295c9b9659e02). (IconEditorWindowcxx . . $ IconEditorWindow# *self,
1359 GFilecxx . . $ GFile# *file)
1360 {
1361 g_autofreecxx . . $ `<external>/12741050725406041920/gmacros.h:1429:9`! char *basename = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1362
1363 if (!load_file_contentscxx . . $ load_file_contents(2c5295c9b9659e02). (self, file))
1364 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
1365
1366 g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&self->file, file);
1367
1368 basename = g_file_get_basenamecxx . . $ g_file_get_basename(bd69fa69840f32a9). (file);
1369 gtk_window_set_titlecxx . . $ gtk_window_set_title(3b72ed0988310abf). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (self), basename);
1370
1371 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1372 }
1373
1374 /* }}} */
1375
1376 /* vim:set foldmethod=marker: */
1377