1. GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 464 views
Irv, I'm getting the following message when exiting texteditor.exu: C:\gtk2\demos\textarea_file.e:147 in function ConfirmQuit() A machine-level exception occurred during execution of this statement ^^^ call-back from Windows Runtime error (Traceback unavailable) Any idea? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
2. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 458 views
cklester wrote: > > Irv, > > I'm getting the following message when exiting texteditor.exu: > > C:\gtk2\demos\textarea_file.e:147 in function ConfirmQuit() > A machine-level exception occurred during execution of this statement > > ^^^ call-back from Windows > Runtime error (Traceback unavailable) > > Any idea? Try changing the line }}} <eucode>call(quit)</eucode> {{{ to:
if Quit() then end if
Let me know if that works. It probably has something to do with not passing the correct number of parameters or ? Irv
3. Re: GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 462 views
irv mullins wrote: > cklester wrote: > > I'm getting the following message when exiting texteditor.exu: > > > > C:\gtk2\demos\textarea_file.e:147 in function ConfirmQuit() > > A machine-level exception occurred during execution of this statement > > > > ^^^ call-back from Windows > > Runtime error (Traceback unavailable) > Try changing the line call(quit) to: > if Quit() then end if > > Let me know if that works. Yes, that works! Next issue: Closing the app when there is unsaved data causes this message: (<unknown>:1376): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkWindow' (<unknown>:1376): Gtk-CRITICAL **: file gtkwindow.c: line 1823 (gtk_window_set_transient_for): assertion 'parent == NULL || GTK_IS_WINDOW (parent)' failed HOWEVER, if I move the shell window out of the way, the "Quit Confirmation" dialog shows up and I can click it and everything works fine. So, the only issue is why does that message window pop up? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
4. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 473 views
cklester wrote: > Yes, that works! > > Next issue: Closing the app when there is unsaved data causes this message: > > (<unknown>:1376): GLib-GObject-WARNING **: invalid unclassed pointer in > cast to 'GtkWindow' > > (<unknown>:1376): Gtk-CRITICAL **: file gtkwindow.c: line 1823 > (gtk_window_set_transient_for): assertion 'parent == NULL || GTK_IS_WINDOW > (parent)' failed > > HOWEVER, if I move the shell window out of the way, the "Quit Confirmation" > dialog shows up and I can click it and everything works fine. So, the only > issue is why does that message window pop up? I wish I could answer that, but I can't reproduce the problem. All I have is Win98 and Linux, it works ok on those. Irv
5. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 441 views
irv mullins wrote: > > cklester wrote: > > > Yes, that works! > > > > Next issue: Closing the app when there is unsaved data causes this message: > > HOWEVER, if I move the shell window out of the way, the "Quit Confirmation" > > dialog shows up and I can click it and everything works fine. So, the only > > issue is why does that message window pop up? ck: Maybe I'm misunderstanding the question. Are you saying that the "Quit" dialog is popping up *behind* the shell window? When I run it from a DOS shell, the dialog shows up on top of everything else, and there are no messages or errors at the DOS shell prompt, either before or after I confirm or cancel. When I run directly by clicking on the icon, no DOS window pops up, and of course no error messages appear. Irv
6. Re: GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 465 views
irv mullins wrote: > irv mullins wrote: > > cklester wrote: > > > Next issue: Closing the app when there is unsaved data causes this > > > message: > > > HOWEVER, if I move the shell window out of the way, the "Quit > > > Confirmation" > > > dialog shows up and I can click it and everything works fine. So, the only > > > issue is why does that message window pop up? > > ck: > > Maybe I'm misunderstanding the question. > Are you saying that the "Quit" dialog is popping up *behind* the > shell window? Yes, only because the shell window is popping up to display that [error?] message. (Doesn't seem like an error... maybe just a diagnostic message or something.) > When I run directly by clicking on the icon, no DOS window pops up, > and of course no error messages appear. Maybe it's a GTK-in-Win2K issue, because when I click the program to close, I get that message and the quit confirmation dialog is behind it. Like I said, I can dodge the DOS message window and access the quit confirm dialog and everything works fine. Want a screenshot? :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
7. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 462 views
cklester wrote: > > Yes, only because the shell window is popping up to display that > [error?] message. (Doesn't seem like an error... maybe just a > diagnostic message or something.) You are correct, those are diagnostics. GTK is saying that it's trying to dispose of some object that no longer exists, I think. But they don't show up when I run the pgm. under Win98. What are you using? > Maybe it's a GTK-in-Win2K issue, because when I click the program to close, > I get that message and the quit confirmation dialog is behind it. Like I > said, I can dodge the DOS message window and access the quit confirm > dialog and everything works fine. Want a screenshot? :) No. I believe you. One thing I didn't try was closing the app from the button at top right of the window. That should be the same as closing it via the menu, but maybe it isn't. Which method did you use? Irv
8. Re: GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 452 views
irv mullins wrote: > One thing I didn't try was closing the app from the > button at top right of the window. That should be the same as closing > it via the menu, but maybe it isn't. Which method did you use? I was using the close button at the upper-right of the window... Using the menu item "Quit" works fine! No message! Can that be fixed? :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
9. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 459 views
cklester wrote: > I was using the close button at the upper-right of the window... Using the > menu item "Quit" works fine! No message! Can that be fixed? :) OK, I went back and tried closing using the button at upper-right. It still works ok, no errors. However, this got me to thinking: if the file is 'dirty', then you should be prompted to save the file regardless of *how* you choose to end the program, including clicking on the close button. So, if you add one line to texteditor.exu as shown below, that should fix the problem, as all exits will be made thru the same routine.
----------------[ MAIN ]--------------- win = window(APP) gtkSet(win,"Border",10) when(win,"delete_event",confirm_quit,0) -- add me!
Irv
10. Re: GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 464 views
- Last edited Aug 21, 2004
irv mullins wrote: > > OK, I went back and tried closing using the button at upper-right. > It still works ok, no errors. However, this got me to thinking: > if the file is 'dirty', then you should be prompted to save the > file regardless of *how* you choose to end the program, including > clicking on the close button. The good news is, I *am* prompted to save the file when I click on the close button. It's just that the message generated by GTK pops up in a DOS window and covers the Quit dialog box (which I didn't see before but stumbled on it during testing). > So, if you add one line to texteditor.exu > as shown below, that should fix the problem, as all exits will be > made thru the same routine. I was about to add the line, but it's already there! :D -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
11. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 455 views
- Last edited Aug 21, 2004
cklester wrote: > > So, if you add one line to texteditor.exu > > as shown below, that should fix the problem, as all exits will be > > made thru the same routine. > > I was about to add the line, but it's already there! :D Eh? Maybe we're working with two different versions of the program, or with two different versions of EuGTK. That might explain why I cannot reproduce the error. Irv
12. Re: GTK Issue
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 471 views
- Last edited Aug 21, 2004
irv mullins wrote: > > Eh? Maybe we're working with two different versions of the program, > or with two different versions of EuGTK. I'm using the Windows version from the Sourceforge site. BTW, why are you releasing two different versions? I used the Linux version on my Win2K box and it worked fine. Wouldn't it be easier, if possible, to have just one library? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
13. Re: GTK Issue
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2004
- 448 views
- Last edited Aug 21, 2004
cklester wrote: > > irv mullins wrote: > > > > Eh? Maybe we're working with two different versions of the program, > > or with two different versions of EuGTK. > > I'm using the Windows version from the Sourceforge site. There seems to be nothing left but the 2 different Windows versons. Maybe someone with XP could run the program and see what happens. Irv