forked from AuroraMiddleware/gtk
Fix misalignment of RTL text in ellipsized GtkLabel: use layout width if
2006-01-23 Behdad Esfahbod <behdad@gnome.org> * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL text in ellipsized GtkLabel: use layout width if set, otherwise fallback to ink extents width. (#322042)
This commit is contained in:
parent
2ffe24ca11
commit
5d80e4b65c
@ -1,3 +1,9 @@
|
||||
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
|
||||
text in ellipsized GtkLabel: use layout width if set, otherwise
|
||||
fallback to ink extents width. (#322042)
|
||||
|
||||
2006-01-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkassistant.c (compute_last_button_state): Only show the
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-01-23 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
|
||||
text in ellipsized GtkLabel: use layout width if set, otherwise
|
||||
fallback to ink extents width. (#322042)
|
||||
|
||||
2006-01-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkassistant.c (compute_last_button_state): Only show the
|
||||
|
@ -2220,11 +2220,19 @@ get_layout_location (GtkLabel *label,
|
||||
|
||||
if (label->ellipsize || priv->width_chars > 0)
|
||||
{
|
||||
int width;
|
||||
PangoRectangle ink_rect;
|
||||
|
||||
pango_layout_get_extents (label->layout, &ink_rect, NULL);
|
||||
|
||||
req_width = PANGO_PIXELS (ink_rect.width);
|
||||
width = pango_layout_get_width (label->layout);
|
||||
if (width == -1)
|
||||
{
|
||||
pango_layout_get_extents (label->layout, &ink_rect, NULL);
|
||||
req_width = PANGO_PIXELS (ink_rect.width);
|
||||
}
|
||||
else
|
||||
{
|
||||
req_width = PANGO_PIXELS (width);
|
||||
}
|
||||
}
|
||||
else
|
||||
req_width = widget->requisition.width;
|
||||
|
@ -14,8 +14,10 @@ pixbuf-read
|
||||
pixbuf-threads
|
||||
simple
|
||||
stresstest-toolbar
|
||||
floatingtest
|
||||
testactions
|
||||
testaccel
|
||||
testassistang
|
||||
testcairo
|
||||
testcalendar
|
||||
testcellrenderertext
|
||||
|
Loading…
Reference in New Issue
Block a user