Commit d36bcfdb2063c7acace39411de11c4682a19fb7c

Authored by Perry Werneck
1 parent 5fc38754
Exists in master and in 1 other branch develop

Loading/saving logfile from properties.

src/include/terminal.h
... ... @@ -89,7 +89,6 @@ G_BEGIN_DECLS
89 89 guint integer;
90 90 guint uint;
91 91 guint str;
92   -// guint responses;
93 92 } type;
94 93  
95 94 } properties;
... ...
src/terminal/properties/get.c
... ... @@ -39,12 +39,6 @@
39 39  
40 40 // debug("%s(%u,%s)",__FUNCTION__,prop_id,g_param_spec_get_name(pspec));
41 41  
42   - /*
43   - if(prop_id >= klass->properties.type.responses)
44   - {
45   - g_value_set_int(value,(int) window->responses[prop_id - klass->properties.type.responses]);
46   - }
47   - else */
48 42 if(prop_id >= klass->properties.type.str)
49 43 {
50 44 const LIB3270_STRING_PROPERTY * prop = (lib3270_get_string_properties_list()+(prop_id - klass->properties.type.str));
... ...
src/terminal/properties/init.c
... ... @@ -373,7 +373,7 @@
373 373 for(ix = 0; str_props[ix].name; ix++)
374 374 {
375 375  
376   -// debug("Property %u=%s (String)",(unsigned int) klass->properties.type.str + ix, str_props[ix].name);
  376 + // debug("Property %u=%s (String)",(unsigned int) klass->properties.type.str + ix, str_props[ix].name);
377 377  
378 378 spec = g_param_spec_string(
379 379 str_props[ix].name,
... ...
src/terminal/widget.c
... ... @@ -78,6 +78,7 @@ static const gchar *persistent_properties[] = {
78 78 "auto_disconnect",
79 79 "colors",
80 80 "selection_flags",
  81 + "logfile",
81 82 NULL
82 83 };
83 84  
... ...
src/testprogram/toolbar.c
... ... @@ -35,6 +35,7 @@
35 35 #include <v3270/dialogs.h>
36 36 #include <v3270/settings.h>
37 37 #include <v3270/selection.h>
  38 + #include <v3270/tools.h>
38 39 #include <v3270/trace.h>
39 40 #include <lib3270/log.h>
40 41 #include <lib3270/popup.h>
... ... @@ -49,25 +50,6 @@
49 50 v3270_print(terminal,NULL);
50 51 }
51 52  
52   - /*
53   - static void host_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *terminal)
54   - {
55   - v3270_select_host(terminal);
56   - }
57   - */
58   -
59   - /*
60   - static void font_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *terminal)
61   - {
62   - v3270_settings_popup_dialog(
63   - v3270_font_settings_new(),
64   - terminal,
65   - FALSE
66   - );
67   -
68   - }
69   - */
70   -
71 53 static void preferences_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *terminal)
72 54 {
73 55 size_t ix;
... ...