Debian Codegraph @

gtk/gtkfilethumbnail.c

raw symbols SCIP
1 /* gtkfilethumbnail.c
2 *
3 * Copyright 2022 Georges Basile Stavracas Neto <[email protected]>
4 *
5 * This file is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as
7 * published by the Free Software Foundation; either version 2.1 of the
8 * License, or (at your option) any later version.
9 *
10 * This file is distributed in the hope that it will be useful, but
11 * 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 program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * SPDX-License-Identifier: LGPL-2.1-or-later
19 */
20
21 #include "config.h"cxx . . $ `<file>/build/config.h`/
22
23 #include "gtkfilethumbnail.h"cxx . . $ `<file>/gtk/gtkfilethumbnail.h`/
24
25 #include "gtkbinlayout.h"cxx . . $ `<file>/gtk/gtkbinlayout.h`/
26 #include "gtkfilechooserutils.h"cxx . . $ `<file>/gtk/gtkfilechooserutils.h`/
27 #include "gtkimage.h"cxx . . $ `<file>/gtk/gtkimage.h`/
28 #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/
29 #include "gtkwidget.h"cxx . . $ `<file>/gtk/gtkwidget.h`/
30
31 #define ICON_SIZEcxx . . $ `gtk/gtkfilethumbnail.c:31:9`! 16
32
33 struct _GtkFileThumbnailcxx . . $ _GtkFileThumbnail#
34 {
35 GtkWidgetcxx . . $ GtkWidget# parentcxx . . $ _GtkFileThumbnail#parent.;
36
37 GtkWidgetcxx . . $ GtkWidget# *imagecxx . . $ _GtkFileThumbnail#image.;
38 int icon_sizecxx . . $ _GtkFileThumbnail#icon_size.;
39
40 GCancellablecxx . . $ GCancellable# *cancellablecxx . . $ _GtkFileThumbnail#cancellable.;
41 GFileInfocxx . . $ GFileInfo# *infocxx . . $ _GtkFileThumbnail#info.;
42 };
43
44 typedef structcxx . . $ $anonymous_type_64d82c063951397e_0#
45 {
46 GtkWidgetClasscxx . . $ GtkWidgetClass# parentcxx . . $ $anonymous_type_64d82c063951397e_0#parent.;
47 } GtkFileThumbnailClasscxx . . $ GtkFileThumbnailClass#;
48
49 G_DEFINE_FINAL_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1940:9`! (GtkFileThumbnail, _gtk_file_thumbnail, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!)
50
51 enumcxx . . $ $anonymous_type_64d82c063951397e_1# {
52 PROP_0cxx . . $ PROP_0.,
53 PROP_ICON_SIZEcxx . . $ PROP_ICON_SIZE.,
54 PROP_INFOcxx . . $ PROP_INFO.,
55 N_PROPScxx . . $ N_PROPS.,
56 };
57
58 static GParamSpeccxx . . $ GParamSpec# *propertiescxx . . $ properties. [N_PROPScxx . . $ N_PROPS.];
59
60 static void
61 copy_attributecxx . . $ copy_attribute(51404424b50e2802). (GFileInfocxx . . $ GFileInfo# *to,
62 GFileInfocxx . . $ GFileInfo# *from,
63 const char *attribute)
64 {
65 GFileAttributeTypecxx . . $ GFileAttributeType# type;
66 gpointercxx . . $ gpointer# value;
67
68 if (g_file_info_get_attribute_datacxx . . $ g_file_info_get_attribute_data(3ea903dc31599f82). (from, attribute, &type, &value, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!))
69 g_file_info_set_attributecxx . . $ g_file_info_set_attribute(a0c4316db57117d6). (to, attribute, type, value);
70 }
71
72 static gbooleancxx . . $ gboolean#
73 update_imagecxx . . $ update_image(65ca1c305ec64d98). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
74 {
75 GtkIconThemecxx . . $ GtkIconTheme# *icon_theme;
76 GIconcxx . . $ GIcon# *icon;
77 int icon_size;
78 int scale;
79
80 if (!g_file_info_has_attributecxx . . $ g_file_info_has_attribute(b98a6a1613e404ac). (self->infocxx . . $ _GtkFileThumbnail#info., G_FILE_ATTRIBUTE_STANDARD_ICONcxx . . $ `<external>/10155032491143044340/gfileinfo.h:196:9`!))
81 {
82 gtk_image_clearcxx . . $ gtk_image_clear(e17aeca88b7ff75c). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->image));
83 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
84 }
85
86 scale = gtk_widget_get_scale_factorcxx . . $ gtk_widget_get_scale_factor(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self));
87 icon_theme = gtk_icon_theme_get_for_displaycxx . . $ gtk_icon_theme_get_for_display(e6f8fec319d8629c). (gtk_widget_get_displaycxx . . $ gtk_widget_get_display(6423c64908d5796a). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self)));
88
89 icon_size = self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. != -1 ? self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. : ICON_SIZEcxx . . $ `gtk/gtkfilethumbnail.c:31:9`!;
90 icon = _gtk_file_info_get_iconcxx . . $ _gtk_file_info_get_icon(9e50917cd5e54407). (self->infocxx . . $ _GtkFileThumbnail#info., icon_size, scale, icon_theme);
91
92 gtk_image_set_from_giconcxx . . $ gtk_image_set_from_gicon(43c238c24ef048d). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->image), icon);
93
94 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (icon);
95
96 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
97 }
98
99 static void
100 thumbnail_queried_cbcxx . . $ thumbnail_queried_cb(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
101 GAsyncResultcxx . . $ GAsyncResult# *result,
102 gpointercxx . . $ gpointer# user_data)
103 {
104 GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self = user_data; /* might be unreffed if operation was cancelled */
105 GFilecxx . . $ GFile# *file = G_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:35:9`! (object);
106 GFileInfocxx . . $ GFileInfo# *queried;
107 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
108
109 queried = g_file_query_info_finishcxx . . $ g_file_query_info_finish(283254bc22830d4b). (file, result, &error);
110
111 if (error)
112 {
113 if (!g_error_matchescxx . . $ g_error_matches(604444fafc3e7b63). (error, G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!, G_IO_ERROR_CANCELLEDcxx . . $ G_IO_ERROR_CANCELLED.))
114 g_file_info_set_attribute_booleancxx . . $ g_file_info_set_attribute_boolean(8cc4c58ed3b906bf). (self->infocxx . . $ _GtkFileThumbnail#info., "filechooser::queried", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
115 g_clear_errorcxx . . $ g_clear_error(19f343512d040fc2). (&error);
116 return;
117 }
118
119 g_file_info_set_attribute_booleancxx . . $ g_file_info_set_attribute_boolean(8cc4c58ed3b906bf). (self->infocxx . . $ _GtkFileThumbnail#info., "filechooser::queried", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
120
121 copy_attributecxx . . $ copy_attribute(51404424b50e2802). (self->infocxx . . $ _GtkFileThumbnail#info., queried, G_FILE_ATTRIBUTE_THUMBNAIL_PATHcxx . . $ `<external>/10155032491143044340/gfileinfo.h:931:9`!);
122 copy_attributecxx . . $ copy_attribute(51404424b50e2802). (self->infocxx . . $ _GtkFileThumbnail#info., queried, G_FILE_ATTRIBUTE_THUMBNAILING_FAILEDcxx . . $ `<external>/10155032491143044340/gfileinfo.h:941:9`!);
123 copy_attributecxx . . $ copy_attribute(51404424b50e2802). (self->infocxx . . $ _GtkFileThumbnail#info., queried, G_FILE_ATTRIBUTE_STANDARD_ICONcxx . . $ `<external>/10155032491143044340/gfileinfo.h:196:9`!);
124
125 update_imagecxx . . $ update_image(65ca1c305ec64d98). (self);
126
127 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&queried);
128
129 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->cancellable);
130 }
131
132 static void
133 cancel_thumbnailcxx . . $ cancel_thumbnail(7c1f549f1e0ea65b). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
134 {
135 g_cancellable_cancelcxx . . $ g_cancellable_cancel(ff72ec99b913803a). (self->cancellablecxx . . $ _GtkFileThumbnail#cancellable.);
136 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->cancellable);
137 }
138
139 static void
140 get_thumbnailcxx . . $ get_thumbnail(7c1f549f1e0ea65b). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
141 {
142 if (!self->infocxx . . $ _GtkFileThumbnail#info.)
143 {
144 gtk_image_clearcxx . . $ gtk_image_clear(e17aeca88b7ff75c). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->image));
145 return;
146 }
147
148 if (!update_imagecxx . . $ update_image(65ca1c305ec64d98). (self))
149 {
150 GFilecxx . . $ GFile# *file;
151
152 if (g_file_info_has_attributecxx . . $ g_file_info_has_attribute(b98a6a1613e404ac). (self->infocxx . . $ _GtkFileThumbnail#info., "filechooser::queried"))
153 return;
154
155 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (self->cancellable == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
156 self->cancellablecxx . . $ _GtkFileThumbnail#cancellable. = g_cancellable_newcxx . . $ g_cancellable_new(decaddcb7afe0309). ();
157
158 file = _gtk_file_info_get_filecxx . . $ _gtk_file_info_get_file(b15960441760c648). (self->infocxx . . $ _GtkFileThumbnail#info.);
159 g_file_query_info_asynccxx . . $ g_file_query_info_async(af983d0ac17f9c97). (file,
160 G_FILE_ATTRIBUTE_THUMBNAIL_PATHcxx . . $ `<external>/10155032491143044340/gfileinfo.h:931:9`! ","
161 G_FILE_ATTRIBUTE_THUMBNAILING_FAILEDcxx . . $ `<external>/10155032491143044340/gfileinfo.h:941:9`! ","
162 G_FILE_ATTRIBUTE_STANDARD_ICONcxx . . $ `<external>/10155032491143044340/gfileinfo.h:196:9`!,
163 G_FILE_QUERY_INFO_NONEcxx . . $ G_FILE_QUERY_INFO_NONE.,
164 G_PRIORITY_DEFAULTcxx . . $ `<external>/1856471541377536744/gmain.h:434:9`!,
165 self->cancellablecxx . . $ _GtkFileThumbnail#cancellable.,
166 thumbnail_queried_cbcxx . . $ thumbnail_queried_cb(aa1d200d824d915d).,
167 self);
168 }
169 }
170
171 static void
172 _gtk_file_thumbnail_disposecxx . . $ _gtk_file_thumbnail_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
173 {
174 GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self = (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *)object;
175
176 _gtk_file_thumbnail_set_infocxx . . $ _gtk_file_thumbnail_set_info(6096755b64b915bf). (self, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
177
178 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&self->image, gtk_widget_unparent);
179
180 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (_gtk_file_thumbnail_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
181 }
182
183 static void
184 _gtk_file_thumbnail_get_propertycxx . . $ _gtk_file_thumbnail_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
185 guintcxx . . $ guint# prop_id,
186 GValuecxx . . $ GValue# *value,
187 GParamSpeccxx . . $ GParamSpec# *pspec)
188 {
189 GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self = GTK_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:31:9`! (object);
190
191 switch (prop_id)
192 {
193 case PROP_ICON_SIZEcxx . . $ PROP_ICON_SIZE.:
194 g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size.);
195 break;
196
197 case PROP_INFOcxx . . $ PROP_INFO.:
198 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, self->infocxx . . $ _GtkFileThumbnail#info.);
199 break;
200
201 default:
202 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
203 }
204 }
205
206 static void
207 _gtk_file_thumbnail_set_propertycxx . . $ _gtk_file_thumbnail_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object,
208 guintcxx . . $ guint# prop_id,
209 const GValuecxx . . $ GValue# *value,
210 GParamSpeccxx . . $ GParamSpec# *pspec)
211 {
212 GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self = GTK_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:31:9`! (object);
213
214 switch (prop_id)
215 {
216 case PROP_ICON_SIZEcxx . . $ PROP_ICON_SIZE.:
217 _gtk_file_thumbnail_set_icon_sizecxx . . $ _gtk_file_thumbnail_set_icon_size(1a361225f3a104c4). (self, g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value));
218 break;
219
220 case PROP_INFOcxx . . $ PROP_INFO.:
221 _gtk_file_thumbnail_set_infocxx . . $ _gtk_file_thumbnail_set_info(6096755b64b915bf). (self, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value));
222 break;
223
224 default:
225 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
226 }
227 }
228
229 static void
230 _gtk_file_thumbnail_class_initcxx . . $ _gtk_file_thumbnail_class_init(bd27b7cafbb2fd3a). (GtkFileThumbnailClasscxx . . $ GtkFileThumbnailClass# *klass)
231 {
232 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
233 GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (klass);
234
235 object_class->disposecxx . . $ _GObjectClass#dispose. = _gtk_file_thumbnail_disposecxx . . $ _gtk_file_thumbnail_dispose(6087475fa43034d3).;
236 object_class->get_propertycxx . . $ _GObjectClass#get_property. = _gtk_file_thumbnail_get_propertycxx . . $ _gtk_file_thumbnail_get_property(cee2c52f22407c66).;
237 object_class->set_propertycxx . . $ _GObjectClass#set_property. = _gtk_file_thumbnail_set_propertycxx . . $ _gtk_file_thumbnail_set_property(d7c4bb29f36c0dc4).;
238
239 propertiescxx . . $ properties.[PROP_ICON_SIZEcxx . . $ PROP_ICON_SIZE.] =
240 g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("icon-size", 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`!,
241 -1, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, -1,
242 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!);
243
244 propertiescxx . . $ properties.[PROP_INFOcxx . . $ PROP_INFO.] =
245 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("file-info", 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`!,
246 G_TYPE_FILE_INFOcxx . . $ `<external>/10155032491143044340/gfileinfo.h:34:9`!,
247 G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!);
248
249 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, N_PROPScxx . . $ N_PROPS., propertiescxx . . $ properties.);
250
251 gtk_widget_class_set_css_namecxx . . $ gtk_widget_class_set_css_name(6333614c746ab65a). (widget_class, I_cxx . . $ `gdk/gdkprivate.h:35:9`!("filethumbnail"));
252
253 gtk_widget_class_set_layout_manager_typecxx . . $ gtk_widget_class_set_layout_manager_type(2a839cbf4b1b4191). (widget_class, GTK_TYPE_BIN_LAYOUTcxx . . $ `gtk/gtkbinlayout.h:23:9`!);
254 }
255
256 static void
257 _gtk_file_thumbnail_initcxx . . $ _gtk_file_thumbnail_init(7c1f549f1e0ea65b). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
258 {
259 self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. = -1;
260 self->imagecxx . . $ _GtkFileThumbnail#image. = gtk_image_newcxx . . $ gtk_image_new(2369ce5e9f2c7dfd). ();
261 gtk_widget_set_parentcxx . . $ gtk_widget_set_parent(4f261c0971c30e7). (self->imagecxx . . $ _GtkFileThumbnail#image., GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self));
262 }
263
264 GFileInfocxx . . $ GFileInfo# *
265 _gtk_file_thumbnail_get_infocxx . . $ _gtk_file_thumbnail_get_info(1f79a43fdb4e0b70). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
266 {
267 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (GTK_IS_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:32:9`! (self));
268
269 return self->infocxx . . $ _GtkFileThumbnail#info.;
270 }
271
272 void
273 _gtk_file_thumbnail_set_infocxx . . $ _gtk_file_thumbnail_set_info(6096755b64b915bf). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self,
274 GFileInfocxx . . $ GFileInfo# *info)
275 {
276 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (GTK_IS_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:32:9`! (self));
277 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (info == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || G_IS_FILE_INFOcxx . . $ `<external>/10155032491143044340/gfileinfo.h:37:9`! (info));
278
279 if (g_set_objectcxx . . $ `<external>/1341695927569185362/gobject.h:762:9`! (&self->info, info))
280 {
281 cancel_thumbnailcxx . . $ cancel_thumbnail(7c1f549f1e0ea65b). (self);
282 get_thumbnailcxx . . $ get_thumbnail(7c1f549f1e0ea65b). (self);
283 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_INFOcxx . . $ PROP_INFO.]);
284 }
285 }
286
287 int
288 _gtk_file_thumbnail_get_icon_sizecxx . . $ _gtk_file_thumbnail_get_icon_size(65ca1c305ec64d98). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self)
289 {
290 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (GTK_IS_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:32:9`! (self));
291
292 return self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size.;
293 }
294
295 void
296 _gtk_file_thumbnail_set_icon_sizecxx . . $ _gtk_file_thumbnail_set_icon_size(1a361225f3a104c4). (GtkFileThumbnailcxx . . $ GtkFileThumbnail# *self,
297 int icon_size)
298 {
299 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (GTK_IS_FILE_THUMBNAILcxx . . $ `gtk/gtkfilethumbnail.h:32:9`! (self));
300 g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (icon_size == -1 || icon_size > 0);
301
302 if (self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. == icon_size)
303 return;
304
305 self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. = icon_size;
306 if (self->icon_sizecxx . . $ _GtkFileThumbnail#icon_size. == -1)
307 gtk_image_set_pixel_sizecxx . . $ gtk_image_set_pixel_size(1b6c3440038c1390). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->image), ICON_SIZEcxx . . $ `gtk/gtkfilethumbnail.c:31:9`!);
308 else
309 gtk_image_set_pixel_sizecxx . . $ gtk_image_set_pixel_size(1b6c3440038c1390). (GTK_IMAGEcxx . . $ `gtk/gtkimage.h:39:9`! (self->image), icon_size);
310
311 cancel_thumbnailcxx . . $ cancel_thumbnail(7c1f549f1e0ea65b). (self);
312 get_thumbnailcxx . . $ get_thumbnail(7c1f549f1e0ea65b). (self);
313 g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), propertiescxx . . $ properties.[PROP_ICON_SIZEcxx . . $ PROP_ICON_SIZE.]);
314 }
315