Commit e8f938a2b6608acc690cd3a2b01be423160d9675
1 parent
eb5a1d11
Exists in
master
and in
3 other branches
Fixing boolean property.
Showing
3 changed files
with
18 additions
and
2 deletions
Show diff stats
src/include/lib3270.h
@@ -421,7 +421,7 @@ | @@ -421,7 +421,7 @@ | ||
421 | */ | 421 | */ |
422 | LIB3270_EXPORT int lib3270_get_height(H3270 *h); | 422 | LIB3270_EXPORT int lib3270_get_height(H3270 *h); |
423 | 423 | ||
424 | - LIB3270_EXPORT unsigned int lib3270_get_length(H3270 *h); | 424 | + LIB3270_EXPORT int lib3270_get_length(H3270 *h); |
425 | 425 | ||
426 | /** | 426 | /** |
427 | * @brief Creates an empty TN3270 session. | 427 | * @brief Creates an empty TN3270 session. |
src/lib3270/properties.c
@@ -142,6 +142,22 @@ | @@ -142,6 +142,22 @@ | ||
142 | NULL // Set value. | 142 | NULL // Set value. |
143 | }, | 143 | }, |
144 | 144 | ||
145 | + /* | ||
146 | + { | ||
147 | + "", // Property name. | ||
148 | + N_( "" ), // Property description. | ||
149 | + NULL, // Get value. | ||
150 | + NULL // Set value. | ||
151 | + }, | ||
152 | + */ | ||
153 | + | ||
154 | + { | ||
155 | + NULL, | ||
156 | + NULL, | ||
157 | + NULL, | ||
158 | + NULL | ||
159 | + } | ||
160 | + | ||
145 | }; | 161 | }; |
146 | 162 | ||
147 | return properties; | 163 | return properties; |
src/lib3270/screen.c
@@ -217,7 +217,7 @@ static unsigned short calc_attrs(H3270 *session, int baddr, int fa_addr, int fa) | @@ -217,7 +217,7 @@ static unsigned short calc_attrs(H3270 *session, int baddr, int fa_addr, int fa) | ||
217 | return a; | 217 | return a; |
218 | } | 218 | } |
219 | 219 | ||
220 | -LIB3270_EXPORT unsigned int lib3270_get_length(H3270 *h) | 220 | +LIB3270_EXPORT int lib3270_get_length(H3270 *h) |
221 | { | 221 | { |
222 | CHECK_SESSION_HANDLE(h); | 222 | CHECK_SESSION_HANDLE(h); |
223 | return h->rows * h->cols; | 223 | return h->rows * h->cols; |