summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-21 22:21:30 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-21 22:21:30 +0100
commitdc6e42cf11d766fec1c4c91adfc700d63cdf2723 (patch)
tree738cc44eb3e071dc33f9c11d67370c94ec763e3c
parent0b70a4e8ce9cd32875b975907c489365681c0cea (diff)
downloadelementary-dc6e42cf11d766fec1c4c91adfc700d63cdf2723.tar.gz
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!!!
-rw-r--r--config/standard/base.src.in2
-rw-r--r--src/lib/elm_config.c4
-rw-r--r--src/lib/elm_config.h8
3 files changed, 7 insertions, 7 deletions
diff --git a/config/standard/base.src.in b/config/standard/base.src.in
index 745e5778e..0bb42ce81 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 2eaca24e1..d28ebbadc 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 1c74b653d..8f724156e 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