Commit 7b0877d56706f971a373107fa4860068eb2cc53d

Authored by perry.werneck@gmail.com
1 parent 76c750b6

Incluindo opção para obter flags da sessão corrente

Showing 2 changed files with 7 additions and 0 deletions   Show diff stats
src/include/pw3270.h
... ... @@ -69,6 +69,8 @@
69 69 LIB3270_EXPORT gint pw3270_get_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint def);
70 70 LIB3270_EXPORT void pw3270_set_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint val);
71 71  
  72 + LIB3270_EXPORT gboolean pw3270_get_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gboolean def);
  73 +
72 74 typedef enum pw3270_src
73 75 {
74 76 PW3270_SRC_ALL, /**< Screen contents */
... ...
src/pw3270/tools.c
... ... @@ -109,3 +109,8 @@ LIB3270_EXPORT void pw3270_set_integer(GtkWidget *widget, const gchar *group, co
109 109 {
110 110 set_integer_to_config(group, key, val);
111 111 }
  112 +
  113 +LIB3270_EXPORT gint pw3270_get_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gint def)
  114 +{
  115 + return get_boolean_from_config(group, key, def);
  116 +}
... ...