mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
Adapted patch provided from Jesper Schmitz Mouridsen PR: 284821 Reported by: Torfinn Ingolfsen Approved by: teodorsigaev@
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
--- src/slic3r/GUI/EditGCodeDialog.cpp.orig 2024-12-20 11:54:34 UTC
|
|
+++ src/slic3r/GUI/EditGCodeDialog.cpp
|
|
@@ -566,7 +566,7 @@ void ParamsModel::GetValue(wxVariant& variant, const w
|
|
|
|
ParamsNode* node = static_cast<ParamsNode*>(item.GetID());
|
|
if (col == (unsigned int)0)
|
|
-#ifdef __linux__
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
variant << wxDataViewIconText(node->text, get_bmp_bundle(node->icon_name)->GetIconFor(m_ctrl->GetParent()));
|
|
#else
|
|
variant << DataViewBitmapText(node->text, get_bmp_bundle(node->icon_name)->GetBitmapFor(m_ctrl->GetParent()));
|
|
@@ -581,7 +581,7 @@ bool ParamsModel::SetValue(const wxVariant& variant, c
|
|
|
|
ParamsNode* node = static_cast<ParamsNode*>(item.GetID());
|
|
if (col == (unsigned int)0) {
|
|
-#ifdef __linux__
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
wxDataViewIconText data;
|
|
data << variant;
|
|
node->icon = data.GetIcon();
|
|
@@ -658,7 +658,7 @@ ParamsViewCtrl::ParamsViewCtrl(wxWindow *parent, wxSiz
|
|
this->AssociateModel(model);
|
|
model->SetAssociatedControl(this);
|
|
|
|
-#ifdef __linux__
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
wxDataViewIconTextRenderer* rd = new wxDataViewIconTextRenderer();
|
|
#ifdef SUPPORTS_MARKUP
|
|
rd->EnableMarkup(true);
|