Commit Graph

75 Commits

Author SHA1 Message Date
Mike Blumenkrantz f9a7f07bac tooltip windows now set shape input rect in elm_win
this fixes a longstanding race condition where tooltip windowss could exist with a shape rectangle due to race conditions between applying window properties (eg. alpha) and reapplying the input rect
2014-12-07 20:10:40 -05:00
Daniel Juyung Seo 8d30e7774d tooltip: Removed unnecessary casting and followed callback function conventions. 2014-09-05 01:12:22 +09:00
Daniel Juyung Seo 8ffbf246f4 elm: fixed trivial formattings.
Just found them while reading codes.
2014-05-10 23:44:27 +09:00
zmike df0803a28c tooltips position more accurately in X in xinerama
elm_win_screen_size_get() is broken for this use case since the tooltip actually needs the full xinerama screen geometry, which is the geometry of the root window and NOT the current screen

@fix
2014-04-22 09:31:41 -04:00
Bora Hwang 5bbf7d9af5 clear up the documentation of tooltip
Summary: Since explanations of tooltip's APIs are scattered in header or source code, these needs to be cleared up.

Reviewers: seoz, Hermet, woohyun, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D644
2014-03-20 20:12:02 +09:00
Daniel Juyung Seo 05998a7730 tooltip: Fixed wrong API names. elm_tooltip -> elm_object_tooltip.
This was added in 1.9, so it should be changed before 1.9 release.
Thank god I found this out just right before the release.
2014-02-22 05:22:35 +09:00
ChunEon Park 390d70d95b tooltip - renamed the new tooltip apis until 1.9 release.
Before
elm_tooltip_move_lock_set()
elm_tooltip_move_lock_get()

After
elm_tooltip_move_freeze_push()
elm_tooltip_move_freeze_pop()
elm_tooltip_move_freeze_get()

we're likely to use the freeze rather than lock among the entire apis.
it's already discussed in the mailing list.
2014-02-20 20:49:01 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
abhi cc03e646c9 Adding elm_tooltip_movement_lock_set() and elm_tooltip_movement_lock_get()
Summary: These APIs allow to enable/disable a tooltip to move with respect to mouse pointer

Test Plan: elm_tooltip_movement_lock_set(), elm_tooltip_movement_lock_get(), elementary_test -to tooltip

Reviewers: singh.amitesh, seoz, raster

Reviewed By: raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D369
2014-01-13 15:22:48 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
abhi 35e1e6a988 tooltip: Adding elm_object_tooltip_orient_set API
Summary: Eight fixed orientations provided to orient tooltip around event area

Test Plan: elementary_test -to tooltip, elm_object_tooltip_orient_set

Reviewers: seoz, singh.amitesh, Anusha

Reviewed By: seoz

CC: Anusha

Differential Revision: https://phab.enlightenment.org/D326
2013-12-02 00:12:56 +09:00
Daniel Juyung Seo f07c5538b0 els_tooltip.s: use internal elm_widget function inside elementary instead of external elm_object function. 2013-10-17 21:59:59 +09:00
Carsten Haitzler ad434a0994 tooltips - fix show to be at end just to be cleaner. 2013-10-16 21:29:22 +09:00
Daniel Willmann c093a07541 els_tooltip: Only call ecore_x_pointer_xy_get() if we're in X
We don't want to call X functions (and segfault) if X is not actually
running.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 12:48:52 +01:00
Daniel Willmann 363da34f27 els_tooltip.c: Initialize px and py to zero
px and py might not be set if X support is not compiled in and
ecore_x_pointer_xy_get() is not called. In that case make sure they are
not used uninitialized.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 12:48:48 +01:00
Daniel Willmann 4d40f16f5e els_tooltip: Don't expect to have X running if support is compiled in
Refactor the code so common code is not duplicated inside the
if (transparent) and else blocks

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 11:27:23 +01:00
Daniel Juyung Seo 8ea7760db4 els_tooltip.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:12:04 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
ChunEon Park fb472f97b1 elementary - only support sending signals when orientation mode is changed.
it's enough right now.

