OSDN Git Service

"button down on uri and move" does not change the selection of ThreadView.
[fukui-no-namari/fukui-no-namari.git] / src / FukuiNoNamari / thread_view.py
index f2fd89c..0248e4a 100644 (file)
@@ -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)