From e55810a133bcbc64aa923d88030d18a96609b9ba Mon Sep 17 00:00:00 2001 From: moguno Date: Sun, 28 Jul 2013 17:03:39 +0900 Subject: [PATCH] =?UTF-8?q?destroy=E3=81=95=E3=82=8C=E3=81=9F=E3=82=A4=E3=83?= =?UTF-8?q?=B3=E3=82=B9=E3=82=BF=E3=83=B3=E3=82=B9=E3=81=A7release=E3=82=A4=E3?= =?UTF-8?q?=83=99=E3=83=B3=E3=83=88=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=97=E3=81?= =?UTF-8?q?=9F=E3=82=89=E4=BE=8B=E5=A4=96=E3=81=A7=E8=90=BD=E3=81=A1=E3=82=8B?= =?UTF-8?q?=E9=9A=9C=E5=AE=B3=E3=82=92=E5=AF=BE=E7=AD=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/mui/cairo_miracle_painter.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb index 7f3a943..d2d1252 100644 --- a/core/mui/cairo_miracle_painter.rb +++ b/core/mui/cairo_miracle_painter.rb @@ -133,10 +133,11 @@ class Gdk::MiraclePainter < Gtk::Object # MiraclePainterの座標x, y上でポインティングデバイスのボタン1が離されたことを通知する def released(x=nil, y=nil) - if(x == y and not x) - unselect - else - textselector_release(*main_pos_to_index_forclick(x, y)[1..2]) end end + if not destroyed? + if(x == y and not x) + unselect + else + textselector_release(*main_pos_to_index_forclick(x, y)[1..2]) end end end # 座標 ( _x_ , _y_ ) にクリックイベントを発生させる def clicked(x, y, event) -- 1.7.10.2 (Apple Git-33)