2003-10-19 Daiki Ueno <ueno@unixuser.org>
+ * riece-menu.el (riece-menu-create-layouts-menu): New function.
+ (riece-menu-items): Use it.
+
* riece-server.el (riece-server-process-opened): New function.
(riece-server-opened): Use it.
`("Riece"
["Version" riece-version t]
"----"
- ["Change Window Layout"
- riece-command-change-layout t]
+ ("Change Window Layout..." :filter riece-menu-create-layouts-menu)
["Toggle Freeze Channel Buffer"
riece-command-toggle-freeze t]
["Toggle Freeze Channel Buffer Until Next Message"
("Servers" :filter riece-menu-create-servers-menu))
"Menu used in command mode.")
+(defun riece-menu-create-layouts-menu (menu)
+ (mapcar (lambda (entry)
+ (vector (car entry) (list 'riece-command-change-layout (car entry))
+ t))
+ riece-layout-alist))
+
(defun riece-menu-create-channels-menu (menu)
(mapcar (lambda (channel)
(list (riece-format-identity channel)