platform/upstream/libwlmessage.git
9 years agoHandle up to 6 buttons accepted/tizen/common/20150130.101314 submit/tizen_common/20150129.180244 submit/tizen_mobile/20150213.000000
Manuel Bachmann [Thu, 29 Jan 2015 18:00:15 +0000 (19:00 +0100)]
Handle up to 6 buttons

All backends (Wayland and X11) now handle up to 6 buttons,
aligned and centered at the bottom of the window.

Change-Id: I7985b5246653a7fe95e5e8a1b34252d0cd861536
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agoX11 backend: implement the new progressbar API accepted/tizen_3.0_ivi tizen_3.0_ivi accepted/tizen/common/20141124.154922 accepted/tizen/ivi/20141215.104225 accepted/tizen/mobile/20141128.095055 submit/tizen/20141124.083122 submit/tizen_ivi/20141210.445566 submit/tizen_ivi/20141210.778899 tizen_3.0_ivi_release
Manuel Bachmann [Sun, 23 Nov 2014 17:48:09 +0000 (18:48 +0100)]
X11 backend: implement the new progressbar API

The 3 new progressbar-related functions are now implemented
in the X11 backend.

Change-Id: Ie66dbe04c44dda12243c22fe42bc52c9c16f8a27
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agoClean the code, fix warnings
Manuel Bachmann [Sun, 23 Nov 2014 16:33:17 +0000 (17:33 +0100)]
Clean the code, fix warnings

We clean the code (style and logic) in both backends, and
remove as much warnings as we are able to.

Change-Id: I42b8151302ae04fd4b87df0c97e190bc6cc54b8d
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agoAdd a progressbar feature and the corresponding APIs accepted/tizen/common/20141121.180746 accepted/tizen/mobile/20141128.095002 submit/tizen/20141121.153826
Manuel Bachmann [Fri, 21 Nov 2014 13:58:35 +0000 (14:58 +0100)]
Add a progressbar feature and the corresponding APIs

We now support a new set of APIs :
- set_progress () will create a progressbar, which status
will be determined by a float value (0.0=0%, 1.0=100%) ;
- get_progress () will retrieve the current float value ;
- set_progress_callback () takes a callback function and
a non-mandatory user-supplied pointer as arguments. This
function will be called as often as possible, and is
supposed to modify the progressbar state after blocking
wlmessage_show() has been issued, and call
wlmessage_destroy () when it is finished.

If a callback is given, the textfield and buttons will not
be shown, as the window is then supposed non-interactive.

X11 does not support these APIs for now ; they will have no
effect. Next commit will fix that.

Change-Id: I2ac4cab9b4bb0ed63fdd15baa50ec04b1c8ca769
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agoWayland backend: upgrade to XDG-Shell 1.6.0 32/30532/1 accepted/tizen/common/20141121.104004 submit/accepted/tizen_3.0.2014.q3_common/20141119.161913 submit/tizen/20141119.162130 submit/tizen_common/20141119.172306
Manuel Bachmann [Wed, 19 Nov 2014 14:31:38 +0000 (15:31 +0100)]
Wayland backend: upgrade to XDG-Shell 1.6.0

Allow the WLMESSAGE_USE_XDG_SHELL environment variable
to work with the latest Weston 1.6.0 release.

Tizen does not want backwards compatibility with 1.5.0,
so do not commit this part of the code here.

Change-Id: I00724a54a7e45ae42072506e099ebe7f3da530d9
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoX11 backend: global improvements (timeout, textfield...) accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140905.155223 accepted/tizen/ivi/20140908.110719 submit/tizen/20140905.103406 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Manuel Bachmann [Fri, 5 Sep 2014 10:04:46 +0000 (12:04 +0200)]
X11 backend: global improvements (timeout, textfield...)

This commit does the following for the X11 backend :
- support the "set_timeout()" function ;
- make sure the returned text string never gets
  truncated if it is not edited before validation ;
- realign the buttons when the window gets resized ;
- have a mininal size for the window ;
- fix 2 obvious memory leaks ;
- fix a core dump when there was no textfield.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoAdd a configurable X11 backend accepted/tizen/common/20140904.154930 submit/accepted/tizen_common/20140904.133032 submit/accepted/tizen_common/20140904.153927 submit/tizen/20140904.153959
Manuel Bachmann [Thu, 4 Sep 2014 12:52:44 +0000 (14:52 +0200)]
Add a configurable X11 backend

If libwlmessage is built with "--enable-x11", it will now
use its fresh-new X11 backend to display popups.

Just like the Wayland one, the X11 backend uses no toolkit
(few dependencies). It looks similar, too.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoImprove autoconf help messages
Manuel Bachmann [Thu, 4 Sep 2014 06:46:03 +0000 (08:46 +0200)]
Improve autoconf help messages

