バグ #962 » use_Skin_get_path_instead.patch
core/mui/gtk_postbox.rb (revision ) | ||
---|---|---|
def widget_send
|
||
return @send if defined?(@send)
|
||
@send = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get('post.png'), 16, 16))
|
||
@send = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get_path('post.png'), 16, 16))
|
||
@send.sensitive = postable?
|
||
@send.signal_connect('clicked'){|button|
|
||
post_it
|
||
... | ... | |
def widget_tool
|
||
return @tool if defined?(@tool)
|
||
@tool = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get('close.png'), 16, 16))
|
||
@tool = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get_path('close.png'), 16, 16))
|
||
@tool.signal_connect_after('focus_out_event', &method(:focus_out_event))
|
||
@tool.ssc('event'){
|
||
@tool.sensitive = destructible? || posting?
|
core/plugin/activity/model/activity.rb (revision ) | ||
---|---|---|
# TLにアイコンを表示するため
|
||
def profile_image_url
|
||
icon || MUI::Skin.get('activity.png')
|
||
icon || MUI::Skin.get_path('activity.png')
|
||
end
|
||
def plugin
|
devel/chiskel/core/plugin/plugin.rb (revision ) | ||
---|---|---|
=== mui_tab_regist(Gtk::Widget container, String label, String image=nil)
|
||
ウィンドウにタブを追加する。 _label_ はウィンドウ内での識別名にも使われるので一意であること。
|
||
_image_ は画像への相対パスかURLで、通常は #MUI::Skin.get の戻り値を使う。
|
||
_image_ は画像への相対パスかURLで、通常は #MUI::Skin.get_path の戻り値を使う。
|
||
_image_ が省略された場合は、 _label_ が使われる。
|
||
=== mui_tab_remove(String label)
|
core/plugin/list_for_profile/list_for_profile.rb (revision ) | ||
---|---|---|
Plugin.create :list_for_profile do
|
||
user_fragment :list, _("リスト") do
|
||
set_icon Skin.get("list.png")
|
||
set_icon Skin.get_path("list.png")
|
||
container = Plugin::ListForProfile::ProfileTab.new(Plugin[:list_for_profile], retriever)
|
||
nativewidget ::Gtk::HBox.new.add(container.show_all).closeup(::Gtk::VScrollbar.new(container.vadjustment)) end
|
||
core/plugin/user_detail_view/user_detail_view.rb (revision ) | ||
---|---|---|
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(Skin.get(new ? "arrow_followed.png" : "arrow_notfollowed.png"), arrow_size).show_all)
|
||
w_eventbox_image_followed.add(::Gtk::WebIcon.new(Skin.get_path(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|
|
||
if rel and not(w_eventbox_image_following.destroyed?)
|