davemds pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=dc6e42cf11d766fec1c4c91adfc700d63cdf2723

commit dc6e42cf11d766fec1c4c91adfc700d63cdf2723
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Thu Jan 21 22:21:30 2016 +0100

    Adjust "context_menu_disabled" configuration.
    
    This @fix three (yes 3!) errors from commit 
cafda5928f9bf8116564219dc03d12c3a6e131b3
    
    1. the initial value in the standard config is wrong, causing ctx menu to 
be disabled for everyone!
    2. the argument of the api should be named "disabled" (like all the other 
disable API in this context)
    3. (minor) fixed doc for elm_config_context_menu_disabled_set
    
    NOTE: there are no configuration gui for this option, if you cleared your 
elm config recently you probably now have the ctx menu disabled everywhere, 
only solution is to wipe your config (to let elm create a new correct one)
    
    Big SPANK to the author, the commiter and all the reviewers of D2463!!!
---
 config/standard/base.src.in | 2 +-
 src/lib/elm_config.c        | 4 ++--
 src/lib/elm_config.h        | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/config/standard/base.src.in b/config/standard/base.src.in
index 745e577..0bb42ce 100644
--- a/config/standard/base.src.in
+++ b/config/standard/base.src.in
@@ -55,7 +55,7 @@ group "Elm_Config" struct {
   value "longpress_timeout" double: 1.0;
   value "effect_enable" uchar: 1;
   value "desktop_entry" uchar: 1;
-  value "context_menu_disabled" uchar: 1;
+  value "context_menu_disabled" uchar: 0;
   value "password_show_last" uchar: 0;
   value "password_show_last_timeout" double: 2.0;
   value "glayer_zoom_finger_enable" uchar: 1;
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 2eaca24..d28ebba 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -3285,9 +3285,9 @@ elm_config_context_menu_disabled_get(void)
 }
 
 EAPI void
-elm_config_context_menu_disabled_set(Eina_Bool enabled)
+elm_config_context_menu_disabled_set(Eina_Bool disabled)
 {
-       _elm_config->context_menu_disabled = !!enabled;
+       _elm_config->context_menu_disabled = !!disabled;
 }
 
 EAPI void
diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h
index 1c74b65..8f72415 100644
--- a/src/lib/elm_config.h
+++ b/src/lib/elm_config.h
@@ -307,15 +307,15 @@ EAPI void         
elm_config_scroll_page_scroll_friction_set(double friction);
 EAPI Eina_Bool elm_config_context_menu_disabled_get(void);
 
 /**
- * Set enable status of context menu disabled.
+ * Enable or disable the context menu in entries.
  *
- * @param enabled enable context menu if @c EINA_TRUE, disable otherwise
+ * @param disabled disable context menu if @c EINA_TRUE, enable otherwise
  *
- * @see elm_config_focus_auto_scroll_bring_in_enabled_get()
+ * @see elm_config_context_menu_disabled_get()
  * @ingroup Entry
  * @since 1.17
  */
-EAPI void elm_config_context_menu_disabled_set(Eina_Bool enabled);
+EAPI void elm_config_context_menu_disabled_set(Eina_Bool disabled);
 
 /**
  * Get the amount of inertia a scroller will impose at region bring

-- 


Reply via email to