summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-03-17 19:59:27 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-05 12:56:26 +0200
commit9f5a89ae3fe73fabfb04d95e119ccd68f33d9de9 (patch)
tree90f8fb0c74eb74388b3e3ef7d87b806b44fab877
parent72b62461d5002c3473e31fd689ce1a27b627c6dd (diff)
settingswidget: use char instead of eina stringshare.
Its more usable if you just can pass "...,..." instead of eina_stringshare_add("...,...").
-rw-r--r--src/lib/elc_settingspane.c10
-rw-r--r--src/lib/elm_settingspane_item.eo2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elc_settingspane.c b/src/lib/elc_settingspane.c
index dcda16123..50aa7c97d 100644
--- a/src/lib/elc_settingspane.c
+++ b/src/lib/elc_settingspane.c
@@ -1628,15 +1628,15 @@ _elm_settingspane_item_recreate(Elm_Settingspane_Item *obj, Elm_Settingspane_Ite
1628} 1628}
1629 1629
1630EOLIAN static void 1630EOLIAN static void
1631_elm_settingspane_item_keywords_set(Elm_Settingspane_Item *obj EINA_UNUSED, Elm_Settingspane_Item_Data *pd, Eina_Stringshare *str) 1631_elm_settingspane_item_keywords_set(Elm_Settingspane_Item *obj EINA_UNUSED, Elm_Settingspane_Item_Data *pd, char *v)
1632{ 1632{
1633 char **splits; 1633 char **splits;
1634 char *split; 1634 char *split;
1635 const char *word; 1635 const char *word, *str;
1636 int i = 0; 1636 int i = 0;
1637 1637
1638 /* save the original string */ 1638 /* save the original string */
1639 eina_stringshare_ref(str); 1639 str = eina_stringshare_add(v);
1640 if (pd->key_word) 1640 if (pd->key_word)
1641 eina_stringshare_del(pd->key_word); 1641 eina_stringshare_del(pd->key_word);
1642 1642
@@ -1661,10 +1661,10 @@ _elm_settingspane_item_keywords_set(Elm_Settingspane_Item *obj EINA_UNUSED, Elm_
1661 pd->key_words = eina_list_append(pd->key_words, str); 1661 pd->key_words = eina_list_append(pd->key_words, str);
1662} 1662}
1663 1663
1664EOLIAN static Eina_Stringshare * 1664EOLIAN static char *
1665_elm_settingspane_item_keywords_get(Elm_Settingspane_Item *obj EINA_UNUSED, Elm_Settingspane_Item_Data *pd) 1665_elm_settingspane_item_keywords_get(Elm_Settingspane_Item *obj EINA_UNUSED, Elm_Settingspane_Item_Data *pd)
1666{ 1666{
1667 return pd->key_word; 1667 return ((char*)pd->key_word);
1668} 1668}
1669 1669
1670/* widget api calls */ 1670/* widget api calls */
diff --git a/src/lib/elm_settingspane_item.eo b/src/lib/elm_settingspane_item.eo
index 5a95bf4e4..43e41b7d1 100644
--- a/src/lib/elm_settingspane_item.eo
+++ b/src/lib/elm_settingspane_item.eo
@@ -118,7 +118,7 @@ class Elm_Settingspane_Item(Eo.Base){
118 */ 118 */
119 } 119 }
120 values { 120 values {
121 Eina_Stringshare *word; /*@ set the current keywords to look up */ 121 char *word; /*@ set the current keywords to look up */
122 } 122 }
123 } 123 }
124 } 124 }