Ejemplo n.º 1
0
static void
_print(void *data, Evas_Object *obj, void *event_info)
{
   _printf("\tcheck %s - %smarked\n", elm_object_part_text_get(obj, "default"),
           *((Eina_Bool*)data) ? "" : "un");

   action_test_passed = 1;
}
Ejemplo n.º 2
0
/**
 * @brief Gets name of EailItem
 *
 * Implementation of AtkObject->get_name callback
 *
 * ATK doc says:\n
 * Gets the accessible name of the accessible.
 *
 * @returns a character string representing the accessible description of
 * the accessible.
 */
static const gchar *
eail_popup_get_name(AtkObject *obj)
{
    Evas_Object *popup_widget = NULL;

    popup_widget = eail_widget_get_widget(EAIL_WIDGET(obj));
    if (!popup_widget)
    {
        ERR("No widget found for notification object!");
        return NULL;
    }

    return elm_object_part_text_get(popup_widget, "title,text");
}
static void __common_utils_entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
{
	INFO_LOG(UG_NAME_NORMAL, "__common_utils_entry_unfocused_cb entered");

	if (elm_entry_is_empty(obj)) {
		const char *guide_txt = elm_object_part_text_get(data, "elm.guidetext");
		INFO_LOG(UG_NAME_NORMAL, "entry is empty");
		if (guide_txt && strlen(guide_txt)) { /* If guide text exists then show it */
			elm_object_signal_emit(data, "elm,state,guidetext,show", "elm");
		} else {	/* If default entry text exists then show it */
			char *default_entry_txt = NULL;
			default_entry_txt = evas_object_data_get(data, COMMON_UTILS_DEFAULT_ENTRY_TEXT_KEY);
			if (default_entry_txt && strlen(default_entry_txt)) {
				elm_entry_entry_set(obj, default_entry_txt);
			}
		}
	}
	elm_object_signal_emit(data, "elm,state,eraser,hide", "elm");
}
Ejemplo n.º 4
0
/**
 * @brief Helper function for getting multibuttonentry text
 *
 * @param text an AtkText (EailMultibutton object)
 *
 * @return string representation of multibutton entry text
 */
static const gchar*
_eail_multibuttonentry_get_entry_string(AtkText *text)
{
   const gchar *string = NULL;
   Evas_Object *widget = eail_widget_get_widget(EAIL_WIDGET(text));
   Evas_Object *entry = elm_multibuttonentry_entry_get(widget);

   if (entry)
     string = elm_entry_entry_get(entry);

   /* if entry string is empty then trying to return "guide" part*/
   if (!string || 0 == g_strcmp0(string, ""))
     {
        /* If there are some children of widget, then it means that guide
         * is not visible. So returning guide as text only if no children
         * exist */
        if (!elm_multibuttonentry_items_get(widget))
          string = elm_object_part_text_get(widget, "guide");
     }

   return string;
}
Ejemplo n.º 5
0
const std::string Object::getText (const std::string &part)
{
  return elm_object_part_text_get(o, part.c_str());
}
Ejemplo n.º 6
0
const std::string Object::getText ()
{
  return elm_object_part_text_get(o, NULL);
}