};
static const char *widtype = NULL;
+// start for cbhm
+static Evas_Object *cnpwidgetdata = NULL;
+// end for cbhm
static Eina_Bool _drag_drop_cb(void *data, Evas_Object *obj, Elm_Drop_Data *);
static void _del_hook(Evas_Object *obj);
edje_object_signal_emit(wd->ent, "elm,action,focus", "elm");
if (top) elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
- // start for cbhm
- if (top)
- {
-// ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
- }
- // end for cbhm
evas_object_smart_callback_call(obj, SIG_FOCUSED, NULL);
_check_enable_returnkey(obj);
}
// start for cbhm
ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
+ cnpwidgetdata = data;
elm_cbhm_helper_init(obj);
elm_cbhm_send_raw_data("show");
// end for cbhm
}
+// start for cbhm
+static void
+_cnpinit(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+{
+ Widget_Data *wd = elm_widget_data_get(data);
+ if (!wd) return;
+ cnpwidgetdata = data;
+}
+// end for cbhm
+
+
static void
_item_clicked(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
ecore_x_dnd_send_finished();
}
+
return ECORE_CALLBACK_PASS_ON;
}
}
elm_selection_get(ELM_SEL_SECONDARY,ELM_SEL_FORMAT_MARKUP,data);
+
// end for cbhm
return ECORE_CALLBACK_PASS_ON;
}
ext_mod->editable = wd->editable;
ext_mod->have_selection = wd->have_selection;
ext_mod->password = wd->password;
- ext_mod->selmode = wd->selmode;
+ ext_mod->cnpinit = _cnpinit;
ext_mod->context_menu = wd->context_menu;
}
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
edje_object_part_text_insert(wd->ent, "elm.text", entry);
+ // start for cbhm
+ if (cnpwidgetdata == obj)
+ ecore_x_selection_secondary_set(elm_win_xwindow_get(obj), "",1);
+ // end for cbhm
wd->changed = EINA_TRUE;
_sizing_eval(obj);
}