Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat and polish #34

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion src/imagewindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ imagewindow_posteval(VipsImage *image,
gtk_action_bar_set_revealed(GTK_ACTION_BAR(win->progress_bar), FALSE);
}

/* Save and restore view setttings.
/* Save and restore view settings.
*/

static void
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
Loading