Project

General

Profile

機能 #888 » 888.patch

cob odo, 2018-04-20 22:59

View differences:

core/mui/cairo_icon_over_button.rb
58 58
  # - _gy_MiraclePainter 全体から見たy座標
59 59
  def point_moved_main_icon(gx, gy)
60 60
    icon_position = globalpos2iconpos(gx, gy)
61
    @tree.pointer_on_main_icon = !!icon_position
61 62
    if icon_position
62 63
      if current_icon_pos != icon_position
63 64
        on_modify
core/mui/gtk_tree_view_pretty_scroll.rb
11 11
  def initialize(*a)
12 12
    super
13
    pointer_on_main_icon = false # メインアイコン上にポインタがあるなら真
13 14
    scroll_to_top_animation = false # 自動スクロールアニメーション中なら真
14 15
    get_scroll_to_top_animation_id = 0
15 16
    scroll_to_top_animation_id = lambda{
......
45 46
  def scroll_to_zero_lator!
46 47
    @scroll_to_zero_lator = true end
48
  def pointer_on_main_icon
49
    atomic {
50
      @pointer_on_main_icon
51
    }
52
  end
53

  
54
  def pointer_on_main_icon=(v)
55
    atomic {
56
      @pointer_on_main_icon = v
57
    }
58
  end
59

  
47 60
  def scroll_to_zero?
48
    defined?(@scroll_to_zero_lator) and @scroll_to_zero_lator end
61
    !pointer_on_main_icon and defined?(@scroll_to_zero_lator) and @scroll_to_zero_lator end
49 62
end
    (1-1/1)