On 03/22/2011 06:15 AM, Jihoon Kim wrote:
> Hello, EFL developers.
>
> The third parameter of elm_win_add is the window type, but it just supports
> 8 types.
> In Ecore_X.h, there are 14 window types such as
> ECORE_X_WINDOW_TYPE_NOTIFICATION, TOOLTIP, and so on.
> This patch will supplement the missing window types.
>
> Would you please review this patch?
>
>
In Svn, thanks :)

dh

>
> add_window_type.patch.txt
>
>
> Index: src/lib/elm_win.c
> ===================================================================
> --- src/lib/elm_win.c (revision 57963)
> +++ src/lib/elm_win.c (working copy)
> @@ -410,6 +410,24 @@ _elm_win_xwin_update(Elm_Win *win)
>         case ELM_WIN_SPLASH:
>        ecore_x_netwm_window_type_set(win->xwin, ECORE_X_WINDOW_TYPE_SPLASH);
>        break;
> +      case ELM_WIN_DROPDOWN_MENU:
> +      ecore_x_netwm_window_type_set(win->xwin, 
> ECORE_X_WINDOW_TYPE_DROPDOWN_MENU);
> +      break;
> +      case ELM_WIN_POPUP_MENU:
> +      ecore_x_netwm_window_type_set(win->xwin, 
> ECORE_X_WINDOW_TYPE_POPUP_MENU);
> +      break;
> +      case ELM_WIN_TOOLTIP:
> +      ecore_x_netwm_window_type_set(win->xwin, ECORE_X_WINDOW_TYPE_TOOLTIP);
> +      break;
> +      case ELM_WIN_NOTIFICATION:
> +      ecore_x_netwm_window_type_set(win->xwin, 
> ECORE_X_WINDOW_TYPE_NOTIFICATION);
> +      break;
> +      case ELM_WIN_COMBO:
> +      ecore_x_netwm_window_type_set(win->xwin, ECORE_X_WINDOW_TYPE_COMBO);
> +      break;
> +      case ELM_WIN_DND:
> +      ecore_x_netwm_window_type_set(win->xwin, ECORE_X_WINDOW_TYPE_DND);
> +      break;
>         default:
>        break;
>        }
> Index: src/lib/Elementary.h.in
> ===================================================================
> --- src/lib/Elementary.h.in   (revision 57963)
> +++ src/lib/Elementary.h.in   (working copy)
> @@ -462,7 +462,13 @@ extern "C" {
>           ELM_WIN_TOOLBAR,
>           ELM_WIN_MENU,
>           ELM_WIN_UTILITY,
> -        ELM_WIN_SPLASH
> +        ELM_WIN_SPLASH,
> +        ELM_WIN_DROPDOWN_MENU,
> +        ELM_WIN_POPUP_MENU,
> +        ELM_WIN_TOOLTIP,
> +        ELM_WIN_NOTIFICATION,
> +        ELM_WIN_COMBO,
> +        ELM_WIN_DND
>        } Elm_Win_Type;
>
>      typedef enum _Elm_Win_Keyboard_Mode
>
>
>
>

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to