vfmg: VFMG/wmaker-old_out.pm (NEW) - wmaker-old backend
sparky
sparky at pld-linux.org
Sat Dec 2 00:25:51 CET 2006
Author: sparky Date: Fri Dec 1 23:25:51 2006 GMT
Module: vfmg Tag: HEAD
---- Log message:
- wmaker-old backend
---- Files affected:
vfmg/VFMG:
wmaker-old_out.pm (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: vfmg/VFMG/wmaker-old_out.pm
diff -u /dev/null vfmg/VFMG/wmaker-old_out.pm:1.1
--- /dev/null Sat Dec 2 00:25:51 2006
+++ vfmg/VFMG/wmaker-old_out.pm Sat Dec 2 00:25:46 2006
@@ -0,0 +1,28 @@
+package VFMG::Output;
+
+use strict;
+use warnings;
+
+sub wmakerold {
+ my ($no, $level) = @_;
+ my $apps = "";
+ foreach my $entry (sort main::cmpdname keys %{$main::menu[$no]}) {
+ my $d = $main::desktop[$entry];
+ my $name = $$d{Name};
+ $name =~ s/\"/\\\"/g;
+ if ($main::menu[$no]{$entry} < 0) {
+ $apps .= qq($level"$name" EXEC $$d{Exec}\n);
+ } else {
+ print qq($level"$name" MENU\n);
+ wmakerold( $main::menu[$no]{$entry}, $level."\t");
+ print qq($level"$name" END\n);
+ }
+ }
+ print $apps;
+}
+
+sub do_menu() {
+ wmakerold($main::opt{strip},"");
+}
+
+1;
================================================================
More information about the pld-cvs-commit
mailing list