[gnumeric] item-edit: use proper pango context.



commit bec887992e031720892460bda36627f90b1f543a
Author: Morten Welinder <terra gnome org>
Date:   Mon May 3 14:35:39 2010 -0400

    item-edit: use proper pango context.

 ChangeLog       |    2 ++
 src/item-edit.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2873e85..be75381 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-05-03  Morten Welinder  <terra gnome org>
 
+	* src/item-edit.c (item_edit_realize): Use proper pango context.
+
 	* src/sheet.c (cb_sheet_cell_copy): Unwrap the array expression.
 
 	* src/expr.c (gnm_expr_is_array): New function.
diff --git a/src/item-edit.c b/src/item-edit.c
index 27a12d1..58fd502 100644
--- a/src/item-edit.c
+++ b/src/item-edit.c
@@ -471,7 +471,9 @@ item_edit_realize (GocItem *item)
 	scale = item->canvas->pixels_per_unit;
 	ie->style = gnm_style_dup
 		(sheet_style_get (sheet, ie->pos.col, ie->pos.row));
-	ie->gfont = gnm_style_get_font (ie->style, sheet->context);
+	ie->gfont = gnm_style_get_font
+		(ie->style,
+		 gtk_widget_get_pango_context (GTK_WIDGET (pane)));
 	gnm_font_ref (ie->gfont);
 
 	if (gnm_style_get_align_h (ie->style) == HALIGN_GENERAL)



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