From: Doyoun Kang <doyoun.kang@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 24 Feb 2012 12:33:11 +0000 (12:33 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 24 Feb 2012 12:33:11 +0000 (12:33 +0000)
Subject: Add feature for showing/hiding indicator

Hi, raster.
As we discussed about indicator, i added feature for indicator.
Please check attached patch files.

1. elementary
i added enumeration to Elm_Illume_Command as below.
- ELM_ILLUME_COMMAND_INDICATOR_SHOW
- ELM_ILLUME_COMMAND_INDICATOR_HIDE

2. ecore
i added atoms/enumerations/APIs as below.
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE;
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_ON;
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_OFF;

typedef enum _Ecore_X_Illume_Indicator_State
{
   ECORE_X_ILLUME_INDICATOR_STATE_UNKNOWN = 0,
   ECORE_X_ILLUME_INDICATOR_STATE_OFF,
   ECORE_X_ILLUME_INDICATOR_STATE_ON
} Ecore_X_Illume_Indicator_State;

EAPI void ecore_x_e_illume_indicator_state_set(Ecore_X_Window win,
Ecore_X_Illume_Indicator_State state);
EAPI Ecore_X_Illume_Indicator_State
ecore_x_e_illume_indicator_state_get(Ecore_X_Window win);
EAPI void ecore_x_e_illume_indicator_state_send(Ecore_X_Window win,
Ecore_X_Illume_Indicator_State state);

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

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

diff --git a/AUTHORS b/AUTHORS
index 11b92ed..dab5202 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -52,3 +52,4 @@ Sanjeev BA <iamsanjeev@gmail.com>
 Hyunsil Park <hyunsil.park@samsung.com>
 Goun Lee <gouni.lee@samsung.com>
 Mikael Sans <sans.mikael@gmail.com>
+Doyoun Kang <doyoun.kang@samsung.com>
index 37ae0a0..96145d4 100644 (file)
@@ -2673,6 +2673,14 @@ elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *
            case ELM_ILLUME_COMMAND_CLOSE:
               ecore_x_e_illume_close_send(win->xwin);
               break;
+           case ELM_ILLUME_COMMAND_INDICATOR_SHOW:
+              ecore_x_e_illume_indicator_state_set
+                 (win->xwin, ECORE_X_ILLUME_INDICATOR_STATE_ON);
+              break;
+           case ELM_ILLUME_COMMAND_INDICATOR_HIDE:
+              ecore_x_e_illume_indicator_state_set
+                 (win->xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
+              break;
            default:
               break;
           }
index 9391cb5..67f9485 100644 (file)
@@ -179,7 +179,9 @@ typedef enum
    ELM_ILLUME_COMMAND_FOCUS_BACK, /**< Reverts focus to the previous window */
    ELM_ILLUME_COMMAND_FOCUS_FORWARD, /**< Sends focus to the next window in the list */
    ELM_ILLUME_COMMAND_FOCUS_HOME, /**< Hides all windows to show the Home screen */
-   ELM_ILLUME_COMMAND_CLOSE /**< Closes the currently active window */
+   ELM_ILLUME_COMMAND_CLOSE, /**< Closes the currently active window */
+   ELM_ILLUME_COMMAND_INDICATOR_SHOW, /**< Shows the indicator */
+   ELM_ILLUME_COMMAND_INDICATOR_HIDE /**< Hides the indicator */
 } Elm_Illume_Command;
 
 /**