Team,<br><br>Unfortunately, I had not mentioned the version number in the previous patch. I apologize for the mistake. I am correcting the indentation with adding the versions correctly.<br><br>Regards,<br><br>Mukul Gupta<br>
Research Engineer, SEETA<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 1:22 AM, Mukul Gupta <span dir="ltr"><<a href="mailto:mukul@seeta.in">mukul@seeta.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Changing maximum text length to a suitable value in clipboardmenu<br>
which is dependent on the screen width and pixel size of<br>
characters<br>
---<br>
src/jarabe/frame/clipboardmenu.py | 5 ++++-<br>
<div class="im"> 1 files changed, 4 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/jarabe/frame/clipboardmenu.py b/src/jarabe/frame/clipboardmenu.py<br>
</div>index b998110..b0d141d 100644<br>
<div class="im">--- a/src/jarabe/frame/clipboardmenu.py<br>
+++ b/src/jarabe/frame/clipboardmenu.py<br>
</div>@@ -38,7 +38,10 @@ from jarabe.model import bundleregistry<br>
<div class="im"> class ClipboardMenu(Palette):<br>
<br>
def __init__(self, cb_object):<br>
- Palette.__init__(self, text_maxlen=100)<br>
</div>+ char_lable = gtk.Label()<br>
+ create_layout = char_lable.create_pango_layout("W")<br>
+ Palette.__init__(self, text_maxlen=int(0.75 * gtk.gdk.screen_width<br>
+ () / create_layout.get_pixel_size()[0]))<br>
<div><div></div><div class="h5"><br>
self._cb_object = cb_object<br>
<br>
--<br>
1.7.0.4<br>
<br>
</div></div></blockquote></div><br>