バグ #962 » use_Skin_get_path_instead.patch
core/mui/gtk_postbox.rb (revision ) | ||
---|---|---|
97 | 97 | |
98 | 98 |
def widget_send |
99 | 99 |
return @send if defined?(@send) |
100 |
@send = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get('post.png'), 16, 16)) |
|
100 |
@send = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get_path('post.png'), 16, 16))
|
|
101 | 101 |
@send.sensitive = postable? |
102 | 102 |
@send.signal_connect('clicked'){|button| |
103 | 103 |
post_it |
... | ... | |
106 | 106 | |
107 | 107 |
def widget_tool |
108 | 108 |
return @tool if defined?(@tool) |
109 |
@tool = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get('close.png'), 16, 16)) |
|
109 |
@tool = Gtk::Button.new.add(Gtk::WebIcon.new(Skin.get_path('close.png'), 16, 16))
|
|
110 | 110 |
@tool.signal_connect_after('focus_out_event', &method(:focus_out_event)) |
111 | 111 |
@tool.ssc('event'){ |
112 | 112 |
@tool.sensitive = destructible? || posting? |
core/plugin/activity/model/activity.rb (revision ) | ||
---|---|---|
21 | 21 | |
22 | 22 |
# TLにアイコンを表示するため |
23 | 23 |
def profile_image_url |
24 |
icon || MUI::Skin.get('activity.png') |
|
24 |
icon || MUI::Skin.get_path('activity.png')
|
|
25 | 25 |
end |
26 | 26 | |
27 | 27 |
def plugin |
devel/chiskel/core/plugin/plugin.rb (revision ) | ||
---|---|---|
205 | 205 | |
206 | 206 |
=== mui_tab_regist(Gtk::Widget container, String label, String image=nil) |
207 | 207 |
ウィンドウにタブを追加する。 _label_ はウィンドウ内での識別名にも使われるので一意であること。 |
208 |
_image_ は画像への相対パスかURLで、通常は #MUI::Skin.get の戻り値を使う。 |
|
208 |
_image_ は画像への相対パスかURLで、通常は #MUI::Skin.get_path の戻り値を使う。
|
|
209 | 209 |
_image_ が省略された場合は、 _label_ が使われる。 |
210 | 210 | |
211 | 211 |
=== mui_tab_remove(String label) |
core/plugin/list_for_profile/list_for_profile.rb (revision ) | ||
---|---|---|
5 | 5 |
Plugin.create :list_for_profile do |
6 | 6 | |
7 | 7 |
user_fragment :list, _("リスト") do |
8 |
set_icon Skin.get("list.png") |
|
8 |
set_icon Skin.get_path("list.png")
|
|
9 | 9 |
container = Plugin::ListForProfile::ProfileTab.new(Plugin[:list_for_profile], retriever) |
10 | 10 |
nativewidget ::Gtk::HBox.new.add(container.show_all).closeup(::Gtk::VScrollbar.new(container.vadjustment)) end |
11 | 11 |
core/plugin/user_detail_view/user_detail_view.rb (revision ) | ||
---|---|---|
218 | 218 |
if not w_eventbox_image_followed.children.empty? |
219 | 219 |
w_eventbox_image_followed.remove(w_eventbox_image_followed.children.first) end |
220 | 220 |
w_eventbox_image_followed.style = w_eventbox_image_followed.parent.style |
221 |
w_eventbox_image_followed.add(::Gtk::WebIcon.new(Skin.get(new ? "arrow_followed.png" : "arrow_notfollowed.png"), arrow_size).show_all) |
|
221 |
w_eventbox_image_followed.add(::Gtk::WebIcon.new(Skin.get_path(new ? "arrow_followed.png" : "arrow_notfollowed.png"), arrow_size).show_all)
|
|
222 | 222 |
w_followed_label.text = new ? _("フョローされている") : _("フョローされていない") end } |
223 | 223 |
Service.primary.friendship(target_id: user[:id], source_id: me.user_obj[:id]).next{ |rel| |
224 | 224 |
if rel and not(w_eventbox_image_following.destroyed?) |