Add compatibility code for gtk_widget_override_font()
This commit is contained in:
parent
8b7ef90443
commit
d61e6b85c7
|
@ -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 */
|
||||
|
|
10
src/compat.c
10
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user