<span class="Apple-style-span" style="border-collapse: collapse; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><a href="http://dev.sugarlabs.org/ticket/610">http://dev.sugarlabs.org/ticket/610</a><br>

</span><br><div class="gmail_quote">2009/4/2 Vamsi Krishna Davuluri <span dir="ltr">&lt;<a href="mailto:vamsi.davuluri@gmail.com">vamsi.davuluri@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br><br>So I was wondering, after right clicking on a journal item, the palette again shows the file name. Why is that? as on most of the standard operating systems, when ever we right click on an item, we are given options such as open, open with, print, copy etc. Never the file name.<br>


<br>Couldn&#39;t the alternate be to highlight the clicked item instead.<br><br><br>Also a fix to bug #610 would be<br><br>    def __init__(self, label=None, accel_path=None, menu_after_content=False,<br>                 text_maxlen=0, **kwargs):<br>


<br>        screen = gtk.gdk.Screen()<br>    self.wwidth = screen.get_width()<br><br>        #window = gtk.Window()<br>        #self.wwidth, self.wheight = window.get_size()<br><br>        self.max_pixels = int((1.0/4)*(self.wwidth))<br>


<br>--------------------------------<br>        if text_maxlen &gt;= 0:<br>            self._label.set_max_width_chars(text_maxlen)<br>            self._label.set_ellipsize(pango.ELLIPSIZE_MIDDLE)<br>           <br>        labels_box.pack_start(self._label, expand=True)<br>


<br>        self._secondary_label = gtk.Label()<br>        self._secondary_label.set_alignment(0, 0.5)<br><br>        if text_maxlen &gt;= 0:<br>            self._secondary_label.set_max_width_chars(text_maxlen)<br>            self._secondary_label.set_ellipsize(pango.ELLIPSIZE_END)<br>


<br><br><br><br><br>-------------------------------------------------<br><br> def do_size_request(self, requisition):<br>        gtk.Window.do_size_request(self, requisition)<br><br>        # gtk.AccelLabel request doesn&#39;t include the accelerator.<br>


        #label_width = self._label_alignment.size_request()[0] + \<br>                      #self._label.get_accel_width() + \<br>                      #2 * self.get_border_width()<br>        label_width= self.max_pixels<br>


<br>        requisition.width = max(requisition.width,<br>                                style.GRID_CELL_SIZE * 2,<br>                                label_width,<br>                                self._full_request[0])<br>


<br><br><br><br><br>What this does is, It draws the screen proportional to the max_pixels specified(the ratio can be fine tuned by the design team), and ellipsizes which ever exceeds that limit.<br><br><br><br>Thank you.<br>


<br><br><br>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>