diff options
author | Björn Gustavsson <[email protected]> | 2016-06-27 11:48:03 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-27 11:49:57 +0200 |
commit | 6931dce17580d097351dd7be09ce7c9ed3f72827 (patch) | |
tree | 2456845e95ed0112c2f08ed8ab6e867686b91d7a /lib/gs/doc/src/examples/ex5.erl | |
parent | dfccd57cb2b69fc3ab01acd0ccbfc894a8403358 (diff) | |
download | otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.gz otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.bz2 otp-6931dce17580d097351dd7be09ce7c9ed3f72827.zip |
Remove the gs application
The gs application ws deprecated in R15B01.
Diffstat (limited to 'lib/gs/doc/src/examples/ex5.erl')
-rw-r--r-- | lib/gs/doc/src/examples/ex5.erl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/gs/doc/src/examples/ex5.erl b/lib/gs/doc/src/examples/ex5.erl deleted file mode 100644 index e608709991..0000000000 --- a/lib/gs/doc/src/examples/ex5.erl +++ /dev/null @@ -1,27 +0,0 @@ --module(ex5). --copyright('Copyright (c) 1991-97 Ericsson Telecom AB'). --vsn('$Revision: /main/release/2 $ '). - --export([start/0, init/0, b1/0, b2/0]). - -start() -> - spawn(ex5, init, []). - -init() -> - S = gs:start(), - W = gs:create(window,S,[{map,true}]), - gs:create(button,W,[{label,{text,"Button1"}},{data,{ex5,b1,[]}},{y,0}]), - gs:create(button,W,[{label,{text,"Button2"}},{data,{ex5,b2,[]}},{y,40}]), - loop(). - -loop()-> - receive - {gs,_,click,{M,F,A},_} -> % any button pressed - apply(M,F,A), - loop() - end. - -b1() -> - io:format("Button 1 pressed!~n",[]). -b2() -> - io:format("Button 2 pressed!~n",[]). |