[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 66/473: Reuse code and strings from Xfce applications menu popup.
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 23:53:56 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit a8eeb05a9317f3a708d20092f46ceee656c027a5
Author: Graeme Gott <graeme at gottcode.org>
Date: Thu Jul 4 09:06:56 2013 -0400
Reuse code and strings from Xfce applications menu popup.
---
xfce4-popup-whiskermenu.in | 45 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/xfce4-popup-whiskermenu.in b/xfce4-popup-whiskermenu.in
index 41c60a8..245aa37 100644
--- a/xfce4-popup-whiskermenu.in
+++ b/xfce4-popup-whiskermenu.in
@@ -1,3 +1,46 @@
#!/bin/sh
+#
+# Copyright (C) 2010 Nick Schermer <nick at xfce.org>
+# Copyright (C) 2013 Graeme Gott <graeme at gottcode.org>
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation; either version 2 of the License, or (at your option)
+# any later version.
+#
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
- at CMAKE_INSTALL_FULL_BINDIR@/xfce4-panel --plugin-event=whiskermenu:popup
+export TEXTDOMAIN="xfce4-panel"
+export TEXTDOMAINDIR="@localedir@"
+
+ATPOINTER="false"
+
+case "$1" in
+ -h|--help)
+ echo "$(gettext "Usage:")"
+ echo " $(basename $0) [$(gettext "OPTION")...]"
+ echo
+ echo "$(gettext "Options:")"
+ echo " -p, --pointer $(gettext "Popup menu at current mouse position")"
+ echo " -h, --help $(gettext "Show help options")"
+ echo " -V, --version $(gettext "Print version information and exit")"
+ exit 0
+ ;;
+ -V|--version)
+ exec @bindir@/xfce4-panel -V "$(basename $0)"
+ exit 0
+ ;;
+ -p|--pointer)
+ ATPOINTER="true"
+ ;;
+esac
+
+ at CMAKE_INSTALL_FULL_BINDIR@/xfce4-panel --plugin-event=whiskermenu:popup:bool:$ATPOINTER
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list