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