Feature Requests: Browse | Submit New | Admin

[#3425] Ignore calls to create for widgets whose parents haven't been created yet

Date:
2006-02-02 12:57
Priority:
3
Submitted By:
Lyle Johnson (lyle)
Assigned To:
Lyle Johnson (lyle)
Category:
Core
State:
Open
Summary:
Ignore calls to create for widgets whose parents haven't been created yet

Detailed description
As suggested by Meinrad Recheis:

i want to propose a solution to an unecessary complication in fxruby: calling create on widgets whose parents are not
created yet!

in previous versions it caused a segfault in the latest versions it results in application halt and this message:
"trying to create window before creating parent window."

i think it complicates code too much. now i often code something like that:

 wdg.create if App.instance.created?

therefore i had to wrap Fox::FXApp into a singleton class App which remembers if it has been created yet. that's a convenient
workaround for me but it is unnecessary.

but how about fxruby putting out a warning  "warning: trying to create window before creating parent window."
(a linenumber would be confortable) and simply ignore that call if the application is not yet
created? it would allow to reuse code without needing to worry about the create-order-issue.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-06-22 23:15
Sender: Lyle Johnson

See also bug report #20702.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item