[sawfish] Renamed `after-add-window' to `maxmize-after-add-window' for easier evaluation



commit 5c3ec6ade11dba70999aec7f2f142528e7b66bff
Author: chrisb <zanghar freenet de>
Date:   Mon Aug 31 17:22:48 2009 +0200

    Renamed `after-add-window' to `maxmize-after-add-window' for easier evaluation

 ChangeLog                         |    4 ++++
 lisp/sawfish/wm/state/maximize.jl |    4 ++--
 man/news.texi                     |    4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 43beb0a..453a255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2009-08-31  Christopher Bratusek <zanghar freenet de>
 	* CONTRIBUTING: Encoding is changed to utf-8 from latin-1 [Teika Kazura]
 
+	* lisp/sawfish/wm/state/maximize.jl: Renamed hooked function `after-add-window' to `maximize-after-add-window'.
+	    				     This makes it self-descriptive, so that when you evaluate `after-add-window-hook',
+					     you see what's hooked in. [Teika Kazura]
+
 2009-08-30  Christopher Bratusek <zanghar freenet de>
 	* lisp/sawfish/gtk/widget.jl: Number widget can take optional initial value [Teika Kazura]
 
diff --git a/lisp/sawfish/wm/state/maximize.jl b/lisp/sawfish/wm/state/maximize.jl
index 0e78206..6f36700 100644
--- a/lisp/sawfish/wm/state/maximize.jl
+++ b/lisp/sawfish/wm/state/maximize.jl
@@ -564,7 +564,7 @@ unmaximized."
 
 ;;; initialisation
 
-  (define (after-add-window w)
+  (define (maximize-after-add-window w)
     (let ((vert (window-get w 'queued-vertical-maximize))
 	  (horiz (window-get w 'queued-horizontal-maximize))
 	  (full (window-get w 'queued-fullscreen-maximize))
@@ -588,7 +588,7 @@ unmaximized."
                                    (vert 'vertical)
 				   (horiz 'horizontal))))))))
 
-  (add-hook 'after-add-window-hook after-add-window)
+  (add-hook 'after-add-window-hook maximize-after-add-window)
 
   ;; before exiting, return all windows to their unmaximized
   ;; geometries. But _don't_ change any of the properties (either
diff --git a/man/news.texi b/man/news.texi
index f3ced8a..af89d10 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -72,8 +72,6 @@ they occurred between. For more detailed information see the
 
 @item Improve position matcher to bind a window to a position (either center east north north-east north-west south south-east south-west west) OR to a user-given position [Jeremy Hankins]
 
- item When GNOME Integration is loaded, the apps menu now shows the content of the GNOME Menu (uncategorized atm) [Christopher Bratusek]
-
 @item When GNOME Integration is loaded, don't remove quit and restart entries from menu [Christopher Bratusek]
 
 @item Use gnome-www-browser for displaying GNOME-Homepage instead of gnome-moz-remote [Christopher Bratusek]
@@ -92,6 +90,8 @@ they occurred between. For more detailed information see the
 @item Other Changes:
 @itemize @minus
 
+ item Renamed `after-add-window' to `maxmize-after-add-window' for easier evaluation [Teika Kazura]
+
 @item Revamped the Root and Window Menu [Christopher Bratusek]
 
 @item Trimm down GNOME Integration to the minimum [Christopher Bratusek]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]