summaryrefslogtreecommitdiff
path: root/src/caja-image-properties-page.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-14 09:30:32 +0200
committerraveit65 <[email protected]>2022-07-20 00:07:37 +0200
commit25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67 (patch)
tree2a79eb2b3fe44cf6b49ec1b2bf23092cbef5d6a1 /src/caja-image-properties-page.c
parented722a990406ce48b353c5eb7499fa8662cdff12 (diff)
downloadcaja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.bz2
caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-image-properties-page.c')
-rw-r--r--src/caja-image-properties-page.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/caja-image-properties-page.c b/src/caja-image-properties-page.c
index 0234cedc..0447058d 100644
--- a/src/caja-image-properties-page.c
+++ b/src/caja-image-properties-page.c
@@ -378,9 +378,6 @@ append_xmpdata_string (XmpPtr xmp, CajaImagePropertiesPage *page)
static void
load_finished (CajaImagePropertiesPage *page)
{
- GdkPixbufFormat *format;
- char *name, *desc;
-
gtk_widget_destroy (page->details->loading_label);
if (page->details->loader != NULL) {
@@ -389,6 +386,8 @@ load_finished (CajaImagePropertiesPage *page)
if (page->details->got_size)
{
+ GdkPixbufFormat *format;
+ char *name, *desc;
#ifdef HAVE_EXIF
ExifData *exif_data;
#endif /*HAVE_EXIF*/
@@ -461,7 +460,6 @@ file_read_callback (GObject *object,
GInputStream *stream;
gssize count_read;
GError *error;
- int exif_still_loading;
gboolean done_reading;
page = CAJA_IMAGE_PROPERTIES_PAGE (data);
@@ -473,6 +471,7 @@ file_read_callback (GObject *object,
if (count_read > 0)
{
+ int exif_still_loading;
g_assert (count_read <= sizeof(page->details->buffer));