elm elm_win.c/h: Made documentation more explicit.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 7 Nov 2012 08:49:37 +0000 (08:49 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 7 Nov 2012 08:49:37 +0000 (08:49 +0000)
SVN revision: 78963

src/lib/elm_win.c
src/lib/elm_win.h

index 2f5a8ec..08d844f 100644 (file)
@@ -3043,35 +3043,35 @@ elm_win_shaped_get(const Evas_Object *obj)
 
 EAPI void
 elm_win_alpha_set(Evas_Object *obj,
-                  Eina_Bool alpha)
+                  Eina_Bool enabled)
 {
    ELM_WIN_CHECK(obj);
    ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
 
    if (sd->img_obj)
      {
-        evas_object_image_alpha_set(sd->img_obj, alpha);
-        ecore_evas_alpha_set(sd->ee, alpha);
+        evas_object_image_alpha_set(sd->img_obj, enabled);
+        ecore_evas_alpha_set(sd->ee, enabled);
      }
    else
      {
 #ifdef HAVE_ELEMENTARY_X
         if (sd->x.xwin)
           {
-             if (alpha)
+             if (enabled)
                {
                   if (!_elm_config->compositing)
-                    elm_win_shaped_set(obj, alpha);
+                    elm_win_shaped_set(obj, enabled);
                   else
-                    TRAP(sd, alpha_set, alpha);
+                    TRAP(sd, alpha_set, enabled);
                }
              else
-               TRAP(sd, alpha_set, alpha);
+               TRAP(sd, alpha_set, enabled);
              _elm_win_xwin_update(sd);
           }
         else
 #endif
-          TRAP(sd, alpha_set, alpha);
+          TRAP(sd, alpha_set, enabled);
      }
 }
 
index 79aa7ba..7a601c5 100644 (file)
@@ -576,19 +576,20 @@ EAPI Eina_Bool             elm_win_shaped_get(const Evas_Object *obj);
  * windows, with elm_win_shaped_set().
  *
  * @param obj The window object
- * @param alpha If true, the window has an alpha channel
+ * @param enabled EINA_TRUE if the window alpha channel is enabled, EINA_FALSE otherwise
  *
  * @see elm_win_alpha_set()
  *
  * @ingroup Win
  */
-EAPI void                  elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha);
+EAPI void                  elm_win_alpha_set(Evas_Object *obj, Eina_Bool enabled);
 
 /**
  * Get the alpha channel state of a window.
  *
  * @param obj The window object
- * @return If true, the window has an alpha channel
+ * @return EINA_TRUE if the window alpha channel is enabled, EINA_FALSE
+ * otherwise
  *
  * @ingroup Win
  */