From 95953a48746624332ae69296da031ea2450306b4 Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Tue, 22 Sep 2015 18:38:15 +0300 Subject: gtk3: fix assertion 'gtk_widget_get_realized (widget)' failed gtk3 can use style context before widget realization --- src/ui/theme.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ui/theme.c b/src/ui/theme.c index c9f2ab47..390b0375 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -6331,7 +6331,9 @@ meta_gtk_widget_get_font_desc (GtkWidget *widget, { PangoFontDescription *font_desc; +#if !GTK_CHECK_VERSION (3, 0, 0) g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); +#endif #if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *style = gtk_widget_get_style_context (widget); -- cgit v1.2.1