[Xfce4-commits] <mousepad:master> * mousepad/mousepad-window.c: Update menu actions after a document is closed, so the detach action becomes insensitive when there is only one document openened.

Nick Schermer noreply at xfce.org
Sat May 5 21:31:13 CEST 2012


Updating branch refs/heads/master
         to 9b4a2525a341187a8ea4bddfaeff3e07ef724773 (commit)
       from 35ea349ad0c4ee3557c3c28bb7b5c30cb9fdfe22 (commit)

commit 9b4a2525a341187a8ea4bddfaeff3e07ef724773
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Jan 15 10:59:07 2008 +0000

    * mousepad/mousepad-window.c: Update menu actions after a document
      is closed, so the detach action becomes insensitive when there
      is only one document openened.
    
    
    (Old svn revision: 26573)

 ChangeLog                  |    7 +++++++
 mousepad/mousepad-window.c |    3 +++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 88a5ec0..c78a69d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-01-15	Nick Schermer <nick at xfce.org>
 
+	* mousepad/mousepad-window.c: Update menu actions after a document
+	  is closed, so the detach action becomes insensitive when there
+	  is only one document openened.
+
+
+2008-01-15	Nick Schermer <nick at xfce.org>
+
 	* TODO: Update
 	* mousepad/mousepad-{dialogs,window,file}.c: Check for external
 	  file modifications before saving.
diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
index debca09..edf36b2 100644
--- a/mousepad/mousepad-window.c
+++ b/mousepad/mousepad-window.c
@@ -1420,6 +1420,9 @@ mousepad_window_notebook_removed (GtkNotebook     *notebook,
 
       /* update the go menu */
       mousepad_window_update_gomenu (window);
+
+      /* update action entries */
+      mousepad_window_update_actions (window);
     }
 }
 


More information about the Xfce4-commits mailing list