[sawfish] apps-menu: move Emulators category from Games to System menu make sure the category entry of a .desk
- From: Christopher Bratusek <chrisb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sawfish] apps-menu: move Emulators category from Games to System menu make sure the category entry of a .desk
- Date: Tue, 8 Feb 2011 17:29:18 +0000 (UTC)
commit da9f5a9e3b79fe839fe7806790632f91880f6f4e
Author: Christopher Roy Bratusek <zanghar freenet de>
Date: Tue Feb 8 18:28:11 2011 +0100
apps-menu:
move Emulators category from Games to System menu
make sure the category entry of a .desktop file contains a valid string
lisp/sawfish/wm/ext/apps-menu.jl | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/lisp/sawfish/wm/ext/apps-menu.jl b/lisp/sawfish/wm/ext/apps-menu.jl
index 782d05f..0c4b4d0 100644
--- a/lisp/sawfish/wm/ext/apps-menu.jl
+++ b/lisp/sawfish/wm/ext/apps-menu.jl
@@ -107,7 +107,7 @@ filtering on the `apps-menu'.")
"X-Internet" "P2P" "Email" "WebBrowser" "IRCClient"
"Chat" "InstantMessaging" "Chat" "WebDevelopment"))
("Games" . ("Game" "ActionGame" "AdventureGame" "ArcadeGame"
- "BoardGame" "Emulator" "BlocksGame" "CardGame" "KidsGame"
+ "BoardGame" "BlocksGame" "CardGame" "KidsGame"
"LogicGame" "RolePlaying"))
("Graphics" . ("RasterGraphics" "VectorGraphics" "X-GraphicUtility"
"2DGraphics" "3dGraphics" "3DGraphics" "Scanning"
@@ -128,7 +128,7 @@ filtering on the `apps-menu'.")
"TelephonyTools" "Accessibility" "Clock" "ConsoleOnly"))
("Filesystem" . ("X-FileSystemFind" "X-FileSystemUtility" "Archiving"
"FileManager" "X-FileSystemMount" "Compression"))
- ("System" . ("X-SystemSchedule" "System" "X-SystemMemory"
+ ("System" . ("X-SystemSchedule" "System" "X-SystemMemory" "Emulator"
"TerminalEmulator" "Printing" "Monitor" "Security"))
("Settings" . ("Settings" "HardwareSettings" "PackageManager"
"X-GNOME-PersonalSettings" "DesktopSettings"))
@@ -178,7 +178,7 @@ Returns (key . value)"
(substring instring 1 (- (length instring) 2)))
(define (parse-fdo-file-line infile)
- "Parse a `*.desktop' file line.
+ "Parse a `*.desktop' file list.
Returns (group1 (key1 . value1) ... group2 (keyA . valueA) ...)"
(when (setq this-line (read-line infile))
(if (not (fdo-skip-line-p this-line))
@@ -223,6 +223,8 @@ files in those direcories with their full pathnames. Optionally
(t (append (flatten (car input))
(flatten (cdr input))))))
+ ;; language functions
+
(defmacro simplify-mlang (mlang mlevel)
`(and
,(cond
@@ -361,7 +363,9 @@ with caution, file may be corrupt.\n"))
exile it."
(when fdo-list
(if (or (and (not (assoc "Categories" fdo-list))
- (not (assoc "Category" fdo-list)))
+ (not (stringp (cdr (assoc "Categories" fdo-list))))
+ (not (assoc "Category" fdo-list))
+ (not (stringp (cdr (assoc "Categories" fdo-list)))))
(not (assoc "Exec" fdo-list))
(and (not (assoc "Name" fdo-list))
(not (assoc (concat name-string
@@ -375,7 +379,8 @@ exile it."
(when fdo-list
(if (assoc "Category" fdo-list)
(if (or (not (stringp (cdr (assoc "Category" fdo-list))))
- (equal "" (cdr (assoc "Category" fdo-list))))
+ (equal "" (cdr (assoc "Category" fdo-list)))
+ (not (stringp (cdr (assoc "Category" fdo-list)))))
(rplacd (assoc "Category" fdo-list) "Exile"))
(append fdo-list (cons (cons "Category" "Exile")))))
fdo-list)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]