[gimp] app: don't reserve a height for the statusbar label's icon
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't reserve a height for the statusbar label's icon
- Date: Fri, 29 Oct 2010 08:33:44 +0000 (UTC)
commit 59a4e70b86e43f8620ca7a3bea7fba935593acfa
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 29 10:31:04 2010 +0200
app: don't reserve a height for the statusbar label's icon
Reserve only a width. The height gets ignored by GTK+ 2.x and breaks
layout positioning in GTK+ 3.x which uses pango-cairo for all text
rendering.
app/display/gimpstatusbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c
index 480b440..125f129 100644
--- a/app/display/gimpstatusbar.c
+++ b/app/display/gimpstatusbar.c
@@ -606,7 +606,7 @@ gimp_statusbar_set_text (GimpStatusbar *statusbar,
rect.y = 0;
rect.width = PANGO_SCALE * (gdk_pixbuf_get_width (statusbar->icon) +
ICON_SPACING);
- rect.height = PANGO_SCALE * gdk_pixbuf_get_height (statusbar->icon);
+ rect.height = 0;
attrs = pango_attr_list_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]