Skip to content

Commit bee8162

Browse files
committed
Update/add IconUtils.cpp
1 parent 83e588d commit bee8162

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Jamfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ local sourceFiles =
194194
GradientRadialFocus.cpp
195195
GridView.cpp
196196
Dragger.cpp
197-
#IconUtils.cpp
197+
IconUtils.cpp
198198
Input.cpp
199199
PrintJob.cpp
200200

bindings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
from .GradientRadialFocus import *
8888
from .GridView import *
8989
from .Dragger import *
90-
#from .IconUtils import *
90+
from .IconUtils import *
9191
from .Input import *
9292
from .PrintJob import *
9393

bindings/interface/IconUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace py = pybind11;
1212

1313
PYBIND11_MODULE(IconUtils,m)
1414
{
15-
py::class_<BIconUtils>(m, "BIconUtils")
15+
py::class_<BIconUtils, std::unique_ptr<BIconUtils, py::nodelete>>(m, "BIconUtils")
1616
.def_static("GetIcon", &BIconUtils::GetIcon, "", py::arg("node"), py::arg("vectorIconAttrName"), py::arg("smallIconAttrName"), py::arg("largeIconAttrName"), py::arg("size"), py::arg("result"))
1717
.def_static("GetVectorIcon", py::overload_cast<BNode *, const char *, BBitmap *>(&BIconUtils::GetVectorIcon), "", py::arg("node"), py::arg("attrName"), py::arg("result"))
1818
.def_static("GetVectorIcon", py::overload_cast<const uint8*, size_t, BBitmap *>(&BIconUtils::GetVectorIcon), "", py::arg("buffer"), py::arg("size"), py::arg("result"))

0 commit comments

Comments
 (0)