zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cd3cad0ff1c166849ba4f8afdd40f506569ec3bb

commit cd3cad0ff1c166849ba4f8afdd40f506569ec3bb
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Mar 4 13:37:35 2019 -0500

    efl.ui.win: remove 'noblank' property from eo api
    
    Summary:
    this is not supportable outside xorg usage
    
    ref T7511
    Depends on D8084
    
    Reviewers: cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl_api
    
    Maniphest Tasks: T7511
    
    Differential Revision: https://phab.enlightenment.org/D8085
---
 src/lib/elementary/efl_ui_win.c  | 24 +++++++-----------------
 src/lib/elementary/efl_ui_win.eo | 25 -------------------------
 2 files changed, 7 insertions(+), 42 deletions(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 43ecc9d864..0b6fafd966 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -5977,21 +5977,6 @@ _efl_ui_win_accel_preference_get(const Eo *obj 
EINA_UNUSED, Efl_Ui_Win_Data *pd)
    return pd->accel_pref;
 }
 
-EOLIAN static void
-_efl_ui_win_noblank_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, Eina_Bool 
noblank)
-{
-   noblank = !!noblank;
-   if (pd->noblank == noblank) return;
-   pd->noblank = noblank;
-   _win_noblank_eval();
-}
-
-EOLIAN static Eina_Bool
-_efl_ui_win_noblank_get(const Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd)
-{
-   return pd->noblank;
-}
-
 EOLIAN static void
 _efl_ui_win_win_role_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char 
*role)
 {
@@ -9238,13 +9223,18 @@ elm_win_sticky_get(const Evas_Object *obj)
 EAPI void
 elm_win_noblank_set(Evas_Object *obj, Eina_Bool noblank)
 {
-   efl_ui_win_noblank_set(obj, noblank);
+   Efl_Ui_Win_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
+   noblank = !!noblank;
+   if (sd->noblank == noblank) return;
+   sd->noblank = noblank;
+   _win_noblank_eval();
 }
 
 EAPI Eina_Bool
 elm_win_noblank_get(const Evas_Object *obj)
 {
-   return efl_ui_win_noblank_get(obj);
+   Efl_Ui_Win_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
+   return sd->noblank;
 }
 
 EAPI void
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index 94b283096e..51fed270ef 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -388,31 +388,6 @@ class @beta Efl.Ui.Win extends Efl.Ui.Widget implements 
Efl.Canvas.Scene, Efl.Ac
             modal: Efl.Ui.Win_Modal_Mode; [[The mode of a window, one of 
@Efl.Ui.Win_Modal_Mode.]]
          }
       }
-      @property noblank {
-         set {
-            [[Set the noblank property of a window.
-
-              The "noblank" property is a way to request the display on
-              which the window is shown does not blank, go to screensaver or
-              otherwise hide or obscure the window. It is intended for
-              uses such as media playback on a television where a user
-              may not want to be interrupted by an idle screen. The
-              noblank property may have no effect if the window is
-              minimized or hidden.
-
-              @since 1.11
-            ]]
-         }
-         get {
-            [[Get the noblank property of a window.
-
-              @since 1.11
-            ]]
-         }
-         values {
-            noblank: bool; [[If $true, the window is set to noblank.]]
-         }
-      }
       @property borderless {
          set {
             [[Set the borderless state of a window.

-- 


Reply via email to