Commit 942c70023a41712ab9378c0849cf40fafb6eec86

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

Removing old trace messages.

src/v3270/accessible.c
@@ -324,8 +324,6 @@ static void v3270_accessible_get_character_extents( AtkText *text, @@ -324,8 +324,6 @@ static void v3270_accessible_get_character_extents( AtkText *text,
324 *y -= y_window; 324 *y -= y_window;
325 } 325 }
326 326
327 -// trace("%s: offset=%d x=%d y=%d %s",__FUNCTION__,offset,*x,*y,coords == ATK_XY_WINDOW ? "ATK_XY_WINDOW" : "");  
328 -  
329 } 327 }
330 328
331 static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset) 329 static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset)
@@ -443,8 +441,6 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint @@ -443,8 +441,6 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint
443 441
444 lib3270_free(text); 442 lib3270_free(text);
445 443
446 -// trace("%s:\n%s\n",__FUNCTION__,utftext);  
447 -  
448 } 444 }
449 445
450 return utftext; 446 return utftext;
@@ -456,8 +452,6 @@ static gboolean v3270_set_caret_offset(AtkText *text, gint offset) @@ -456,8 +452,6 @@ static gboolean v3270_set_caret_offset(AtkText *text, gint offset)
456 if (widget == NULL) 452 if (widget == NULL)
457 return FALSE; 453 return FALSE;
458 454
459 - trace("%s - offset=%d",__FUNCTION__,offset);  
460 -  
461 lib3270_set_cursor_address(GTK_V3270(widget)->host,offset); 455 lib3270_set_cursor_address(GTK_V3270(widget)->host,offset);
462 456
463 return TRUE; 457 return TRUE;
@@ -482,8 +476,6 @@ static gint v3270_accessible_get_n_selections (AtkText *text) @@ -482,8 +476,6 @@ static gint v3270_accessible_get_n_selections (AtkText *text)
482 if(!widget) 476 if(!widget)
483 return 0; 477 return 0;
484 478
485 -// trace("%s: n_selections=%d",__FUNCTION__,v3270_get_selection_bounds(widget, NULL, NULL) ? 1 : 0);  
486 -  
487 return v3270_get_selection_bounds(widget, NULL, NULL) ? 1 : 0; 479 return v3270_get_selection_bounds(widget, NULL, NULL) ? 1 : 0;
488 } 480 }
489 481
@@ -491,17 +483,14 @@ static gchar * v3270_accessible_get_selection(AtkText *atk_text, gint selection_ @@ -491,17 +483,14 @@ static gchar * v3270_accessible_get_selection(AtkText *atk_text, gint selection_
491 { 483 {
492 GtkWidget *widget = gtk_accessible_get_widget(GTK_ACCESSIBLE (atk_text)); 484 GtkWidget *widget = gtk_accessible_get_widget(GTK_ACCESSIBLE (atk_text));
493 485
494 -// trace("%s: selection_num=%d",__FUNCTION__,selection_num);  
495 if (widget == NULL ||selection_num != 0) 486 if (widget == NULL ||selection_num != 0)
496 return NULL; 487 return NULL;
497 488
498 if(v3270_get_selection_bounds(widget, start_pos, end_pos)) 489 if(v3270_get_selection_bounds(widget, start_pos, end_pos))
499 { 490 {
500 -// trace("%s: TRUE",__FUNCTION__);  
501 return v3270_get_region(widget, *start_pos, *end_pos, FALSE); 491 return v3270_get_region(widget, *start_pos, *end_pos, FALSE);
502 } 492 }
503 493
504 -// trace("%s: FALSE",__FUNCTION__);  
505 return NULL; 494 return NULL;
506 } 495 }
507 496
@@ -556,8 +545,6 @@ static AtkAttributeSet * v3270_accessible_get_default_attributes (AtkText *text) @@ -556,8 +545,6 @@ static AtkAttributeSet * v3270_accessible_get_default_attributes (AtkText *text)
556 if(!widget) 545 if(!widget)
557 return NULL; 546 return NULL;
558 547
559 - trace("%s is incomplete ***********************",__FUNCTION__);  
560 -  
561 // http://developer.gnome.org/atk/stable/AtkText.html#AtkTextAttribute 548 // http://developer.gnome.org/atk/stable/AtkText.html#AtkTextAttribute
562 549
563 // The direction of the text, if set. Values are "none", "ltr" or "rtl" 550 // The direction of the text, if set. Values are "none", "ltr" or "rtl"
@@ -588,8 +575,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint @@ -588,8 +575,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint
588 AtkAttributeSet * attributes = NULL; 575 AtkAttributeSet * attributes = NULL;
589 int start, end; 576 int start, end;
590 577
591 - trace("%s is incomplete ***********************",__FUNCTION__);  
592 -  
593 g_return_val_if_fail((widget && GTK_IS_V3270(widget)),NULL); 578 g_return_val_if_fail((widget && GTK_IS_V3270(widget)),NULL);
594 579
595 host = v3270_get_session(widget); 580 host = v3270_get_session(widget);
@@ -636,24 +621,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint @@ -636,24 +621,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint
636 return attributes; 621 return attributes;
637 } 622 }
638 623
639 -/*  
640 -static gchar * v3270_accessible_get_text_after_offset(AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset)  
641 -{  
642 - // http://developer.gnome.org/atk/stable/AtkText.html#atk-text-get-text-after-offset  
643 - trace("WARNING: %s is incomplete",__FUNCTION__);  
644 -  
645 -}  
646 -*/  
647 -  
648 -/*  
649 -static gchar * v3270_accessible_get_text_before_offset(AtkText *text,gint offset,AtkTextBoundary boundary_type,gint *start_offset,gint *end_offset)  
650 -{  
651 - // http://developer.gnome.org/atk/stable/AtkText.html#atk-text-get-text-before-offset  
652 - trace("WARNING: %s is incomplete",__FUNCTION__);  
653 -  
654 -}  
655 -*/  
656 -  
657 static void atk_text_interface_init(AtkTextIface *iface) 624 static void atk_text_interface_init(AtkTextIface *iface)
658 { 625 {
659 iface->get_text = v3270_accessible_get_text; 626 iface->get_text = v3270_accessible_get_text;
@@ -867,13 +834,10 @@ void v3270_acessible_set_state(GtkAccessible *obj, LIB3270_MESSAGE id) @@ -867,13 +834,10 @@ void v3270_acessible_set_state(GtkAccessible *obj, LIB3270_MESSAGE id)
867 834
868 bits = GTK_V3270_ACCESSIBLE(obj)->state ^ state; 835 bits = GTK_V3270_ACCESSIBLE(obj)->state ^ state;
869 836
870 -// trace("State change from %04x to %04x (bits=%04x)",GTK_V3270_ACCESSIBLE(obj)->state,state, bits );  
871 -  
872 for(f=0;f<G_N_ELEMENTS(table);f++) 837 for(f=0;f<G_N_ELEMENTS(table);f++)
873 { 838 {
874 if(bits & table[f].flag) 839 if(bits & table[f].flag)
875 { 840 {
876 -// trace("State %s is %s",table[f].dbg,(state & table[f].flag) ? "Yes" : "No");  
877 atk_object_notify_state_change(ATK_OBJECT(obj),table[f].atkstate,(state & table[f].flag) ? TRUE : FALSE); 841 atk_object_notify_state_change(ATK_OBJECT(obj),table[f].atkstate,(state & table[f].flag) ? TRUE : FALSE);
878 } 842 }
879 } 843 }
src/v3270/charset.c
@@ -324,8 +324,6 @@ @@ -324,8 +324,6 @@
324 324
325 static void element_start(GMarkupParseContext *context, const gchar *element_name, const gchar **names,const gchar **values, struct parse *info, GError **error) 325 static void element_start(GMarkupParseContext *context, const gchar *element_name, const gchar **names,const gchar **values, struct parse *info, GError **error)
326 { 326 {
327 - trace("%s(%s)",__FUNCTION__,element_name);  
328 -  
329 if(!g_ascii_strcasecmp(element_name,"pw3270-remap")) 327 if(!g_ascii_strcasecmp(element_name,"pw3270-remap"))
330 { 328 {
331 const gchar *host = NULL; 329 const gchar *host = NULL;
@@ -408,8 +406,6 @@ @@ -408,8 +406,6 @@
408 info->map[info->len].iso = getChar(iso,error); 406 info->map[info->len].iso = getChar(iso,error);
409 info->map[info->len].scope = getRemapScope(scope,error); 407 info->map[info->len].scope = getRemapScope(scope,error);
410 408
411 - trace("%u: ebc=%04x iso=%04x %c",(unsigned int) info->len,info->map[info->len].ebc,info->map[info->len].iso,info->map[info->len].iso);  
412 -  
413 info->len++; 409 info->len++;
414 410
415 } 411 }
@@ -418,10 +414,8 @@ @@ -418,10 +414,8 @@
418 414
419 static void element_end(GMarkupParseContext *context, const gchar *element_name, struct parse *info, GError **error) 415 static void element_end(GMarkupParseContext *context, const gchar *element_name, struct parse *info, GError **error)
420 { 416 {
421 - // trace("%s(%s)",__FUNCTION__,element_name);  
422 } 417 }
423 418
424 -  
425 LIB3270_EXPORT void v3270_remap_from_xml(GtkWidget *widget, const gchar *path) 419 LIB3270_EXPORT void v3270_remap_from_xml(GtkWidget *widget, const gchar *path)
426 { 420 {
427 static const GMarkupParser parser = 421 static const GMarkupParser parser =
@@ -490,11 +484,6 @@ @@ -490,11 +484,6 @@
490 { 484 {
491 unsigned int i; 485 unsigned int i;
492 486
493 - trace("cgcsgid = %lx",cfg.cgcsgid);  
494 - trace("display = %s",cfg.display);  
495 - trace("host = %s",cfg.host);  
496 - trace("length = %u",(unsigned int) cfg.len);  
497 -  
498 lib3270_reset_charset(hSession, cfg.host, cfg.display, cfg.cgcsgid); 487 lib3270_reset_charset(hSession, cfg.host, cfg.display, cfg.cgcsgid);
499 488
500 for(i=0;i < cfg.len; i++) 489 for(i=0;i < cfg.len; i++)
src/v3270/draw.c
@@ -470,8 +470,6 @@ void v3270_update_char(H3270 *session, int addr, unsigned char chr, unsigned sho @@ -470,8 +470,6 @@ void v3270_update_char(H3270 *session, int addr, unsigned char chr, unsigned sho
470 rect.width = terminal->font.width; 470 rect.width = terminal->font.width;
471 rect.height = terminal->font.spacing; 471 rect.height = terminal->font.spacing;
472 472
473 -// trace("%s: c=%c attr=%04x addr=%d pos=%d,%d x=%d y=%d w=%d h=%d",__FUNCTION__,chr,(int) attr,addr,(addr / cols),(addr % cols),rect.x,rect.y,rect.width,rect.height);  
474 -  
475 cr = cairo_create(terminal->surface); 473 cr = cairo_create(terminal->surface);
476 cairo_set_scaled_font(cr,terminal->font.scaled); 474 cairo_set_scaled_font(cr,terminal->font.scaled);
477 v3270_draw_element(cr, chr, attr, terminal->host, &terminal->font, &rect,terminal->color); 475 v3270_draw_element(cr, chr, attr, terminal->host, &terminal->font, &rect,terminal->color);
src/v3270/iocallback.c
@@ -134,7 +134,6 @@ static void * static_AddTimeOut(H3270 *session, unsigned long interval, void (*c @@ -134,7 +134,6 @@ static void * static_AddTimeOut(H3270 *session, unsigned long interval, void (*c
134 t->call = call; 134 t->call = call;
135 t->session = session; 135 t->session = session;
136 136
137 - trace("Adding timeout with %ld ms",interval);  
138 g_timeout_add_full(G_PRIORITY_DEFAULT, (guint) interval, (GSourceFunc) do_timer, t, g_free); 137 g_timeout_add_full(G_PRIORITY_DEFAULT, (guint) interval, (GSourceFunc) do_timer, t, g_free);
139 138
140 return t; 139 return t;
@@ -253,10 +252,8 @@ struct bgParameter @@ -253,10 +252,8 @@ struct bgParameter
253 252
254 gpointer BgCall(struct bgParameter *p) 253 gpointer BgCall(struct bgParameter *p)
255 { 254 {
256 -// trace("%s starts",__FUNCTION__);  
257 p->rc = p->callback(p->session, p->parm); 255 p->rc = p->callback(p->session, p->parm);
258 p->running = FALSE; 256 p->running = FALSE;
259 -// trace("%s ends",__FUNCTION__);  
260 return 0; 257 return 0;
261 } 258 }
262 259
@@ -313,5 +310,4 @@ void v3270_register_io_handlers(v3270Class *cls) @@ -313,5 +310,4 @@ void v3270_register_io_handlers(v3270Class *cls)
313 g_error("%s",_( "Can't set lib3270 I/O handlers" ) ); 310 g_error("%s",_( "Can't set lib3270 I/O handlers" ) );
314 } 311 }
315 312
316 - trace("%s: I/O handlers OK",__FUNCTION__);  
317 } 313 }
src/v3270/keyboard.c
@@ -143,8 +143,6 @@ @@ -143,8 +143,6 @@
143 { 143 {
144 int pfcode = (event->keyval - GDK_F1) + ((state & GDK_SHIFT_MASK) ? 13 : 1); 144 int pfcode = (event->keyval - GDK_F1) + ((state & GDK_SHIFT_MASK) ? 13 : 1);
145 145
146 - trace("PF%02d",pfcode);  
147 -  
148 if(pfcode > 0 && pfcode < 25) 146 if(pfcode > 0 && pfcode < 25)
149 { 147 {
150 lib3270_pfkey(widget->host,pfcode); 148 lib3270_pfkey(widget->host,pfcode);
@@ -156,7 +154,6 @@ @@ -156,7 +154,6 @@
156 { 154 {
157 if(keycode[f].keyval == event->keyval && state == keycode[f].state) 155 if(keycode[f].keyval == event->keyval && state == keycode[f].state)
158 { 156 {
159 - trace("%s: id=%d action=%p",__FUNCTION__,f,keycode[f].action);  
160 if(keycode[f].action) 157 if(keycode[f].action)
161 gtk_action_activate(keycode[f].action); 158 gtk_action_activate(keycode[f].action);
162 else if(keycode[f].exec) 159 else if(keycode[f].exec)
src/v3270/mouse.c
@@ -81,7 +81,6 @@ static void single_click(v3270 *widget, int baddr) @@ -81,7 +81,6 @@ static void single_click(v3270 *widget, int baddr)
81 81
82 default: 82 default:
83 // Move selected area 83 // Move selected area
84 - trace("%s: default action",__FUNCTION__);  
85 widget->selection.baddr = baddr; 84 widget->selection.baddr = baddr;
86 widget->moving = 1; 85 widget->moving = 1;
87 } 86 }
@@ -110,10 +109,6 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr) @@ -110,10 +109,6 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr)
110 lib3270_ring_bell(GTK_V3270(widget)->host); 109 lib3270_ring_bell(GTK_V3270(widget)->host);
111 break; 110 break;
112 111
113 -#ifdef DEBUG  
114 - default:  
115 - trace("Unexpected button 1 type %d",type);  
116 -#endif  
117 } 112 }
118 113
119 #pragma GCC diagnostic pop 114 #pragma GCC diagnostic pop
@@ -175,14 +170,11 @@ gboolean v3270_button_press_event(GtkWidget *widget, GdkEventButton *event) @@ -175,14 +170,11 @@ gboolean v3270_button_press_event(GtkWidget *widget, GdkEventButton *event)
175 v3270_emit_popup(GTK_V3270(widget),baddr,event); 170 v3270_emit_popup(GTK_V3270(widget),baddr,event);
176 break; 171 break;
177 172
178 - default:  
179 - trace("%s button=%d type=%d",__FUNCTION__,event->button,event->type);  
180 } 173 }
181 } 174 }
182 else if(event->button == 1 && event->type == GDK_BUTTON_PRESS) 175 else if(event->button == 1 && event->type == GDK_BUTTON_PRESS)
183 { 176 {
184 GTK_V3270(widget)->selected_field = get_field_from_event(GTK_V3270(widget),event); 177 GTK_V3270(widget)->selected_field = get_field_from_event(GTK_V3270(widget),event);
185 - trace("%s field=%d",__FUNCTION__,GTK_V3270(widget)->selected_field);  
186 } 178 }
187 179
188 return FALSE; 180 return FALSE;
@@ -201,16 +193,12 @@ gboolean v3270_button_release_event(GtkWidget *widget, GdkEventButton*event) @@ -201,16 +193,12 @@ gboolean v3270_button_release_event(GtkWidget *widget, GdkEventButton*event)
201 { 193 {
202 gboolean handled = FALSE; 194 gboolean handled = FALSE;
203 195
204 - trace("%s field %d was clicked event=%p",__FUNCTION__,GTK_V3270(widget)->selected_field,event);  
205 -  
206 g_signal_emit(widget, v3270_widget_signal[SIGNAL_FIELD], 0, 196 g_signal_emit(widget, v3270_widget_signal[SIGNAL_FIELD], 0,
207 lib3270_connected(GTK_V3270(widget)->host) ? TRUE : FALSE, 197 lib3270_connected(GTK_V3270(widget)->host) ? TRUE : FALSE,
208 GTK_V3270(widget)->selected_field, 198 GTK_V3270(widget)->selected_field,
209 event, 199 event,
210 &handled); 200 &handled);
211 201
212 - trace("Handled: %s",handled ? "Yes": "No");  
213 -  
214 if(!handled) 202 if(!handled)
215 gdk_beep(); 203 gdk_beep();
216 204
@@ -220,8 +208,6 @@ gboolean v3270_button_release_event(GtkWidget *widget, GdkEventButton*event) @@ -220,8 +208,6 @@ gboolean v3270_button_release_event(GtkWidget *widget, GdkEventButton*event)
220 208
221 break; 209 break;
222 210
223 - default:  
224 - trace("%s button=%d type=%d",__FUNCTION__,event->button,event->type);  
225 } 211 }
226 212
227 return FALSE; 213 return FALSE;
@@ -335,8 +321,6 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event) @@ -335,8 +321,6 @@ gboolean v3270_scroll_event(GtkWidget *widget, GdkEventScroll *event)
335 321
336 lib3270_trace_event(hSession,"\n"); 322 lib3270_trace_event(hSession,"\n");
337 323
338 - trace("Scroll: %d Action: %p",event->direction,action_scroll[event->direction]);  
339 -  
340 if(action_scroll[event->direction]) 324 if(action_scroll[event->direction])
341 gtk_action_activate(action_scroll[event->direction]); 325 gtk_action_activate(action_scroll[event->direction]);
342 326
src/v3270/oia.c
@@ -461,8 +461,6 @@ static void draw_status_message(cairo_t *cr, LIB3270_MESSAGE id, v3270FontInfo * @@ -461,8 +461,6 @@ static void draw_status_message(cairo_t *cr, LIB3270_MESSAGE id, v3270FontInfo *
461 461
462 memcpy(&rect,r,sizeof(GdkRectangle)); 462 memcpy(&rect,r,sizeof(GdkRectangle));
463 463
464 -// trace("%s: id=%d",__FUNCTION__,id);  
465 -  
466 if(id >= 0 && id < G_N_ELEMENTS(message)) 464 if(id >= 0 && id < G_N_ELEMENTS(message))
467 { 465 {
468 msg = message[id].msg; 466 msg = message[id].msg;
@@ -821,8 +819,6 @@ struct timer_info @@ -821,8 +819,6 @@ struct timer_info
821 819
822 static void release_timer(struct timer_info *info) 820 static void release_timer(struct timer_info *info)
823 { 821 {
824 - trace("%s: info=%p",__FUNCTION__,info);  
825 -  
826 info->terminal->timer = NULL; 822 info->terminal->timer = NULL;
827 823
828 if(info->terminal->surface) 824 if(info->terminal->surface)
@@ -867,8 +863,6 @@ void v3270_draw_shift_status(v3270 *terminal) @@ -867,8 +863,6 @@ void v3270_draw_shift_status(v3270 *terminal)
867 cr = set_update_region(terminal,&r,V3270_OIA_SHIFT); 863 cr = set_update_region(terminal,&r,V3270_OIA_SHIFT);
868 cairo_translate(cr, r->x, r->y+1); 864 cairo_translate(cr, r->x, r->y+1);
869 865
870 - trace("%s: %s",__FUNCTION__,(terminal->keyflags & KEY_FLAG_SHIFT) ? "Yes" : "No");  
871 -  
872 if(r->width > 2 && r->height > 7 && (terminal->keyflags & KEY_FLAG_SHIFT)) 866 if(r->width > 2 && r->height > 7 && (terminal->keyflags & KEY_FLAG_SHIFT))
873 { 867 {
874 int b,x,y,w,h,l; 868 int b,x,y,w,h,l;
@@ -1037,7 +1031,6 @@ void v3270_start_timer(GtkWidget *widget) @@ -1037,7 +1031,6 @@ void v3270_start_timer(GtkWidget *widget)
1037 1031
1038 if(terminal->timer) 1032 if(terminal->timer)
1039 { 1033 {
1040 - trace("Timer %p starts again",terminal->timer);  
1041 g_source_ref(terminal->timer); 1034 g_source_ref(terminal->timer);
1042 return; 1035 return;
1043 } 1036 }
@@ -1054,16 +1047,12 @@ void v3270_start_timer(GtkWidget *widget) @@ -1054,16 +1047,12 @@ void v3270_start_timer(GtkWidget *widget)
1054 g_source_attach(terminal->timer,NULL); 1047 g_source_attach(terminal->timer,NULL);
1055 g_source_unref(terminal->timer); 1048 g_source_unref(terminal->timer);
1056 1049
1057 - trace("Timer %p starts",terminal->timer);  
1058 -  
1059 } 1050 }
1060 1051
1061 void v3270_stop_timer(GtkWidget *widget) 1052 void v3270_stop_timer(GtkWidget *widget)
1062 { 1053 {
1063 v3270 *terminal = GTK_V3270(widget); 1054 v3270 *terminal = GTK_V3270(widget);
1064 1055
1065 - trace("Timer %p stops",terminal->timer);  
1066 -  
1067 if(terminal->timer) 1056 if(terminal->timer)
1068 { 1057 {
1069 if(terminal->timer->ref_count < 2) 1058 if(terminal->timer->ref_count < 2)
src/v3270/selection.c
@@ -52,15 +52,12 @@ @@ -52,15 +52,12 @@
52 52
53 static void clipboard_clear(GtkClipboard *clipboard, GObject *obj) 53 static void clipboard_clear(GtkClipboard *clipboard, GObject *obj)
54 { 54 {
55 - trace("%s widget=%p",__FUNCTION__,obj);  
56 } 55 }
57 56
58 static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, guint target, GObject *obj) 57 static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, guint target, GObject *obj)
59 { 58 {
60 v3270 * widget = GTK_V3270(obj); 59 v3270 * widget = GTK_V3270(obj);
61 60
62 - trace("%s: widget=%p target=\"%s\"",__FUNCTION__,obj,targets[target].target);  
63 -  
64 switch(target) 61 switch(target)
65 { 62 {
66 case CLIPBOARD_TYPE_TEXT: /* Get clipboard contents as text */ 63 case CLIPBOARD_TYPE_TEXT: /* Get clipboard contents as text */
@@ -505,8 +502,6 @@ void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encod @@ -505,8 +502,6 @@ void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encod
505 502
506 next = lib3270_paste(session,(unsigned char *) buffer) ? TRUE : FALSE; 503 next = lib3270_paste(session,(unsigned char *) buffer) ? TRUE : FALSE;
507 504
508 - trace("Pastenext is %s",next ? "On" : "Off");  
509 -  
510 g_free(buffer); 505 g_free(buffer);
511 506
512 g_signal_emit(widget,v3270_widget_signal[SIGNAL_PASTENEXT], 0, next); 507 g_signal_emit(widget,v3270_widget_signal[SIGNAL_PASTENEXT], 0, next);
src/v3270/widget.c
@@ -187,8 +187,6 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t @@ -187,8 +187,6 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t
187 if(!GTK_IS_WINDOW(toplevel)) 187 if(!GTK_IS_WINDOW(toplevel))
188 toplevel = NULL; 188 toplevel = NULL;
189 189
190 - trace("%s: widget=%p toplevel=%p",__FUNCTION__,widget,toplevel);  
191 -  
192 if(type == LIB3270_NOTIFY_CRITICAL) 190 if(type == LIB3270_NOTIFY_CRITICAL)
193 { 191 {
194 msgtype = GTK_MESSAGE_ERROR; 192 msgtype = GTK_MESSAGE_ERROR;
@@ -218,7 +216,6 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t @@ -218,7 +216,6 @@ void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type , const gchar *t
218 gtk_dialog_run(GTK_DIALOG (dialog)); 216 gtk_dialog_run(GTK_DIALOG (dialog));
219 gtk_widget_destroy(dialog); 217 gtk_widget_destroy(dialog);
220 218
221 - trace("%s ends",__FUNCTION__);  
222 } 219 }
223 220
224 gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboard_tooltip, GtkTooltip *tooltip) 221 gboolean v3270_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboard_tooltip, GtkTooltip *tooltip)
@@ -657,8 +654,6 @@ static void update_toggle(H3270 *session, LIB3270_TOGGLE ix, unsigned char value @@ -657,8 +654,6 @@ static void update_toggle(H3270 *session, LIB3270_TOGGLE ix, unsigned char value
657 { 654 {
658 GtkWidget *widget = GTK_WIDGET(lib3270_get_user_data(session)); 655 GtkWidget *widget = GTK_WIDGET(lib3270_get_user_data(session));
659 656
660 - trace("Toggle %s is %s",name,value ? "ON" : "OFF");  
661 -  
662 switch(ix) 657 switch(ix)
663 { 658 {
664 case LIB3270_TOGGLE_CURSOR_POS: 659 case LIB3270_TOGGLE_CURSOR_POS:
@@ -771,8 +766,6 @@ static void update_connect(H3270 *session, unsigned char connected) @@ -771,8 +766,6 @@ static void update_connect(H3270 *session, unsigned char connected)
771 #endif // DEBUG 766 #endif // DEBUG
772 v3270 *widget = GTK_V3270(lib3270_get_user_data(session)); 767 v3270 *widget = GTK_V3270(lib3270_get_user_data(session));
773 768
774 - trace("%s - %s %s",__FUNCTION__,lib3270_get_url(session,dbg,sizeof(dbg)),connected ? "Connected" : "Disconnected");  
775 -  
776 if(connected) 769 if(connected)
777 { 770 {
778 widget->cursor.show |= 2; 771 widget->cursor.show |= 2;
@@ -797,7 +790,6 @@ static void update_connect(H3270 *session, unsigned char connected) @@ -797,7 +790,6 @@ static void update_connect(H3270 *session, unsigned char connected)
797 790
798 static void update_screen_size(H3270 *session,unsigned short rows, unsigned short cols) 791 static void update_screen_size(H3270 *session,unsigned short rows, unsigned short cols)
799 { 792 {
800 -// trace("Widget %p changes to %dx%d",session->widget,cols,rows);  
801 v3270_reload(GTK_WIDGET(lib3270_get_user_data(session))); 793 v3270_reload(GTK_WIDGET(lib3270_get_user_data(session)));
802 gtk_widget_queue_draw(GTK_WIDGET(lib3270_get_user_data(session))); 794 gtk_widget_queue_draw(GTK_WIDGET(lib3270_get_user_data(session)));
803 } 795 }
@@ -817,10 +809,6 @@ static void changed(H3270 *session, int offset, int len) @@ -817,10 +809,6 @@ static void changed(H3270 *session, int offset, int len)
817 GtkWidget * widget = lib3270_get_user_data(session); 809 GtkWidget * widget = lib3270_get_user_data(session);
818 GtkAccessible * obj = GTK_V3270(widget)->accessible; 810 GtkAccessible * obj = GTK_V3270(widget)->accessible;
819 811
820 -#ifdef WIN32  
821 - trace("%s: offset=%d len=%d accessible=%p",__FUNCTION__,offset,len,obj);  
822 -#endif  
823 -  
824 if(obj) 812 if(obj)
825 { 813 {
826 // Get new text, notify atk 814 // Get new text, notify atk
@@ -860,15 +848,7 @@ static void changed(H3270 *session, int offset, int len) @@ -860,15 +848,7 @@ static void changed(H3270 *session, int offset, int len)
860 gtk_widget_queue_draw(widget); 848 gtk_widget_queue_draw(widget);
861 #endif // WIN32 849 #endif // WIN32
862 850
863 -#ifdef WIN32  
864 - trace("%s: emit signal",__FUNCTION__);  
865 -#endif  
866 -  
867 g_signal_emit(GTK_WIDGET(widget),v3270_widget_signal[SIGNAL_CHANGED], 0, (guint) offset, (guint) len); 851 g_signal_emit(GTK_WIDGET(widget),v3270_widget_signal[SIGNAL_CHANGED], 0, (guint) offset, (guint) len);
868 -  
869 -#ifdef WIN32  
870 - trace("%s: ends",__FUNCTION__);  
871 -#endif  
872 } 852 }
873 853
874 static void set_selection(H3270 *session, unsigned char status) 854 static void set_selection(H3270 *session, unsigned char status)
@@ -913,8 +893,6 @@ static int emit_print_signal(H3270 *session) @@ -913,8 +893,6 @@ static int emit_print_signal(H3270 *session)
913 893
914 static gboolean activity_tick(v3270 *widget) 894 static gboolean activity_tick(v3270 *widget)
915 { 895 {
916 -// trace("idle=%d (%d) timeout=%d",(int) (time(0) - widget->activity.timestamp),(int) (((time(0) - widget->activity.timestamp)/60),widget->activity.disconnect));  
917 -  
918 if(widget->activity.disconnect && lib3270_is_connected(widget->host) && ((time(0) - widget->activity.timestamp)/60) >= widget->activity.disconnect) 896 if(widget->activity.disconnect && lib3270_is_connected(widget->host) && ((time(0) - widget->activity.timestamp)/60) >= widget->activity.disconnect)
919 lib3270_disconnect(widget->host); 897 lib3270_disconnect(widget->host);
920 898
@@ -1013,7 +991,6 @@ static void v3270_init(v3270 *widget) @@ -1013,7 +991,6 @@ static void v3270_init(v3270 *widget)
1013 // Enable drawing 991 // Enable drawing
1014 widget->drawing = 1; 992 widget->drawing = 1;
1015 993
1016 - trace("%s",__FUNCTION__);  
1017 } 994 }
1018 995
1019 GtkWidget * v3270_new(void) 996 GtkWidget * v3270_new(void)
@@ -1034,8 +1011,6 @@ static void v3270_destroy(GtkObject *widget) @@ -1034,8 +1011,6 @@ static void v3270_destroy(GtkObject *widget)
1034 { 1011 {
1035 v3270 * terminal = GTK_V3270(widget); 1012 v3270 * terminal = GTK_V3270(widget);
1036 1013
1037 - trace("%s %p",__FUNCTION__,widget);  
1038 -  
1039 if(terminal->accessible) 1014 if(terminal->accessible)
1040 { 1015 {
1041 gtk_accessible_set_widget(terminal->accessible, NULL); 1016 gtk_accessible_set_widget(terminal->accessible, NULL);
@@ -1255,7 +1230,6 @@ static void v3270_size_allocate(GtkWidget * widget, GtkAllocation * allocation) @@ -1255,7 +1230,6 @@ static void v3270_size_allocate(GtkWidget * widget, GtkAllocation * allocation)
1255 g_return_if_fail(GTK_IS_V3270(widget)); 1230 g_return_if_fail(GTK_IS_V3270(widget));
1256 g_return_if_fail(allocation != NULL); 1231 g_return_if_fail(allocation != NULL);
1257 1232
1258 -// trace("Widget size changes to %dx%d",allocation->width,allocation->height);  
1259 #if GTK_CHECK_VERSION(2,18,0) 1233 #if GTK_CHECK_VERSION(2,18,0)
1260 gtk_widget_set_allocation(widget, allocation); 1234 gtk_widget_set_allocation(widget, allocation);
1261 #else 1235 #else
@@ -1362,8 +1336,6 @@ void v3270_set_colors(GtkWidget *widget, const gchar *colors) @@ -1362,8 +1336,6 @@ void v3270_set_colors(GtkWidget *widget, const gchar *colors)
1362 1336
1363 } 1337 }
1364 1338
1365 - trace("Widget %p colors:\n%s\n",widget,colors);  
1366 -  
1367 v3270_set_color_table(GTK_V3270(widget)->color,colors); 1339 v3270_set_color_table(GTK_V3270(widget)->color,colors);
1368 g_signal_emit(widget,v3270_widget_signal[SIGNAL_UPDATE_CONFIG], 0, "colors", colors); 1340 g_signal_emit(widget,v3270_widget_signal[SIGNAL_UPDATE_CONFIG], 0, "colors", colors);
1369 v3270_reload(widget); 1341 v3270_reload(widget);
@@ -1417,8 +1389,6 @@ void v3270_set_color_table(GdkRGBA *table, const gchar *colors) @@ -1417,8 +1389,6 @@ void v3270_set_color_table(GdkRGBA *table, const gchar *colors)
1417 guint cnt; 1389 guint cnt;
1418 int f; 1390 int f;
1419 1391
1420 - trace("colors=[%s]",colors);  
1421 -  
1422 if(strchr(colors,':')) 1392 if(strchr(colors,':'))
1423 clr = g_strsplit(colors,":",V3270_COLOR_COUNT+1); 1393 clr = g_strsplit(colors,":",V3270_COLOR_COUNT+1);
1424 else if(strchr(colors,';')) 1394 else if(strchr(colors,';'))
@@ -1494,8 +1464,6 @@ void v3270_set_font_family(GtkWidget *widget, const gchar *name) @@ -1494,8 +1464,6 @@ void v3270_set_font_family(GtkWidget *widget, const gchar *name)
1494 terminal->font.family = g_strdup(name); 1464 terminal->font.family = g_strdup(name);
1495 terminal->font.weight = lib3270_get_toggle(terminal->host,LIB3270_TOGGLE_BOLD) ? CAIRO_FONT_WEIGHT_BOLD : CAIRO_FONT_WEIGHT_NORMAL; 1465 terminal->font.weight = lib3270_get_toggle(terminal->host,LIB3270_TOGGLE_BOLD) ? CAIRO_FONT_WEIGHT_BOLD : CAIRO_FONT_WEIGHT_NORMAL;
1496 1466
1497 - trace("%s: %s (%p)",__FUNCTION__,terminal->font.family,terminal->font.family);  
1498 -  
1499 g_signal_emit(widget,v3270_widget_signal[SIGNAL_UPDATE_CONFIG], 0, "font-family", name); 1467 g_signal_emit(widget,v3270_widget_signal[SIGNAL_UPDATE_CONFIG], 0, "font-family", name);
1500 1468
1501 v3270_reload(widget); 1469 v3270_reload(widget);
@@ -1568,7 +1536,6 @@ static void v3270_activate(GtkWidget *widget) @@ -1568,7 +1536,6 @@ static void v3270_activate(GtkWidget *widget)
1568 { 1536 {
1569 v3270 * terminal = GTK_V3270(widget); 1537 v3270 * terminal = GTK_V3270(widget);
1570 1538
1571 - trace("%s: %p",__FUNCTION__,terminal);  
1572 terminal->activity.timestamp = time(0); 1539 terminal->activity.timestamp = time(0);
1573 1540
1574 if(lib3270_connected(terminal->host)) 1541 if(lib3270_connected(terminal->host))
@@ -1588,8 +1555,6 @@ static AtkObject * v3270_get_accessible(GtkWidget * widget) @@ -1588,8 +1555,6 @@ static AtkObject * v3270_get_accessible(GtkWidget * widget)
1588 { 1555 {
1589 v3270 * terminal = GTK_V3270(widget); 1556 v3270 * terminal = GTK_V3270(widget);
1590 1557
1591 -// trace("%s acc=%p",__FUNCTION__,terminal->accessible);  
1592 -  
1593 if(!terminal->accessible) 1558 if(!terminal->accessible)
1594 { 1559 {
1595 terminal->accessible = g_object_new(GTK_TYPE_V3270_ACCESSIBLE,NULL); 1560 terminal->accessible = g_object_new(GTK_TYPE_V3270_ACCESSIBLE,NULL);
@@ -1660,7 +1625,6 @@ void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on) @@ -1660,7 +1625,6 @@ void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on)
1660 1625
1661 GTK_V3270(widget)->scaled_fonts = on ? 1 : 0; 1626 GTK_V3270(widget)->scaled_fonts = on ? 1 : 0;
1662 1627
1663 - trace("Sfonts is %s",GTK_V3270(widget)->scaled_fonts ? "YES" : "NO");  
1664 } 1628 }
1665 1629
1666 void v3270_set_session_name(GtkWidget *widget, const gchar *name) 1630 void v3270_set_session_name(GtkWidget *widget, const gchar *name)