From: John Darrington Date: Fri, 21 Nov 2008 09:08:39 +0000 (+0900) Subject: Avoid runtime warning X-Git-Tag: v0.7.1~129 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc27dc590c09564dfb1c9361e1a3cb7f5d42371a;p=pspp-builds.git Avoid runtime warning --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index aefffe2d..0fdc61cf 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -119,7 +119,8 @@ default_row_height (const GtkSheet *sheet) { GtkWidget *widget = GTK_WIDGET (sheet); - if (!widget->style->font_desc) return 25; + if (! GTK_WIDGET_REALIZED (widget) || !widget->style->font_desc) + return 25; else { PangoContext *context = gtk_widget_get_pango_context (widget);