Author: sparky                       Date: Fri Dec  1 22:52:02 2006 GMT
Module: vfmg                          Tag: HEAD
---- Log message:
- icewm backend

---- Files affected:
vfmg/VFMG:
   icewm_out.pm (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: vfmg/VFMG/icewm_out.pm
diff -u /dev/null vfmg/VFMG/icewm_out.pm:1.1
--- /dev/null   Fri Dec  1 23:52:02 2006
+++ vfmg/VFMG/icewm_out.pm      Fri Dec  1 23:51:57 2006
@@ -0,0 +1,31 @@
+package VFMG::Output;
+
+use strict;
+use warnings;
+
+sub icewm {
+       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;
+               my $icon = "";
+               $icon = main::scale_icon($$d{Icon}) if $main::opt{icons};
+               if ($main::menu[$no]{$entry} < 0) {
+                       $apps .= qq(${level}prog "$name" "$icon" $$d{Exec}\n);
+               } else {
+                       $icon = "folder" if not length $icon and 
$main::opt{icons};
+                       print qq(${level}menu "$name" "$icon" {\n);
+                       icewm($main::menu[$no]{$entry}, $level."\t");
+                       print "$level}\n";
+               }
+       }
+       print $apps;
+}
+
+sub do_menu() {
+       icewm($main::opt{strip}, "");
+}
+
+1;
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to