Create a help string for "--enable-xdg-shell" and "--disable-egl",
and have some syntax and position improvements.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoAdd configurable support for wl_shell and xdg-shell accepted/tizen/common/20140828.144215 submit/tizen_common/20140828.143012 submit/tizen_ivi/20140902.000000 submit/tizen_ivi/20140904.000000
Manuel Bachmann [Wed, 27 Aug 2014 10:15:08 +0000 (12:15 +0200)]
Add configurable support for wl_shell and xdg-shell

If libwlmessage is built with the "--enable-xdg-shell"
configure flag AND the "WLMESSAGE_USE_XDG_SHELL"
environment variable is defined, then xdg-shell will be
used. Otherwise, fall back to wl_shell.

Change-Id: I65bd32315e0cadd1ebcf50464ffb1ea7eb3e053c
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoLittle syntax and style fixes to the Tizen packaging.
Manuel Bachmann [Tue, 19 Aug 2014 06:04:07 +0000 (08:04 +0200)]
Little syntax and style fixes to the Tizen packaging.

Change-Id: I932a58d5cad59acbf4897811dfeef60adfec8c55
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoActivate the window when it gets focused
Manuel Bachmann [Tue, 19 Aug 2014 05:52:21 +0000 (07:52 +0200)]
Activate the window when it gets focused

Use the keyboard focus handler to trigger a redraw, and set the "active" window border each time the window gets focused (and not only when the pointer activates a widget).

Change-Id: I1ebf81d07e109fc19d20c53f14ae605d77860f0b
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agofix: prevent crash
Philippe Coval [Mon, 11 Aug 2014 12:56:21 +0000 (14:56 +0200)]
fix: prevent crash

when started as:
wlmessage  -titlebuttons Min

Change-Id: I75c9d9cf0953205a5b61f8aae7baa77341f0c5a6
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Author:    Philippe Coval <philippe.coval@open.eurogiciel.org>

10 years agocleanup: rm generated file
Philippe Coval [Mon, 11 Aug 2014 12:50:23 +0000 (14:50 +0200)]
cleanup: rm generated file

Change-Id: I90a8c84c79f8f2be77b5e3fb35544aba7d232527
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Author:    Philippe Coval <philippe.coval@open.eurogiciel.org>

10 years agoWorkaround: do not iterate through input devices when destroying
Manuel Bachmann [Wed, 2 Jul 2014 10:06:58 +0000 (12:06 +0200)]
Workaround: do not iterate through input devices when destroying

TEMPORARY FIX ! In some cases, when destroying a widget or a window,
toytoolkit tries to get the input device which is "focused" to this
widget or window ; but it may try if the input device list is
empty or incorrectly filled. *TODO* proper check

Change-Id: Ibf100bde3842b5e8dd8e10cbaeb81f0a12545374
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoClarify API for error handling with the show() function
Manuel Bachmann [Thu, 5 Jun 2014 10:17:00 +0000 (12:17 +0200)]
Clarify API for error handling with the show() function

Make the API clearer in terms of returning errors from the show()
function.
Fix minor typo.

Change-Id: I035a553337baf7cd486a09672b54269bf3daf72b
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoDo not core dump when destroying a non-fucntional "wlmessage"
Manuel Bachmann [Thu, 5 Jun 2014 07:53:57 +0000 (09:53 +0200)]
Do not core dump when destroying a non-fucntional "wlmessage"

If libwlmessage cannot run because a Wayland compositor has not been
found, and so the message window has not been completely initialized,
destroy it safely.

Change-Id: Iecf9ee0ba3c860ea9961b0b80cf2c3ceb007f5bf
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoFix the Tizen packaging, third try, add a .pc file.
Manuel Bachmann [Sat, 31 May 2014 19:45:40 +0000 (21:45 +0200)]
Fix the Tizen packaging, third try, add a .pc file.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoFix the Tizen packaging, second try.
Manuel Bachmann [Sat, 31 May 2014 17:42:19 +0000 (19:42 +0200)]
Fix the Tizen packaging, second try.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoFix the Tizen packaging.
Manuel Bachmann [Sat, 31 May 2014 17:35:26 +0000 (19:35 +0200)]
Fix the Tizen packaging.
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoReturn selected button and entered text, as intended.
Manuel Bachmann [Sat, 31 May 2014 16:01:29 +0000 (18:01 +0200)]
Return selected button and entered text, as intended.
Remove dead code.
Suppress annoying warning message.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoActivate the virtual keyboard.
Manuel Bachmann [Fri, 30 May 2014 21:58:13 +0000 (23:58 +0200)]
Activate the virtual keyboard.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
10 years agoInitial commit.
Manuel Bachmann [Fri, 30 May 2014 17:29:09 +0000 (19:29 +0200)]
Initial commit.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>