From ae94dea8c2d118df33f15b6d158d62c463d47bae Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 18 Apr 2012 11:45:23 +0000 Subject: [PATCH] Work in progress --- src/gtk/v3270/accessible.c | 10 +++------- src/lib3270/selection.c | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gtk/v3270/accessible.c b/src/gtk/v3270/accessible.c index a2d7bab..2dd99e0 100644 --- a/src/gtk/v3270/accessible.c +++ b/src/gtk/v3270/accessible.c @@ -579,11 +579,9 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint AtkAttributeSet * attributes = NULL; int start, end; - if(!(widget && GTK_IS_V3270(widget))) - { - trace("%s called with invalid widget %p ***************************",__FUNCTION__,widget); - return NULL; - } + trace("%s is incomplete ***********************",__FUNCTION__); + + g_return_val_if_fail((widget && GTK_IS_V3270(widget)),NULL); host = v3270_get_session(widget); @@ -596,8 +594,6 @@ static AtkAttributeSet * v3270_accessible_get_run_attributes(AtkText *text, gint *end_offset = end; } - trace("%s is incomplete ***********************",__FUNCTION__); - // http://developer.gnome.org/atk/stable/AtkText.html#AtkTextAttribute // The direction of the text, if set. Values are "none", "ltr" or "rtl" diff --git a/src/lib3270/selection.c b/src/lib3270/selection.c index ecc3979..c57af9d 100644 --- a/src/lib3270/selection.c +++ b/src/lib3270/selection.c @@ -600,7 +600,7 @@ LIB3270_EXPORT int lib3270_drag_selection(H3270 *h, unsigned char flag, int orig else if((flag&0x8F) == SELECTION_ACTIVE) return lib3270_move_selected_area(h,origin,baddr); - trace("%s",__FUNCTION__); +// trace("%s",__FUNCTION__); row = baddr/h->cols; col = baddr%h->cols; -- libgit2 0.21.2