Elementary: Patch from Jihoon Kim to add missing window types.
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 22 Mar 2011 15:46:52 +0000 (15:46 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 22 Mar 2011 15:46:52 +0000 (15:46 +0000)
Elementary was missing window types for dropdown_menu, popup_menu,
tooltip, notification, combo, and dnd. This patch adds the missing
types into the enum and elm_win code.

SVN revision: 57992

src/lib/Elementary.h.in
src/lib/elm_win.c

index 0a3acdbbe8244d0ab56cfd60da0ba93bc7963154..4c5f27d56b7b4f727e691d6b5095cd0ec5b84c09 100644 (file)
@@ -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
index fa16fd896482208977c378bb175e90ebc1a59f2f..bf23098341a3e09fcf98b52a2ae4915525747c56 100644 (file)
@@ -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;
      }