Frank Kobzik has uploaded a new change for review.

Change subject: frontend: "escape" underscores in spice menu
......................................................................

frontend: "escape" underscores in spice menu

this patch doubles underscores in spice menu since single underscore is
interpreted as a hotkey by gtk and is not printed (i.e. fedora_20.iso
was printed as fedora20.iso).

Change-Id: Ibb090a6ae37aad234bf815c40b8dd5a051b24879
Bug-Url: https://bugzilla.redhat.com/963307
Signed-off-by: Frantisek Kobzik <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceMenu.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/27033/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceMenu.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceMenu.java
index 92d6e8e..3f21ed7 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceMenu.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/SpiceMenu.java
@@ -100,7 +100,7 @@
     private String formatSpiceMenuItem(int parentId, int itemId, String 
itemText, int itemCode) {
         return new StringBuilder(Integer.toString(parentId))
             .append("\r").append(itemId) //$NON-NLS-1$
-            .append("\r").append(itemText) //$NON-NLS-1$
+            .append("\r").append(itemText.replaceAll("_", "__")) // 
$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
             .append("\r").append(itemCode) //$NON-NLS-1$
             .append("\r\n").toString(); //$NON-NLS-1$
     }


-- 
To view, visit http://gerrit.ovirt.org/27033
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb090a6ae37aad234bf815c40b8dd5a051b24879
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Frank Kobzik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to