[Xfce4-commits] <xfmpc:master> main-window: Rework quit action

Mike Massonnet noreply at xfce.org
Sat Aug 13 14:34:01 CEST 2011


Updating branch refs/heads/master
         to bd75d0de37eab34b42b856c089d0e3e00ff38557 (commit)
       from 2ac24d5b03a1135c8f098f899edbb24348b93e4b (commit)

commit bd75d0de37eab34b42b856c089d0e3e00ff38557
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Sat Aug 13 14:32:31 2011 +0200

    main-window: Rework quit action
    
    Renamed action_close to action_quit, and hide the status icon in order
    to always quit the application instead of hiding it.

 src/main-window.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main-window.vala b/src/main-window.vala
index 536e230..f04c739 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -42,7 +42,7 @@ namespace Xfmpc {
 		};
 
 		private const Gtk.ActionEntry[] action_entries = {
-			{ "quit", null, "", "<control>q", null, action_close },
+			{ "quit", null, "", "<control>q", null, action_quit },
 			{ "previous", null, "", "<control>b", null, action_previous },
 			{ "pp", null, "", "<control>p", null, action_pp },
 			{ "stop", null, "", "<control>s", null, action_stop },
@@ -207,7 +207,8 @@ namespace Xfmpc {
 			return this.status_icon.visible;
 		}
 
-		private void action_close () {
+		private void action_quit () {
+			this.status_icon.set_visible (false);
 			close_window ();
 		}
 


More information about the Xfce4-commits mailing list