summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/theme.c2
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);