[gtk+/extended-layout-jhs: 53/64] Practice consistent pixel rounding to avoid GtkLabel showing ellipses when
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/extended-layout-jhs: 53/64] Practice consistent pixel rounding to avoid GtkLabel showing ellipses when
- Date: Wed, 25 Nov 2009 11:23:21 +0000 (UTC)
commit e0e3a7b510ed9f31297ad082c599d3ba193a2c9d
Author: Mathias Hasselmann <mathias hasselmann gmx de>
Date: Mon Aug 6 14:30:48 2007 +0000
Practice consistent pixel rounding to avoid GtkLabel showing ellipses when
2007-08-06 Mathias Hasselmann <mathias hasselmann gmx de>
* gtk/gtklabel.c: Practice consistent pixel rounding to avoid GtkLabel
showing ellipses when PANGO_PIXELS and PANGO_PIXELS_FLOOR differ by
less then 0.5 pixels.
svn path=/branches/extended-layout/; revision=18584
ChangeLog.gtk-extended-layout | 8 +++++++-
gtk/gtklabel.c | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog.gtk-extended-layout b/ChangeLog.gtk-extended-layout
index cacf738..f431a8a 100644
--- a/ChangeLog.gtk-extended-layout
+++ b/ChangeLog.gtk-extended-layout
@@ -1,10 +1,16 @@
2007-08-06 Mathias Hasselmann <mathias hasselmann gmx de>
+ * gtk/gtklabel.c: Practice consistent pixel rounding to avoid GtkLabel
+ showing ellipses when PANGO_PIXELS and PANGO_PIXELS_FLOOR differ by
+ less then 0.5 pixels.
+
+2007-08-06 Mathias Hasselmann <mathias hasselmann gmx de>
+
* gtk/gtktreeviewcolumn.c:
Rename gtk_tree_view_column_cell_get_size_impl
to gtk_tree_view_column_cell_get_real_size to
fit naming conventions.
- * gtk/gtkscrolledwindow.c:
+ * gtk/gtkscrolledwindow.c:
Provide and consider natural size information.
* tests/testextendedlayout.c:
Show natural size of the hovered widget in statusbar.
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 5f405df..2f94db1 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2232,7 +2232,7 @@ gtk_label_size_allocate (GtkWidget *widget,
bounds.height = allocation->height - label->misc.ypad * 2;
pango_layout_set_width (label->layout, -1);
- pango_layout_get_extents (label->layout, NULL, &logical);
+ pango_layout_get_pixel_extents (label->layout, NULL, &logical);
if (label->have_transform)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]