[evolution-patches] Please help to review this libgal e-text patch.



Hi, guys,

Please help to review this little patch to fix the following issue:

# Folder name are shown in vertical on Shortcuts Bar in non-ascii locales.

   * Reproduce steps:
    1. Invoke evolution in a non-ascii locale, e.g., ko, or zh_CN
    2. Hide the shortcut and close evolution
    3. Restart evolution, and show the shortcut bar

I found the shortcut use EText as the canvas text item, and while setting clip_width property, the width should also be updated in case the line_wrap is true. Just like what has been
done in create_layout().

--- libgal-1.99.10/gal/e-text/e-text.c  2004-07-15 05:58:52.000000000 +0800
+++ libgal-1.99.10.new/gal/e-text/e-text.c 2004-08-03 21:39:22.000000000 +0800
@@ -759,9 +759,10 @@ e_text_set_property (GObject *object,
        case PROP_CLIP_WIDTH:
                text->clip_width = fabs (g_value_get_double (value));
                calc_ellipsis (text);
-               if ( text->line_wrap )
+               if ( text->line_wrap ) {
+                       text->width = text->clip_width;
                        text->needs_split_into_lines = 1;
-               else {
+               } else {
                        text->needs_calc_height = 1;
                }
                needs_reflow = 1;

Regards,

--
Yong Sun <Yong Sun Sun COM> x82126
Sun (China) ERI -- AGC



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