Move conformant calls to elm_win_conformant_get/set.
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 15 Jan 2010 05:17:54 +0000 (05:17 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Fri, 15 Jan 2010 05:17:54 +0000 (05:17 +0000)
SVN revision: 45161

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

index c8de5ef..6a9fe30 100644 (file)
@@ -271,6 +271,8 @@ extern "C" {
    EAPI int          elm_win_rotation_get(Evas_Object *obj);
    EAPI void         elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky);
    EAPI Eina_Bool    elm_win_sticky_get(Evas_Object *obj);
+   EAPI void         elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant);
+   EAPI Eina_Bool    elm_win_conformant_get(Evas_Object *obj);
 
    /*...
     * ecore_x_icccm_hints_set -> accepts_focus (add to ecore_evas)
index ea0b81c..6b499ca 100644 (file)
@@ -819,8 +819,7 @@ elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard)
    _elm_win_xwindow_get(win);
 #ifdef HAVE_ELEMENTARY_X
    if (win->xwin)
-     ecore_x_e_virtual_keyboard_set
-     (win->xwin, is_keyboard);
+     ecore_x_e_virtual_keyboard_set(win->xwin, is_keyboard);
 #endif
 }
 
@@ -835,6 +834,35 @@ elm_win_screen_position_get(Evas_Object *obj, int *x, int *y)
    if (y) *y = win->screen.y;
 }
 
+EAPI void 
+elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) 
+{
+   Elm_Win *win;
+   if (strcmp(elm_widget_type_get(obj), "win")) return;
+   win = elm_widget_data_get(obj);
+   if (!win) return;
+   _elm_win_xwindow_get(win);
+#ifdef HAVE_ELEMENTARY_X
+   if (win->xwin)
+     ecore_x_e_illume_conformant_set(win->xwin, conformant);
+#endif
+}
+
+EAPI Eina_Bool 
+elm_win_conformant_get(Evas_Object *obj) 
+{
+   Elm_Win *win;
+   if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
+   win = elm_widget_data_get(obj);
+   if (!win) return EINA_FALSE;
+   _elm_win_xwindow_get(win);
+#ifdef HAVE_ELEMENTARY_X
+   if (win->xwin)
+     return ecore_x_e_illume_conformant_get(win->xwin);
+#endif
+   return EINA_FALSE;
+}
+
 typedef struct _Widget_Data Widget_Data;
 
 struct _Widget_Data