Skip to content

Commit 48b7b19

Browse files
committed
Replace tabs with spaces in C code.
1 parent 3331777 commit 48b7b19

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/_macosx.m

+14-14
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static CGFloat _get_device_scale(CGContextRef cr)
644644
FigureManager_set_icon(PyObject* null, PyObject* args) {
645645
PyObject* icon_path;
646646
if (!PyArg_ParseTuple(args, "O&", &PyUnicode_FSDecoder, &icon_path)) {
647-
return NULL;
647+
return NULL;
648648
}
649649
const char* icon_path_ptr = PyUnicode_AsUTF8(icon_path);
650650
if (!icon_path_ptr) {
@@ -653,7 +653,7 @@ static CGFloat _get_device_scale(CGContextRef cr)
653653
}
654654
@autoreleasepool {
655655
NSString* ns_icon_path = [NSString stringWithUTF8String: icon_path_ptr];
656-
Py_DECREF(icon_path);
656+
Py_DECREF(icon_path);
657657
if (!ns_icon_path) {
658658
PyErr_SetString(PyExc_RuntimeError, "Could not convert to NSString*");
659659
return NULL;
@@ -667,14 +667,14 @@ static CGFloat _get_device_scale(CGContextRef cr)
667667
PyErr_SetString(PyExc_RuntimeError, "Image is not valid");
668668
return NULL;
669669
}
670-
@try {
671-
NSApplication* app = [NSApplication sharedApplication];
672-
app.applicationIconImage = image;
673-
}
674-
@catch (NSException* exception) {
675-
PyErr_SetString(PyExc_RuntimeError, exception.reason.UTF8String);
676-
return NULL;
677-
}
670+
@try {
671+
NSApplication* app = [NSApplication sharedApplication];
672+
app.applicationIconImage = image;
673+
}
674+
@catch (NSException* exception) {
675+
PyErr_SetString(PyExc_RuntimeError, exception.reason.UTF8String);
676+
return NULL;
677+
}
678678
}
679679
Py_RETURN_NONE;
680680
}
@@ -740,10 +740,10 @@ static CGFloat _get_device_scale(CGContextRef cr)
740740
{"destroy",
741741
(PyCFunction)FigureManager_destroy,
742742
METH_NOARGS},
743-
{"set_icon",
744-
(PyCFunction)FigureManager_set_icon,
745-
METH_STATIC | METH_VARARGS,
746-
"Set application icon"},
743+
{"set_icon",
744+
(PyCFunction)FigureManager_set_icon,
745+
METH_STATIC | METH_VARARGS,
746+
"Set application icon"},
747747
{"set_window_title",
748748
(PyCFunction)FigureManager_set_window_title,
749749
METH_VARARGS},

src/_tkmini.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ typedef struct Tk_PhotoImageBlock
8686
int offset[4];
8787
} Tk_PhotoImageBlock;
8888

89-
#define TK_PHOTO_COMPOSITE_OVERLAY 0 // apply transparency rules pixel-wise
90-
#define TK_PHOTO_COMPOSITE_SET 1 // set image buffer directly
89+
#define TK_PHOTO_COMPOSITE_OVERLAY 0 // apply transparency rules pixel-wise
90+
#define TK_PHOTO_COMPOSITE_SET 1 // set image buffer directly
9191
#define TCL_OK 0
9292
#define TCL_ERROR 1
9393

0 commit comments

Comments
 (0)