From: Aiwota Programmer Date: Tue, 25 Dec 2007 19:55:32 +0000 (+0900) Subject: "button down on uri and move" does not change the selection of ThreadView. X-Git-Url: http://git.sourceforge.jp/view?p=fukui-no-namari%2Ffukui-no-namari.git;a=commitdiff_plain;h=ecfaa014d272fce550fd9e321e7f97766383a6e5 "button down on uri and move" does not change the selection of ThreadView. --- diff --git a/src/FukuiNoNamari/thread_view.py b/src/FukuiNoNamari/thread_view.py index f2fd89c..0248e4a 100644 --- a/src/FukuiNoNamari/thread_view.py +++ b/src/FukuiNoNamari/thread_view.py @@ -792,7 +792,7 @@ class ThreadView(gtk.HBox): if event.state & gtk.gdk.BUTTON1_MASK != gtk.gdk.BUTTON1_MASK: self.button1_pressed = False - if self.button1_pressed: + if self.button1_pressed and self.current_pressed_uri is None: old_lay, old_elem, old_idx = self.button_moving_pt self._set_button_moving_pt((event.x, event.y)) new_lay, new_elem, new_idx = self.button_moving_pt @@ -876,7 +876,7 @@ class ThreadView(gtk.HBox): if button1_pressed and self.current_pressed_uri is not None: uri, layout, element = self.ptrpos_to_uri(event.x, event.y) p_uri, p_layout, p_element = self.current_pressed_uri - self.current_preesed_uri = None + self.current_pressed_uri = None if (uri == p_uri and layout == p_layout and element == p_element): self.on_uri_clicked(uri)