diff --git a/include/Desktop/compat.h b/include/Desktop/compat.h index 3b9697e..66fa9f4 100644 --- a/include/Desktop/compat.h +++ b/include/Desktop/compat.h @@ -120,6 +120,10 @@ GtkWidget * gtk_paned_new(GtkOrientation orientation); # if !GTK_CHECK_VERSION(3, 0, 0) GtkWidget * gtk_separator_new(GtkOrientation orientation); + +# if !GTK_CHECK_VERSION(3, 0, 0) +void gtk_widget_override_font(GtkWidget * widget, + const PangoFontDescription * desc); # endif #endif /* !LIBDESKTOP_DESKTOP_COMPAT_H */ diff --git a/src/compat.c b/src/compat.c index f1ca19f..b69389c 100644 --- a/src/compat.c +++ b/src/compat.c @@ -108,3 +108,13 @@ GtkWidget * gtk_separator_new(GtkOrientation orientation) } } #endif + + +#if !GTK_CHECK_VERSION(3, 0, 0) +/* gtk_widget_override_font */ +void gtk_widget_override_font(GtkWidget * widget, + const PangoFontDescription * desc) +{ + gtk_widget_modify_font(widget, desc); +} +#endif