[gtk+] Don't allocate space for "" in scale marks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't allocate space for "" in scale marks
- Date: Thu, 5 Aug 2010 01:50:02 +0000 (UTC)
commit 519eae87296fecf4ee06e680f7abdeb8864ae427
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 4 21:47:54 2010 -0400
Don't allocate space for "" in scale marks
Turns out GtkBuilder ends up creating marks with non-NULL
empty texts, so ignore those. Bug 614443, reported by Filippo Argiolas.
gtk/gtkscale.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index c8a82cc..eb930ba 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -852,7 +852,7 @@ gtk_scale_get_mark_label_size (GtkScale *scale,
{
GtkScaleMark *mark = m->data;
- if (mark->markup)
+ if (mark->markup && *mark->markup)
{
pango_layout_set_markup (layout, mark->markup, -1);
pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]