diff --git a/src/dialogs/print/settings.c b/src/dialogs/print/settings.c index c2ed4c4..cfcb983 100644 --- a/src/dialogs/print/settings.c +++ b/src/dialogs/print/settings.c @@ -152,3 +152,12 @@ LIB3270_EXPORT void v3270_print_settings_set_color_scheme(GtkWidget *widget, con v3270_color_scheme_set_text(GTK_V3270_COLOR_SCHEME(GTK_V3270_PRINT_SETTINGS(widget)->color), colors); } +LIB3270_EXPORT const gchar * v3270_print_settings_get_font_family(GtkWidget *widget) +{ + return v3270_font_selection_get_family(GTK_V3270_PRINT_SETTINGS(widget)->font); +} + +LIB3270_EXPORT gboolean v3270_print_settings_set_font_family(GtkWidget *widget, const gchar *fontname) +{ + return v3270_font_selection_set_family(GTK_V3270_PRINT_SETTINGS(widget)->font,fontname); +} diff --git a/src/include/v3270/colorscheme.h b/src/include/v3270/colorscheme.h index f47ef50..f4fb420 100644 --- a/src/include/v3270/colorscheme.h +++ b/src/include/v3270/colorscheme.h @@ -61,6 +61,7 @@ LIB3270_EXPORT GtkWidget * v3270_color_scheme_new(); LIB3270_EXPORT void v3270_color_scheme_set_rgba(GtkWidget *widget, const GdkRGBA *colors); + LIB3270_EXPORT int v3270_color_scheme_get_rgba(GtkWidget *widget, GdkRGBA *colors, size_t num_colors); LIB3270_EXPORT gchar * v3270_color_scheme_get_text(GtkWidget *widget); LIB3270_EXPORT void v3270_color_scheme_set_text(GtkWidget *widget, const gchar *colors); diff --git a/src/include/v3270/print.h b/src/include/v3270/print.h index 1478b5e..799e0dd 100644 --- a/src/include/v3270/print.h +++ b/src/include/v3270/print.h @@ -77,7 +77,8 @@ LIB3270_EXPORT void v3270_print_settings_set_show_selection(GtkWidget *widget, gboolean is_active); LIB3270_EXPORT gchar * v3270_print_settings_get_color_scheme(GtkWidget *widget); LIB3270_EXPORT void v3270_print_settings_set_color_scheme(GtkWidget *widget, const gchar *colors); - + LIB3270_EXPORT const gchar * v3270_print_settings_get_font_family(GtkWidget *widget); + LIB3270_EXPORT gboolean v3270_print_settings_set_font_family(GtkWidget *widget, const gchar *fontname); G_END_DECLS -- libgit2 0.21.2