aboutsummaryrefslogtreecommitdiffstats
path: root/lib/gs/src/gstk_image.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-08-25 12:08:29 +0200
committerBjörn Gustavsson <[email protected]>2011-10-26 15:44:01 +0200
commit9e034e51ca0f051b62e389545b3f5a56b9cec393 (patch)
tree1ad14bcbffcf9f9bbec5a12a4b64b01fe440b536 /lib/gs/src/gstk_image.erl
parentfe084d5d867de8839385c3652a0f727f97500a0a (diff)
downloadotp-9e034e51ca0f051b62e389545b3f5a56b9cec393.tar.gz
otp-9e034e51ca0f051b62e389545b3f5a56b9cec393.tar.bz2
otp-9e034e51ca0f051b62e389545b3f5a56b9cec393.zip
gs: Eliminate use of deprecated regexp module
Diffstat (limited to 'lib/gs/src/gstk_image.erl')
-rw-r--r--lib/gs/src/gstk_image.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gs/src/gstk_image.erl b/lib/gs/src/gstk_image.erl
index 5ad37cf6de..9adbe42386 100644
--- a/lib/gs/src/gstk_image.erl
+++ b/lib/gs/src/gstk_image.erl
@@ -227,10 +227,10 @@ event(DB, Gstkid, Etype, Edata, Args) ->
option(Option, Gstkid, _Canvas, _DB, _AItem) ->
case Option of
{bitmap, Bitmap} ->
- {ok, BF,_} = regexp:gsub(Bitmap, [92,92], "/"),
+ BF = re:replace(Bitmap, [92,92], "/", [global,{return,list}]),
{s, [" -bi @", BF]};
{load_gif, File} ->
- {ok, F2,_} = regexp:gsub(File, [92,92], "/"),
+ F2 = re:replace(File, [92,92], "/", [global,{return,list}]),
{Photo_item, _item} = Gstkid#gstkid.widget_data,
{c,[Photo_item, " configure -file ", gstk:to_ascii(F2)]};
{pix_val, {Coords,Color}} ->