プロジェクト

全般

プロフィール

機能 #507 » a.patch

Satoshi Okuno, 2012-09-15 10:06

差分を表示:

core/plugin/profile/profile.rb (作業コピー)
49 49
      closeup(Gtk::Label.new("Twitter開始: #{user[:created].strftime('%Y/%m/%d %H:%M:%S')} (#{ago == 0 ? user[:statuses_count] : (user[:statuses_count].to_f / ago).round_at(2)}tweet/day)\n").left).
50 50
      closeup(plugin.relation_bar(user))
51 51
    container.closeup(plugin.mutebutton(user)) if not user.is_me?
52
    nativewidget container.show_all end
52
    scrolledwindow = Gtk::ScrolledWindow.new
53
    scrolledwindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
54
    scrolledwindow.add_with_viewport(container)
55
    scrolledwindow.style = container.style
56
    nativewidget scrolledwindow.show_all end
53 57

  
54 58
  on_appear do |messages|
55 59
    timeline_storage.dup.deach{ |slug, user|
......
140 144
            following = new
141 145
            if not w_eventbox_image_following.children.empty?
142 146
              w_eventbox_image_following.remove(w_eventbox_image_following.children.first) end
147

  
148
            w_eventbox_image_following.style = w_eventbox_image_following.parent.style
143 149
            w_eventbox_image_following.add(Gtk::WebIcon.new(MUI::Skin.get(new ? "arrow_following.png" : "arrow_notfollowing.png"), arrow_size).show_all)
144 150
            w_following_label.text = new ? "フョローしている" : "フョローしていない"
145 151
            followbutton.label = new ? "解除" : "フョロー" end }
......
149 155
            followed = new
150 156
            if not w_eventbox_image_followed.children.empty?
151 157
              w_eventbox_image_followed.remove(w_eventbox_image_followed.children.first) end
158
            w_eventbox_image_followed.style = w_eventbox_image_followed.parent.style
152 159
            w_eventbox_image_followed.add(Gtk::WebIcon.new(MUI::Skin.get(new ? "arrow_followed.png" : "arrow_notfollowed.png"), arrow_size).show_all)
153 160
            w_followed_label.text = new ? "フョローされている" : "フョローされていない" end }
154 161
        Service.primary.friendship(target_id: user[:id], source_id: me.user_obj[:id]).next{ |rel|
......
194 201
                 # closeup(toolbar).
195 202
                 add(Gtk::HBox.new(false, 16).
196 203
                     closeup(Gtk::WebIcon.new(user[:profile_image_url], 128, 128).top).
197
                     closeup(Gtk::VBox.new.closeup(user_name(user)).closeup(profile_table(user))))) end
204
                     closeup(Gtk::VBox.new.closeup(user_name(user)).closeup(profile_table(user))))) 
205
    scrolledwindow = Gtk::ScrolledWindow.new
206
    scrolledwindow.height_request = 128 + 24
207
    scrolledwindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER)
208
    scrolledwindow.add_with_viewport(eventbox)
209
  end
198 210

  
199 211
  # ユーザ名を表示する
200 212
  # ==== Args
    (1-1/1)