Commit d30f5538e9d7ee69f0ccfff23c0aadbae22bcecd
1 parent
ec856af7
Exists in
master
and in
1 other branch
Working on print settings dialog.
Showing
3 changed files
with
12 additions
and
1 deletions
Show diff stats
src/dialogs/print/settings.c
... | ... | @@ -152,3 +152,12 @@ LIB3270_EXPORT void v3270_print_settings_set_color_scheme(GtkWidget *widget, con |
152 | 152 | v3270_color_scheme_set_text(GTK_V3270_COLOR_SCHEME(GTK_V3270_PRINT_SETTINGS(widget)->color), colors); |
153 | 153 | } |
154 | 154 | |
155 | +LIB3270_EXPORT const gchar * v3270_print_settings_get_font_family(GtkWidget *widget) | |
156 | +{ | |
157 | + return v3270_font_selection_get_family(GTK_V3270_PRINT_SETTINGS(widget)->font); | |
158 | +} | |
159 | + | |
160 | +LIB3270_EXPORT gboolean v3270_print_settings_set_font_family(GtkWidget *widget, const gchar *fontname) | |
161 | +{ | |
162 | + return v3270_font_selection_set_family(GTK_V3270_PRINT_SETTINGS(widget)->font,fontname); | |
163 | +} | ... | ... |
src/include/v3270/colorscheme.h
... | ... | @@ -61,6 +61,7 @@ |
61 | 61 | |
62 | 62 | LIB3270_EXPORT GtkWidget * v3270_color_scheme_new(); |
63 | 63 | LIB3270_EXPORT void v3270_color_scheme_set_rgba(GtkWidget *widget, const GdkRGBA *colors); |
64 | + LIB3270_EXPORT int v3270_color_scheme_get_rgba(GtkWidget *widget, GdkRGBA *colors, size_t num_colors); | |
64 | 65 | LIB3270_EXPORT gchar * v3270_color_scheme_get_text(GtkWidget *widget); |
65 | 66 | LIB3270_EXPORT void v3270_color_scheme_set_text(GtkWidget *widget, const gchar *colors); |
66 | 67 | ... | ... |
src/include/v3270/print.h
... | ... | @@ -77,7 +77,8 @@ |
77 | 77 | LIB3270_EXPORT void v3270_print_settings_set_show_selection(GtkWidget *widget, gboolean is_active); |
78 | 78 | LIB3270_EXPORT gchar * v3270_print_settings_get_color_scheme(GtkWidget *widget); |
79 | 79 | LIB3270_EXPORT void v3270_print_settings_set_color_scheme(GtkWidget *widget, const gchar *colors); |
80 | - | |
80 | + LIB3270_EXPORT const gchar * v3270_print_settings_get_font_family(GtkWidget *widget); | |
81 | + LIB3270_EXPORT gboolean v3270_print_settings_set_font_family(GtkWidget *widget, const gchar *fontname); | |
81 | 82 | |
82 | 83 | G_END_DECLS |
83 | 84 | ... | ... |