Commit df49874bd59cd2799145e0d1af55e4fdd427fc31
1 parent
a7945373
Exists in
master
and in
5 other branches
Corrigindo propriedade errada no widget do terminal
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/include/lib3270/log.h
@@ -62,8 +62,10 @@ | @@ -62,8 +62,10 @@ | ||
62 | #ifdef DEBUG | 62 | #ifdef DEBUG |
63 | #include <stdio.h> | 63 | #include <stdio.h> |
64 | #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr); | 64 | #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr); |
65 | + #define debug( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr); | ||
65 | #else | 66 | #else |
66 | #define trace(x, ...) // __VA_ARGS__ | 67 | #define trace(x, ...) // __VA_ARGS__ |
68 | + #define debug(x, ...) // __VA_ARGS__ | ||
67 | #endif | 69 | #endif |
68 | 70 | ||
69 | #ifdef __cplusplus | 71 | #ifdef __cplusplus |
src/pw3270/v3270/properties.c
@@ -145,7 +145,7 @@ | @@ -145,7 +145,7 @@ | ||
145 | "auto_disconnect", | 145 | "auto_disconnect", |
146 | "Minutes to disconnect when idle", | 146 | "Minutes to disconnect when idle", |
147 | FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); | 147 | FALSE,G_PARAM_READABLE|G_PARAM_WRITABLE); |
148 | - g_object_class_install_property(gobject_class,PROP_LUNAME,v3270_properties[PROP_LUNAME]); | 148 | + g_object_class_install_property(gobject_class,PROP_AUTO_DISCONNECT,v3270_properties[PROP_AUTO_DISCONNECT]); |
149 | 149 | ||
150 | // Toggle properties | 150 | // Toggle properties |
151 | int f; | 151 | int f; |
@@ -155,6 +155,7 @@ | @@ -155,6 +155,7 @@ | ||
155 | v3270_properties[PROP_TOGGLE+f] = g_param_spec_boolean(lib3270_get_toggle_name(f),lib3270_get_toggle_name(f),lib3270_get_toggle_description(f),FALSE,G_PARAM_WRITABLE|G_PARAM_READABLE); | 155 | v3270_properties[PROP_TOGGLE+f] = g_param_spec_boolean(lib3270_get_toggle_name(f),lib3270_get_toggle_name(f),lib3270_get_toggle_description(f),FALSE,G_PARAM_WRITABLE|G_PARAM_READABLE); |
156 | g_object_class_install_property(gobject_class,PROP_TOGGLE+f,v3270_properties[PROP_TOGGLE+f]); | 156 | g_object_class_install_property(gobject_class,PROP_TOGGLE+f,v3270_properties[PROP_TOGGLE+f]); |
157 | } | 157 | } |
158 | + debug("%s",__FUNCTION__); | ||
158 | } | 159 | } |
159 | 160 | ||
160 | LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes) | 161 | LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes) |