Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Created September 21, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akkiesoft/8be58e563294f7d9ff8b2c49a6f8ad1e to your computer and use it in GitHub Desktop.
Save Akkiesoft/8be58e563294f7d9ff8b2c49a6f8ad1e to your computer and use it in GitHub Desktop.
deprecated-korosu-man-20210922.diff
diff --git a/core/mui/gtk_intelligent_textview.rb b/core/mui/gtk_intelligent_textview.rb
index 46e1c42b..3816256e 100644
--- a/core/mui/gtk_intelligent_textview.rb
+++ b/core/mui/gtk_intelligent_textview.rb
@@ -172,7 +172,7 @@ class Gtk::IntelligentTextview < Gtk::TextView
rightclick.call(tagname, textview)
result = true end
elsif(event.is_a?(Gdk::EventMotion))
- set_cursor(textview, Gdk::Cursor::HAND2)
+ set_cursor(textview, Gdk::CursorType::HAND2)
end
result }
tag end
diff --git a/plugin/mastodon_account_viewer/relational_menu.rb b/plugin/mastodon_account_viewer/relational_menu.rb
index 4c01e72b..d091bc0d 100644
--- a/plugin/mastodon_account_viewer/relational_menu.rb
+++ b/plugin/mastodon_account_viewer/relational_menu.rb
@@ -24,7 +24,7 @@ module Plugin::MastodonAccountViewer
private
def gen_menu_mute
- item = Gtk::MenuItem.new(@relation.mute? ? _('ミュート解除する') : _('ミュートする'))
+ item = Gtk::MenuItem.new(label: @relation.mute? ? _('ミュート解除する') : _('ミュートする'))
item.ssc(:activate) do
@relation.request_update_mute_status(!@relation.mute?)
true
@@ -33,7 +33,7 @@ module Plugin::MastodonAccountViewer
end
def gen_menu_block
- item = Gtk::MenuItem.new(@relation.blocked? ? _('ブロック解除する') : _('ブロックする'))
+ item = Gtk::MenuItem.new(label: @relation.blocked? ? _('ブロック解除する') : _('ブロックする'))
item.ssc(:activate) do
@relation.request_update_block_status(!@relation.blocked?)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment