elm icon: Fixed build break from cedric commit r63537. Fixed build
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 27 Sep 2011 06:40:06 +0000 (06:40 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 27 Sep 2011 06:40:06 +0000 (06:40 +0000)
warnings.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63621 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_icon.c

index d49719b..ec1a264 100644 (file)
@@ -479,7 +479,11 @@ _icon_standard_set(Widget_Data *wd, Evas_Object *obj, const char *name)
 }
 
 static Eina_Bool
+#ifdef ELM_EFREET
 _icon_file_set(Widget_Data *wd, Evas_Object *obj, const char *path)
+#else
+_icon_file_set(Widget_Data *wd __UNUSED__, Evas_Object *obj, const char *path)
+#endif
 {
    if (elm_icon_file_set(obj, path, NULL))
      {
@@ -493,7 +497,11 @@ _icon_file_set(Widget_Data *wd, Evas_Object *obj, const char *path)
 }
 
 static Eina_Bool
+#ifdef ELM_EFREET
 _icon_freedesktop_set(Widget_Data *wd, Evas_Object *obj, const char *name, int size)
+#else
+_icon_freedesktop_set(Widget_Data *wd __UNUSED__, Evas_Object *obj __UNUSED__, const char *name __UNUSED__, int size __UNUSED__)
+#endif
 {
 #ifdef ELM_EFREET
    const char *path;
@@ -696,11 +704,13 @@ elm_icon_file_set(Evas_Object *obj, const char *file, const char *group)
        && (group == tmp_group || (group && tmp_group && !strcmp(group, tmp_group))))
      return EINA_TRUE;
 
+#ifdef ELM_EFREET
    if (!wd->freedesktop.use)
      {
         if (wd->stdicon) eina_stringshare_del(wd->stdicon);
-       wd->stdicon = NULL;
+        wd->stdicon = NULL;
      }
+#endif
    if (eina_str_has_extension(file, ".edj"))
      ret = _els_smart_icon_file_edje_set(wd->img, file, group);
    else