8000 Merge pull request #22370 from anntzer/tab · matplotlib/matplotlib@afbc99d · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit afbc99d

Browse files
authored
Merge pull request #22370 from anntzer/tab
Replace tabs with spaces in C code.
2 parents 4176c03 + 48b7b19 commit afbc99d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/_macosx.m

Lines changed: 14 additions & 14 deletions
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

Lines changed: 2 additions & 2 deletions
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)
0