need to consider more about theme change.
2013-02-26 13:26:22 +09:00
ChunEon Park 0a71cd2727 elementary/widget - revised orientation mode code.
now if applying the orientation style is failed, it tries to apply the original style. if it fails again then default theme.

also it fixed a logic error when theme changed is happened.

It will try to apply the original style if the orientation style is invalid on theme changing.




SVN revision: 84082
2013-02-19 08:22:15 +00:00
Jaehwan Kim 803ff266ac Fix copy-paste error
SVN revision: 82434
2013-01-09 04:57:54 +00:00
Mike Blumenkrantz 86727a6b8b same netwm tooltip fix
SVN revision: 81876
2012-12-29 15:57:08 +00:00
Mike Blumenkrantz 5446cde267 fix tooltips to not go offscreen as often
SVN revision: 79982
2012-12-02 12:41:09 +00:00
Carsten Haitzler 8b76f22a7e big tooltip (tooltip in window) visibility bug fix! yay! :)
SVN revision: 74897
2012-08-06 06:43:59 +00:00
Carsten Haitzler d76345fc8a use profate atof that fixes up locale issues for string -> float
conversion.



SVN revision: 70485
2012-04-26 03:32:18 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Mike Blumenkrantz 0adcfa7c7c even more TTDBG
SVN revision: 69209
2012-03-11 22:21:41 +00:00
Mike Blumenkrantz f6656c64cf significantly improve look of tooltips during mouse movement
SVN revision: 69208
2012-03-11 22:13:24 +00:00
Mike Blumenkrantz e003b20f1c more TTDBG
SVN revision: 69207
2012-03-11 22:01:55 +00:00
Mike Blumenkrantz e55ec71d08 if the tooltip is huge, this isn't an error
SVN revision: 69205
2012-03-11 21:56:36 +00:00
Mike Blumenkrantz 58d2852b57 add an abort() here to help sort out remaining tt positioning issues; send backtraces to the list
SVN revision: 69204
2012-03-11 21:50:02 +00:00
Carsten Haitzler 84aa9dbceb move config setting fucns over to elm_config in preparation for naming
elm_config_*



SVN revision: 68797
2012-03-06 09:23:43 +00:00
Carsten Haitzler 7542e629d3 deprecate elm_win_transparent stuff
SVN revision: 68698
2012-03-05 12:03:40 +00:00
Jihoon Kim e083aa2095 elm: fix typo parant -> parent
SVN revision: 68669
2012-03-05 02:35:25 +00:00
Sanjeev BA 84fe1571f2 Elm tooltip API moved to config.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68470
2012-02-27 08:33:48 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Mike Blumenkrantz 0a7bec205b even better tooltip placement, more debug messages, some developer comments, don't show tooltip if it's going to be a failure offscreen tooltip (FOT) (tm)
SVN revision: 65561
2011-11-24 04:52:16 +00:00
Mike Blumenkrantz 5121192fac further improve tooltip placement, add debug messages so I don't have to keep writing them in when I want to tinker with this
SVN revision: 65559
2011-11-24 04:16:03 +00:00
Mike Blumenkrantz 54efa8cf9a unbreak tooltip placement
SVN revision: 65553
2011-11-24 02:42:46 +00:00
Mike Blumenkrantz 2f5e212c5e use new elm_win function to find screen geometry instead of ecore_x
SVN revision: 65495
2011-11-21 19:55:13 +00:00
Mike Blumenkrantz 1d851d7ea9 maybe throttling this was not a great idea...
SVN revision: 65491
2011-11-21 19:12:35 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Mike Blumenkrantz cf1f395966 fix bug where window-type tooltip deletion caused infinite recursion
SVN revision: 63761
2011-10-03 04:12:40 +00:00
Tom Hacohen bc6ea747d1 Elm tooltip: Remove the checks if object passed is an elm widget.
This kinda reverts 62919, still kept the useful new macro/func.

SVN revision: 62943
2011-08-29 11:55:25 +00:00
Daniel Juyung Seo 136a0f7dfd elm els_tooltip.c: Fixed warings.
SVN revision: 62930
2011-08-29 04:00:37 +00:00
Tom Hacohen e36e207812 Elm tooltip: Added checks if the object passed is an elm object.
SVN revision: 62919
2011-08-28 14:12:38 +00:00