Skip to content

Commit

Permalink
Reformat and polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 12, 2024
1 parent 49eda11 commit 06b146e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/imageui.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ imageui_set_property(GObject *object,
{
Imageui *imageui = (Imageui *) object;

double zoom;
double zoom;

#ifdef DEBUG_VERBOSE
{
Expand Down Expand Up @@ -211,7 +211,7 @@ imageui_get_property(GObject *object,
{
Imageui *imageui = IMAGEUI(object);

double zoom;
double zoom;

switch (prop_id) {
case PROP_TILESOURCE:
Expand Down
10 changes: 5 additions & 5 deletions src/tilesource.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tilesource_open(Tilesource *tilesource, int level)
"page", level,
NULL);
}
else if (vips_isprefix("webp", tilesource->loader) ||
else if (vips_isprefix("webp", tilesource->loader) ||
vips_isprefix("gif", tilesource->loader) ||
vips_isprefix("jxl", tilesource->loader)) {
/* These formats have pages all the same size and support page and n.
Expand Down Expand Up @@ -210,7 +210,7 @@ tilesource_render_notify_idle(void *user_data)
}

/* Come here from the vips_sink_screen() background thread when a tile has been
* calculated. This is a bbackground thread, so we add an idle callback
* calculated. This is a background thread, so we add an idle callback
* which will be run by the main thread when it next hits the mainloop.
*/
static void
Expand Down Expand Up @@ -783,7 +783,7 @@ tilesource_set_property(GObject *object,
int i;
double d;
gboolean b;
TilesourceMode mode;
TilesourceMode mode;

#ifdef DEBUG
{
Expand Down Expand Up @@ -1228,9 +1228,9 @@ tilesource_print(Tilesource *tilesource)
printf("\tpages_same_size = %d\n", tilesource->pages_same_size);
printf("\tall_mono = %d\n", tilesource->all_mono);
printf("\ttype = %s\n",
vips_enum_nick(TYPE_SOURCE_TYPE, tilesource->type));
vips_enum_nick(TYPE_TYPE, tilesource->type));
printf("\tmode = %s\n",
vips_enum_nick(TYPE_SOURCE_MODE, tilesource->mode));
vips_enum_nick(TYPE_MODE, tilesource->mode));
printf("\tdelay = %p\n", tilesource->delay);
printf("\tn_delay = %d\n", tilesource->n_delay);
printf("\tdisplay_width = %d\n", tilesource->display_width);
Expand Down
6 changes: 3 additions & 3 deletions src/vipsdisp.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
G_GNUC_BEGIN_IGNORE_DEPRECATIONS

#define FREESID(SID, OBJ) \
G_STMT_START \
G_STMT_START \
{ \
if ((SID) && (OBJ)) { \
g_signal_handler_disconnect((OBJ), (SID)); \
(SID) = 0; \
} \
} \
G_STMT_END
} \
G_STMT_END

#include "enumtypes.h"
#include "gtkutil.h"
Expand Down

0 comments on commit 06b146e

Please sign in to comment.