diff options
author | Denis Gorodnichev <[email protected]> | 2015-09-22 18:38:15 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-06 13:17:45 +0300 |
commit | d84a79c7b63ca504bb12a31d8d8eb2b4cb5bdc70 (patch) | |
tree | 6ef408a0dd52765a985071adbd190c4e82d96242 /src/ui | |
parent | fc3b45a0cdea3544274127483137ae1eac5df53b (diff) | |
download | marco-d84a79c7b63ca504bb12a31d8d8eb2b4cb5bdc70.tar.bz2 marco-d84a79c7b63ca504bb12a31d8d8eb2b4cb5bdc70.tar.xz |
gtk3: fix assertion 'gtk_widget_get_realized (widget)' failed
gtk3 can use style context before widget realization
Diffstat (limited to 'src/ui')
-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 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); |