[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57093] Enable light objects in struct2hdl
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #57093] Enable light objects in struct2hdl |
Date: |
Mon, 21 Oct 2019 04:33:37 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?57093>
Summary: Enable light objects in struct2hdl
Project: GNU Octave
Submitted by: gyom
Submitted on: Mon 21 Oct 2019 08:33:36 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Following this report:
https://lists.gnu.org/archive/html/help-octave/2019-10/msg00140.html
here is a fix to enable light objects in struct2hdl:
diff -r 09175c0e417d scripts/plot/util/struct2hdl.m
--- a/scripts/plot/util/struct2hdl.m Sun Oct 20 08:55:16 2019 -0700
+++ b/scripts/plot/util/struct2hdl.m Mon Oct 21 09:29:49 2019 +0100
@@ -163,6 +163,8 @@
h = createimage (s, par);
elseif (strcmp (s.type, "surface"))
h = createsurface (s, par);
+ elseif (strcmp (s.type, "light"))
+ h = createlight (s, par);
elseif (strcmp (s.type, "hggroup"))
[h, s, p] = createhg (s, p, par, hilev);
elseif (any (strcmp (s.type, {"uimenu", "uicontextmenu",...
@@ -370,6 +372,11 @@
addmissingprops (h, s.properties);
endfunction
+function h = createlight (s, par)
+ h = light ("parent", par);
+ addmissingprops (h, s.properties);
+endfunction
+
function [h, s] = createui (s, par)
if (isfield (s.properties, "style") && strcmp (s.properties.style,
"frame"))
s.type = "uipanel"; # frame is deprecated: use uipanel instead
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57093>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57093] Enable light objects in struct2hdl,
Guillaume <=