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)
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 {
55 value "longpress_timeout" double: 1.0; 55 value "longpress_timeout" double: 1.0;
56 value "effect_enable" uchar: 1; 56 value "effect_enable" uchar: 1;
57 value "desktop_entry" uchar: 1; 57 value "desktop_entry" uchar: 1;
58 value "context_menu_disabled" uchar: 1; 58 value "context_menu_disabled" uchar: 0;
59 value "password_show_last" uchar: 0; 59 value "password_show_last" uchar: 0;
60 value "password_show_last_timeout" double: 2.0; 60 value "password_show_last_timeout" double: 2.0;
61 value "glayer_zoom_finger_enable" uchar: 1; 61 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)
3285} 3285}
3286 3286
3287EAPI void 3287EAPI void
3288elm_config_context_menu_disabled_set(Eina_Bool enabled) 3288elm_config_context_menu_disabled_set(Eina_Bool disabled)
3289{ 3289{
3290 _elm_config->context_menu_disabled = !!enabled; 3290 _elm_config->context_menu_disabled = !!disabled;
3291} 3291}
3292 3292
3293EAPI void 3293EAPI 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);
307EAPI Eina_Bool elm_config_context_menu_disabled_get(void); 307EAPI Eina_Bool elm_config_context_menu_disabled_get(void);
308 308
309/** 309/**
310 * Set enable status of context menu disabled. 310 * Enable or disable the context menu in entries.
311 * 311 *
312 * @param enabled enable context menu if @c EINA_TRUE, disable otherwise 312 * @param disabled disable context menu if @c EINA_TRUE, enable otherwise
313 * 313 *
314 * @see elm_config_focus_auto_scroll_bring_in_enabled_get() 314 * @see elm_config_context_menu_disabled_get()
315 * @ingroup Entry 315 * @ingroup Entry
316 * @since 1.17 316 * @since 1.17
317 */ 317 */
318EAPI void elm_config_context_menu_disabled_set(Eina_Bool enabled); 318EAPI void elm_config_context_menu_disabled_set(Eina_Bool disabled);
319 319
320/** 320/**
321 * Get the amount of inertia a scroller will impose at region bring 321 * Get the amount of inertia a scroller will impose at region bring