Fix possible problems with other subsystems depending on X11 display
[framework/uifw/elementary.git] / src / lib / elm_bubble.c
index eef5c1e..0f35578 100644 (file)
@@ -30,7 +30,7 @@ static const Evas_Smart_Cb_Description _signals[] =
      {NULL, NULL}
 };
 
-static const char *corner_string[] = 
+static const char *corner_string[] =
 {
     "top_left",
     "top_right",
@@ -66,10 +66,10 @@ _theme_hook(Evas_Object *obj)
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->bbl, "bubble", corner_string[wd->pos],
                          elm_widget_style_get(obj));
-   edje_object_part_text_set(wd->bbl, "elm.text", wd->label);
+   edje_object_part_text_escaped_set(wd->bbl, "elm.text", wd->label);
    if (wd->label) edje_object_signal_emit(wd->bbl, "elm,state,text,visible", "elm");
    else edje_object_signal_emit(wd->bbl, "elm,state,text,hidden", "elm");
-   edje_object_part_text_set(wd->bbl, "elm.info", wd->info);
+   edje_object_part_text_escaped_set(wd->bbl, "elm.info", wd->info);
    if (wd->info) edje_object_signal_emit(wd->bbl, "elm,state,info,visible", "elm");
    else edje_object_signal_emit(wd->bbl, "elm,state,info,hidden", "elm");
    if (wd->content)
@@ -168,7 +168,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content)
 
    if (!part || !strcmp(part, "default"))
      _content_set(obj, content);
-   else if(!strcmp(part, "icon"))
+   else if (!strcmp(part, "icon"))
      _icon_set(obj, content);
 }
 
@@ -180,7 +180,7 @@ _content_get_hook(const Evas_Object *obj, const char *part)
    if (!wd) return NULL;
    if (!part || !strcmp(part, "default"))
      return wd->content;
-   else if(!strcmp(part, "icon"))
+   else if (!strcmp(part, "icon"))
      return wd->icon;
    return NULL;
 }
@@ -193,7 +193,7 @@ _content_unset_hook(Evas_Object *obj, const char *part)
    if (!wd) return NULL;
    if (!part || !strcmp(part, "default"))
      return _content_unset(obj);
-   else if(!strcmp(part, "icon"))
+   else if (!strcmp(part, "icon"))
      return _icon_unset(obj);
    return NULL;
 }
@@ -270,18 +270,18 @@ _elm_bubble_label_set(Evas_Object *obj, const char *item, const char *label)
    if (!item || !strcmp(item, "default"))
      {
         eina_stringshare_replace(&wd->label, label);
-        edje_object_part_text_set(wd->bbl, "elm.text", label);
+        edje_object_part_text_escaped_set(wd->bbl, "elm.text", label);
         if (label) edje_object_signal_emit(wd->bbl, "elm,state,text,visible",
-              "elm");
+                                           "elm");
         else edje_object_signal_emit(wd->bbl, "elm,state,text,hidden", "elm");
         _sizing_eval(obj);
      }
    else if (!strcmp(item, "info"))
      {
         eina_stringshare_replace(&wd->info, label);
-        edje_object_part_text_set(wd->bbl, "elm.info", label);
+        edje_object_part_text_escaped_set(wd->bbl, "elm.info", label);
         if (label) edje_object_signal_emit(wd->bbl, "elm,state,info,visible",
-              "elm");
+                                           "elm");
         else edje_object_signal_emit(wd->bbl, "elm,state,info,hidden", "elm");
         _sizing_eval(obj);
      }
@@ -347,34 +347,17 @@ elm_bubble_add(Evas_Object *parent)
    return obj;
 }
 
-EINA_DEPRECATED EAPI void
-elm_bubble_corner_set(Evas_Object *obj, const char *corner)
-{
-   int i = 0;
-   for (i=ELM_BUBBLE_POS_TOP_LEFT; i<=ELM_BUBBLE_POS_BOTTOM_RIGHT; i++)
-      {
-         if (!strcmp(corner,corner_string[i]))
-           elm_bubble_pos_set(obj, i);
-      }
-}
-
 EAPI void
 elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-   if(pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return;
+   if (pos<ELM_BUBBLE_POS_TOP_LEFT || pos>ELM_BUBBLE_POS_BOTTOM_RIGHT) return;
    wd->pos = pos;
    _theme_hook(obj);
 }
 
-EINA_DEPRECATED EAPI const char*
-elm_bubble_corner_get(const Evas_Object *obj)
-{
-   return corner_string[elm_bubble_pos_get(obj)];
-}
-
 EAPI Elm_Bubble_Pos
 elm_bubble_pos_get(const Evas_Object *obj)
 {