From d84a79c7b63ca504bb12a31d8d8eb2b4cb5bdc70 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(+) diff --git a/src/ui/theme.c b/src/ui/theme.c index 173c58f0..4fab7fb1 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -6283,7 +6283,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