How to get specific value of attribute from preferences for tweak event

I am having a problem in blender development. Please help me!!! Also let me know if this is better place for such types of questions. Please! I am new here!!!

See the screen shot:

As shown in image i want to get the value of tweak for both events. Please both are same events (outliner.select_box), but only different short cuts…

I used codding in c like this :

static int outliner_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
{
const bool tweak = RNA_boolean_get(op->ptr, “tweak”);

  if (tweak) {
  	printf("OK");
  } else {
  	printf("NO");
  }

}
}

In in both cases if gives me the first events result…

This place is fine for questions.

I would expect this to work. Hard to say what it is, maybe something in the way the tweak property is defined? It would help to see the complete patch.

Thanks for comments: Sir actually the problem is little bit random

In outliner_select.c file, In last:

static int outliner_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
{
if (tweak) {
printf(“OK”);
} else {
printf(“NO”);
}

return WM_gesture_box_invoke(C, op, event); // if i comment and just return empty then it works correctly but if i want to execute select method it not…
}

void OUTLINER_OT_select_box(wmOperatorType *ot)
{
ot->name = “Box Select”;

ot->invoke = outliner_box_invoke;

RNA_def_boolean(ot->srna, “tweak”, 0, “Tweak”, “Only activate when mouse is not over an item’s icon or name - useful for tweak gesture”);


}

I hope you can exact problem. If you are interested i can give more details. Thanks.