Add compatibility code for gtk_widget_override_font()

This commit is contained in:
Pierre Pronchery 2015-11-03 18:57:47 +01:00
parent 8b7ef90443
commit d61e6b85c7
2 changed files with 14 additions and 0 deletions

View File

@ -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 */

View File

@ -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