Commit ae94dea8c2d118df33f15b6d158d62c463d47bae

Authored by perry.werneck@gmail.com
1 parent 77e82940

Work in progress

src/gtk/v3270/accessible.c
@@ -579,11 +579,9 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint @@ -579,11 +579,9 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint
579 AtkAttributeSet * attributes = NULL; 579 AtkAttributeSet * attributes = NULL;
580 int start, end; 580 int start, end;
581 581
582 - if(!(widget && GTK_IS_V3270(widget)))  
583 - {  
584 - trace("%s called with invalid widget %p ***************************",__FUNCTION__,widget);  
585 - return NULL;  
586 - } 582 + trace("%s is incomplete ***********************",__FUNCTION__);
  583 +
  584 + g_return_val_if_fail((widget && GTK_IS_V3270(widget)),NULL);
587 585
588 host = v3270_get_session(widget); 586 host = v3270_get_session(widget);
589 587
@@ -596,8 +594,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint @@ -596,8 +594,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint
596 *end_offset = end; 594 *end_offset = end;
597 } 595 }
598 596
599 - trace("%s is incomplete ***********************",__FUNCTION__);  
600 -  
601 // http://developer.gnome.org/atk/stable/AtkText.html#AtkTextAttribute 597 // http://developer.gnome.org/atk/stable/AtkText.html#AtkTextAttribute
602 598
603 // The direction of the text, if set. Values are "none", "ltr" or "rtl" 599 // The direction of the text, if set. Values are "none", "ltr" or "rtl"
src/lib3270/selection.c
@@ -600,7 +600,7 @@ LIB3270_EXPORT int lib3270_drag_selection(H3270 *h, unsigned char flag, int orig @@ -600,7 +600,7 @@ LIB3270_EXPORT int lib3270_drag_selection(H3270 *h, unsigned char flag, int orig
600 else if((flag&0x8F) == SELECTION_ACTIVE) 600 else if((flag&0x8F) == SELECTION_ACTIVE)
601 return lib3270_move_selected_area(h,origin,baddr); 601 return lib3270_move_selected_area(h,origin,baddr);
602 602
603 - trace("%s",__FUNCTION__); 603 +// trace("%s",__FUNCTION__);
604 604
605 row = baddr/h->cols; 605 row = baddr/h->cols;
606 col = baddr%h->cols; 606 col = baddr%h->cols;