FreeBSD Bugzilla – Attachment 153519 Details for
Bug 198031
[PATCH] x11-wm/obmenu execute actions have empty command
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against obxml.py
obxml.patch (text/plain), 1.44 KB, created by
JochenF
on 2015-02-25 12:31:57 UTC
(
hide
)
Description:
Patch against obxml.py
Filename:
MIME Type:
Creator:
JochenF
Created:
2015-02-25 12:31:57 UTC
Size:
1.44 KB
patch
obsolete
>--- obxml.sav 2015-02-25 13:15:22.771536000 +0100 >+++ obxml.py 2012-10-02 12:06:55.000000000 +0200 >@@ -1,4 +1,4 @@ >-#!/usr/bin/python >+# obxml.py > # > # Openbox Menu Editor 1.0 beta > # >@@ -117,7 +117,7 @@ > accion = it.attributes["name"].nodeValue > if accion.lower() == "execute": > for itm in it.childNodes: >- if itm.nodeType == 1 and itm.nodeName.lower() == "execute": >+ if itm.nodeType == 1 and itm.nodeName.lower() == "command": > for item in itm.childNodes: > if item.nodeType == 3: > param = item.nodeValue.strip() >@@ -207,7 +207,7 @@ > nodo.attributes["label"] = label > accion = self.dom.createElement("action") > accion.attributes["name"] = "Execute" >- exe = self.dom.createElement("execute") >+ exe = self.dom.createElement("command") > txt = self.dom.createTextNode("") > txt.nodeValue = execute > exe.appendChild(txt) >@@ -256,14 +256,14 @@ > it.attributes["name"].nodeValue = action > if action == "Execute": > if not it.childNodes: >- elm = xml.dom.minidom.Element("execute") >+ elm = xml.dom.minidom.Element("command") > txt = xml.dom.minidom.Text() > txt.nodeValue = exe > elm.appendChild(txt) > it.appendChild(elm) > else: > for i in it.childNodes: >- if i.nodeType == 1 and i.nodeName == "execute": >+ if i.nodeType == 1 and i.nodeName == "command": > for item in i.childNodes: > if item.nodeType == 3: > item.nodeValue = exe
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198031
: 153519 |
154409