プロジェクト

全般

プロフィール

機能 #507 » a.patch

Satoshi Okuno, 2012-09-15 10:06

差分を表示:

core/plugin/profile/profile.rb (作業コピー)
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).
closeup(plugin.relation_bar(user))
container.closeup(plugin.mutebutton(user)) if not user.is_me?
nativewidget container.show_all end
scrolledwindow = Gtk::ScrolledWindow.new
scrolledwindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
scrolledwindow.add_with_viewport(container)
scrolledwindow.style = container.style
nativewidget scrolledwindow.show_all end
on_appear do |messages|
timeline_storage.dup.deach{ |slug, user|
......
following = new
if not w_eventbox_image_following.children.empty?
w_eventbox_image_following.remove(w_eventbox_image_following.children.first) end
w_eventbox_image_following.style = w_eventbox_image_following.parent.style
w_eventbox_image_following.add(Gtk::WebIcon.new(MUI::Skin.get(new ? "arrow_following.png" : "arrow_notfollowing.png"), arrow_size).show_all)
w_following_label.text = new ? "フョローしている" : "フョローしていない"
followbutton.label = new ? "解除" : "フョロー" end }
......
followed = new
if not w_eventbox_image_followed.children.empty?
w_eventbox_image_followed.remove(w_eventbox_image_followed.children.first) end
w_eventbox_image_followed.style = w_eventbox_image_followed.parent.style
w_eventbox_image_followed.add(Gtk::WebIcon.new(MUI::Skin.get(new ? "arrow_followed.png" : "arrow_notfollowed.png"), arrow_size).show_all)
w_followed_label.text = new ? "フョローされている" : "フョローされていない" end }
Service.primary.friendship(target_id: user[:id], source_id: me.user_obj[:id]).next{ |rel|
......
# closeup(toolbar).
add(Gtk::HBox.new(false, 16).
closeup(Gtk::WebIcon.new(user[:profile_image_url], 128, 128).top).
closeup(Gtk::VBox.new.closeup(user_name(user)).closeup(profile_table(user))))) end
closeup(Gtk::VBox.new.closeup(user_name(user)).closeup(profile_table(user)))))
scrolledwindow = Gtk::ScrolledWindow.new
scrolledwindow.height_request = 128 + 24
scrolledwindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER)
scrolledwindow.add_with_viewport(eventbox)
end
# ユーザ名を表示する
# ==== Args
    (1-1/1)