Import obmenu-1.0

Obmenu is a menu editor designed for openbox. It's easy to use, allowing
to get the most out of the powerful Openbox menu system, while hiding
the xml layout from the user.
It also (optionally) installs a bunch of dynamic menus (pipe menus),
such as Gnome menus or a quick-navigator.
You can also use the obxml module to easily write pipe menus of your own
in Python.

"looks fine" sthen@, ok jasper@
This commit is contained in:
ajacoutot 2007-12-19 16:09:34 +00:00
parent ac0e2207dd
commit 084c7107f1
6 changed files with 94 additions and 0 deletions

27
x11/obmenu/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/19 16:09:34 ajacoutot Exp $
COMMENT= Openbox menu editor
DISTNAME= obmenu-1.0
CATEGORIES= x11
HOMEPAGE= http://obmenu.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=obmenu/}
MODULES= lang/python
RUN_DEPENDS= ::x11/py-gtk2
pre-configure:
@find ${WRKSRC} -name \*.py | \
xargs perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g'
.include <bsd.port.mk>

5
x11/obmenu/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (obmenu-1.0.tar.gz) = cQA2pe3JiG1tVjzkbHR0Mg==
RMD160 (obmenu-1.0.tar.gz) = A52C5+We7ZUTl971HABoCZsnOPg=
SHA1 (obmenu-1.0.tar.gz) = e2ONUwnKRjmAeCxg2U528CVltZY=
SHA256 (obmenu-1.0.tar.gz) = yc6mTUDUYaNOo72uyYZ0h8gZ1fmBThzFTbYH1NPCDic=
SIZE (obmenu-1.0.tar.gz) = 26375

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-obmenu,v 1.1.1.1 2007/12/19 16:09:34 ajacoutot Exp $
--- obmenu.orig Thu Feb 2 13:03:38 2006
+++ obmenu Wed Dec 19 15:10:23 2007
@@ -462,9 +462,12 @@ class App:
self.remove(None)
def show_about(self, args):
- #gtk.glade.XML("/usr/local/share/obmenu/obmenu.glade", "aboutdialog1")
- gtk.glade.XML(self.gladefile, "aboutdialog1")
-
+ self.aboutdialog.show()
+
+ def close_about(self, *args):
+ self.aboutdialog.hide()
+ return True
+
# application init
def init(self):
if len(sys.argv) == 2:
@@ -503,6 +506,10 @@ class App:
# Set the basics for GTK
self.arbol = gtk.glade.XML(self.gladefile, "window1")
+ self.about = gtk.glade.XML(self.gladefile, "aboutdialog1")
+ self.aboutdialog=self.about.get_widget("aboutdialog1")
+ self.aboutdialog.connect ('delete-event', self.close_about)
+ self.aboutdialog.connect ('response', self.close_about)
self.treeview=self.arbol.get_widget("treeview1")
self.label_entry = self.arbol.get_widget("entry1")

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-obmenu_glade,v 1.1.1.1 2007/12/19 16:09:34 ajacoutot Exp $
--- obmenu.glade.orig Wed Dec 19 15:15:38 2007
+++ obmenu.glade Wed Dec 19 15:15:49 2007
@@ -727,7 +727,7 @@ Exit</property>
</widget>
<widget class="GtkAboutDialog" id="aboutdialog1">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="destroy_with_parent">True</property>
<property name="name" translatable="yes">Openbox Menu Editor</property>
<property name="comments" translatable="yes">Thank you for using this sofware.

7
x11/obmenu/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
Obmenu is a menu editor designed for openbox. It's easy to use, allowing
to get the most out of the powerful Openbox menu system, while hiding
the xml layout from the user.
It also (optionally) installs a bunch of dynamic menus (pipe menus),
such as Gnome menus or a quick-navigator.
You can also use the obxml module to easily write pipe menus of your own
in Python.

13
x11/obmenu/pkg/PLIST Normal file
View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/12/19 16:09:34 ajacoutot Exp $
bin/obm-dir
bin/obm-moz
bin/obm-nav
bin/obm-xdg
bin/obmenu
lib/python${MODPY_VERSION}/site-packages/obMenu-1.0-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/obxml.py
lib/python${MODPY_VERSION}/site-packages/obxml.pyc
share/obmenu/
share/obmenu/mnu16.png
share/obmenu/mnu48.png
share/obmenu/obmenu.glade