Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=428199fc086010689e7f11d69fad0d3b9114bc31

commit 428199fc086010689e7f11d69fad0d3b9114bc31
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Sep 30 14:04:05 2011 +0200

gnome-shell-3.2.0-5-x86_64
*don't use alt for show shutdown

diff --git a/source/gnome/gnome-shell/FrugalBuild 
b/source/gnome/gnome-shell/FrugalBuild
index 38589d2..b65f19c 100644
--- a/source/gnome/gnome-shell/FrugalBuild
+++ b/source/gnome/gnome-shell/FrugalBuild
@@ -5,7 +5,7 @@ USE_FRUGALTHEME=${USE_FRUGALTHEME:-"n"}

pkgname=gnome-shell
pkgver=3.2.0
-pkgrel=4
+pkgrel=5
pkgdesc="Window management and application launching for GNOME"
url="http://www.gnome.org/";
depends=('libxml2>=2.7.8' 'mutter>=3.2.0' 'gnome-desktop>=3.2.0' 'gjs>=1.30.0' \
@@ -46,9 +46,10 @@ _F_gnome_glib="y"
_F_gnome_git="n"
Finclude gnome gnome-scriptlet
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/xulrunner/
-source=($source fw_theme.diff)
+source=($source fw_theme.diff enable_shutdown.diff)
sha1sums=('12b264ec7c7d715c459d13f2f431a459e04c8171' \
-          'cd1efc33adceca32ec8ac7b606b81bd6bd05b8b4')
+          'cd1efc33adceca32ec8ac7b606b81bd6bd05b8b4' \
+          '1cf799b5d64f260222c316622715950c69671ffe')
if [ "$_F_gnome_git" != "n" ]; then
unset sha1sums
fi
diff --git a/source/gnome/gnome-shell/enable_shutdown.diff 
b/source/gnome/gnome-shell/enable_shutdown.diff
new file mode 100644
index 0000000..3743f3f
--- /dev/null
+++ b/source/gnome/gnome-shell/enable_shutdown.diff
@@ -0,0 +1,46 @@
+--- gnome-shell-3.1.92old/js/ui/userMenu.js    2011-09-20 17:14:12.000000000 
+0200
++++ gnome-shell-3.1.92/js/ui/userMenu.js       2011-09-30 12:45:57.000000000 
+0200
+@@ -582,12 +582,24 @@
+         item = new PopupMenu.PopupSeparatorMenuItem();
+         this.menu.addMenuItem(item);
+
++
++        item = new PopupMenu.PopupMenuItem(_("Suspend"));
++        item.connect('activate', Lang.bind(this, this._onSuspendActivate));
++        this.menu.addMenuItem(item);
++        this._suspendItem = item;
++
++        item = new PopupMenu.PopupMenuItem(_("Power Off..."));
++        item.connect('activate', Lang.bind(this, this._onPowerOffActivate));
++        this.menu.addMenuItem(item);
++        this._shutdownItem = item;
++/*
+         item = new PopupMenu.PopupAlternatingMenuItem(_("Suspend"),
+                                                       _("Power Off..."));
+         this.menu.addMenuItem(item);
+         this._suspendOrPowerOffItem = item;
+         item.connect('activate', Lang.bind(this, 
this._onSuspendOrPowerOffActivate));
+         this._updateSuspendOrPowerOff();
++*/
+     },
+
+     _updatePresenceStatus: function(item, event) {
+@@ -645,7 +657,17 @@
+         Main.overview.hide();
+         this._session.LogoutRemote(0);
+     },
+-
++    _onPowerOffActivate: function() {
++        Main.overview.hide();
++        this._session.ShutdownRemote();
++    },
++    _onSuspendActivate: function() {
++        Main.overview.hide();
++        this._screenSaverProxy.LockRemote(Lang.bind(this, function() {
++        this._upClient.suspend_sync(null);
++    }));
++    },
++
+     _onSuspendOrPowerOffActivate: function() {
+         Main.overview.hide();
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to