diff options
author | Denis Gorodnichev <[email protected]> | 2015-09-22 18:38:15 +0300 |
---|---|---|
committer | Denis Gorodnichev <[email protected]> | 2015-09-24 13:12:59 +0300 |
commit | 95953a48746624332ae69296da031ea2450306b4 (patch) | |
tree | 270be46b72c43f3cf76a24ce1a9aa08d34f39084 /src | |
parent | 1bb2f34586f78697713e38681402f7099bc87078 (diff) | |
download | marco-95953a48746624332ae69296da031ea2450306b4.tar.bz2 marco-95953a48746624332ae69296da031ea2450306b4.tar.xz |
gtk3: fix assertion 'gtk_widget_get_realized (widget)' failed
gtk3 can use style context before widget realization
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/theme.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |