Re: Getting patches looked at



On Thu, 2006-11-23 at 17:42 +0100, Tom Parker wrote:
> Alexander Larsson wrote:
> > What you want to do is use the ellipsize functions in pango (like
> > pango_layout_set_ellipsize) that do all the complicated work for you.
> 
> (I've just commented this on the bug itself, but also copying here)
> 
> Thanks for the comments. I started looking at the Pango docs, and then 
> worked out there's an easier way to do this... get the GtkLabel to do it 
> for us. This patch sets the ellipsize property on the location label to 
> PANGO_ELLIPSIZE_END, and then sets the maximum requested characters for 
> the label to MAX_SHORTNAME_PATH.

Much better, although i found there is even a gtk_label_set_ellipsize. I
commited it using that. Also, i fixed up the indentation to nautilus
standard. Thanks!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an all-American Jewish rock star on a mission from God. She's a 
sharp-shooting hip-hop nun with the soul of a mighty warrior. They fight 
crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]