o = ip->func(ip->data, data, item);
if (o) return o;
}
+ if (!strncmp(item, "file://", 7))
+ {
+ const char *fname = item + 7;
+
+ o = evas_object_image_filled_add(evas_object_evas_get(data));
+ evas_object_image_file_set(o, fname, NULL);
+ if (evas_object_image_load_error_get(o) == EVAS_LOAD_ERROR_NONE)
+ {
+ evas_object_show(o);
+ }
+ else
+ {
+ evas_object_del(o);
+ o = edje_object_add(evas_object_evas_get(data));
+ _elm_theme_object_set(data, o, "entry/emoticon", "wtf", elm_widget_style_get(data));
+ }
+ return o;
+ }
o = edje_object_add(evas_object_evas_get(data));
if (!strncmp(item, "emoticon/", 9))
ok = _elm_theme_object_set(data, o, "entry", item, elm_widget_style_get(data));
firstindex = abs(oldstring - curlocater);
firstindex += strlen(key)+1; // strlen("key") + strlen("=")
- *value = (char*)oldstring + firstindex;
+ *value = (char*)(oldstring + firstindex);
while (oldstring != starttag)
{
replocater++;
}
- while (*replocater != NULL && *replocater != ' ' && *replocater != '>')
+ while (replocater != NULL && *replocater != ' ' && *replocater != '>')
replocater++;
if (replocater-curlocater > strlen(key)+1)
Widget_Data *wd = elm_widget_data_get(obj);
int cur_fontsize = 0;
Eina_Strbuf *fontbuf = NULL, *txtbuf = NULL;
- char **kvalue = NULL;
+ char *kvalue = NULL;
const char *minfont, *deffont, *maxfont;
const char *ellipsis_string = "...";
int minfontsize, maxfontsize, minshowcount;
if (_get_value_in_key_string(edje_object_part_text_get(wd->ent, "elm.text"), "font_size", &kvalue) == 0)
{
- if (*kvalue != NULL) cur_fontsize = atoi((char*)kvalue);
+ if (kvalue != NULL) cur_fontsize = atoi(kvalue);
}
txtbuf = eina_strbuf_new();
Widget_Data *wd = elm_widget_data_get(obj);
int cur_fontsize = 0, len, jumpcount;
Eina_Strbuf *fontbuf = NULL, *txtbuf = NULL;
- char **kvalue = NULL;
+ char *kvalue = NULL;
const char *minfont, *deffont, *maxfont;
const char *ellipsis_string = "...";
int minfontsize, maxfontsize, minshowcount;
if (_get_value_in_key_string(edje_object_part_text_get(wd->ent, "elm.text"), "font_size", &kvalue) == 0)
{
- if (*kvalue != NULL) cur_fontsize = atoi((char*)kvalue);
+ if (kvalue != NULL) cur_fontsize = atoi(kvalue);
}
txtbuf = eina_strbuf_new();
else
{
len = _entry_length_get(obj);
- cur_str = edje_object_part_text_get(wd->ent, "elm.text");
+ cur_str = (char*)edje_object_part_text_get(wd->ent, "elm.text");
cur_len = strlen(cur_str);
tagend = 0;
for (i = 0; i < len; i++)
{
- if(cur_str[i] == '>' && cur_str[i+1] != NULL &&
+ if(cur_str[i] == '>' && cur_str[i+1] != '\0' &&
cur_str[i+1] != '<')
{
tagend = i;
jumpcount = 0;
while (jumpcount < len-strlen(ellipsis_string))
{
- cur_str = edje_object_part_text_get(wd->ent, "elm.text");
+ cur_str = (char*)edje_object_part_text_get(wd->ent, "elm.text");
if (txtbuf != NULL)
{
char buf[10]="\0";
size_t byte_len;
size_t insert_text_len=0;
- char *text = edje_object_part_text_get(wd->ent, "elm.text");
+ char *text = (char*)edje_object_part_text_get(wd->ent, "elm.text");
char *insert_text;
size_t remain_bytes;
if (text != NULL)