diff --git a/src/include/pw3270.h b/src/include/pw3270.h index f867d90..8d809f5 100644 --- a/src/include/pw3270.h +++ b/src/include/pw3270.h @@ -69,6 +69,8 @@ LIB3270_EXPORT gint pw3270_get_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint def); LIB3270_EXPORT void pw3270_set_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint val); + LIB3270_EXPORT gboolean pw3270_get_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gboolean def); + typedef enum pw3270_src { PW3270_SRC_ALL, /**< Screen contents */ diff --git a/src/pw3270/tools.c b/src/pw3270/tools.c index b5e84ad..2204d25 100644 --- a/src/pw3270/tools.c +++ b/src/pw3270/tools.c @@ -109,3 +109,8 @@ LIB3270_EXPORT void pw3270_set_integer(GtkWidget *widget, const gchar *group, co { set_integer_to_config(group, key, val); } + +LIB3270_EXPORT gint pw3270_get_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gint def) +{ + return get_boolean_from_config(group, key, def); +} -- libgit2 0.21.2