Calendar in DSL4


Forum: Other Help Topics
Topic: Calendar in DSL4
started by: JohnJS

Posted by JohnJS on Nov. 19 2007,17:55
Testing DSL4 on my spare computer. (Swap and storage partitions on hdb2. hda1 has misc old files)
Running as LiveCD legacy norestore.

Unable to get monthly view.
When clicking "view" it closes.

Item added in Notes appears as additional line in Events.cal in dfm. Viewed with emelfm.

PS: dfm as acronym for??

Posted by ^thehatsrule^ on Nov. 19 2007,18:54
Quote
PS: dfm as acronym for??
Desktop File Manager < http://www.kaisersite.de/dfm/ >

Posted by roberts on Nov. 19 2007,19:08
Calendar works fine here.
Monthly view is a result of calling two other programs.
You can check it out, by manually calling them.

$ pscal 11 2007 > mycal.ps
$ gvu mycal.ps
$ rm mycal.ps

If you have some sort of persistence on /tmp, you could try deleting any/all of the temporary Lua workfiles:  /tmp/lua_*

Posted by JohnJS on Nov. 19 2007,19:31
Thanks  thehatsrule and roberts.
Will try out roberts' suggestions.
By the way on shut-down at the end of script after GDK warning the monthly calendar appears.

Edit: Nothing happens with "pscal 11 2007 > Mycal.ps"

'gvu Mycal.ps" works and shows the monthly calendar.

No Lua in /tmp.

Posted by JohnJS on Nov. 19 2007,19:55
Sorry mycal should be in lower case.

Also pscal etc works didn't realize the sequence. (newbie)

Do I need to run "pscal ?? 2007 > ??cal.ps" each time I start a new month?

Posted by jpeters on Nov. 19 2007,20:20
Quote (JohnJS @ Nov. 19 2007,12:55)
Unable to get monthly view.
When clicking "view" it closes.

I

Clicking on "view" DOES shut it down.  However, my copy opens to the monthly view, where I can put in events using "New" and save. (note: click on the arrows, and you'll see it scrolls through months). Perhaps the view button should be shut down.

Posted by roberts on Nov. 19 2007,20:37
I know what the problem is!

It is the murgaLua v0.5.5 upgrade that broke several programs including calendar.lua.

That is why you are experiencing the unexpected behaviour.

It is fixed in v4.1RC1

See change log for v4.1RC1

"* Updated several murgaLua programs to reflect the dropped fl_ask GUI widget."

This also affects v3.4.5 and was fixed in v3.4.6



Posted by jpeters on Nov. 19 2007,20:45
Meanwhile, you can comment out lines 88-101 which eliminates the view button.  ( -- )
Posted by roberts on Nov. 19 2007,20:48
/usr/local/bin/wallpaper.lua
Code Sample
50     response = fltk.fl_choice("Event data has been changed!\nDo you want to exit without saving?","No","Yes",NULL)
90   if fltk.fl_choice("Display Landscape. It is best for printing","No","Yes",NULL) == 1 then


These are the two lines that I had to change to make it work with murgaLua v0.5.5. I fixed this in v4.1RC1

It is best to move to v4.1, but be careful as many changes are also in v4.1 to support user=name and window manager independence. Read the change log and important files to update.

The view button is what makes the program!



Posted by jpeters on Nov. 20 2007,00:43
Thanks!  I didn't know, because I hadn't used it before.  :)
Posted by jpeters on Nov. 20 2007,09:11
Quote (roberts @ Nov. 19 2007,15:48)
The view button is what makes the program!

I like this app a lot better without the dialogue every time I click on "view." On my copy, I just have it open to portrait. Nice app....
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.