From 526c33566239e61d6505c1471809ab8a6cfb23e2 Mon Sep 17 00:00:00 2001 From: auouymous Date: Thu, 15 Dec 2022 03:34:24 -0700 Subject: [PATCH] Rename showEpisodeDescription's internal names to match other items. --- share/gpodder/ui/gtk/menus.ui | 2 +- src/gpodder/gtkui/main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/gpodder/ui/gtk/menus.ui b/share/gpodder/ui/gtk/menus.ui index b7f1842f..a327a9be 100644 --- a/share/gpodder/ui/gtk/menus.ui +++ b/share/gpodder/ui/gtk/menus.ui @@ -229,7 +229,7 @@ Always show New Episodes - win.showEpisodeDescription + win.viewShowEpisodeDescription Episode descriptions <Primary>d diff --git a/src/gpodder/gtkui/main.py b/src/gpodder/gtkui/main.py index 1794c83d..ad68ac9b 100644 --- a/src/gpodder/gtkui/main.py +++ b/src/gpodder/gtkui/main.py @@ -308,8 +308,8 @@ class gPodder(BuilderWidget, dbus.service.Object): g.add_action(action) action = Gio.SimpleAction.new_stateful( - 'showEpisodeDescription', None, GLib.Variant.new_boolean(self.config.ui.gtk.episode_list.descriptions)) - action.connect('activate', self.on_itemShowDescription_activate) + 'viewShowEpisodeDescription', None, GLib.Variant.new_boolean(self.config.ui.gtk.episode_list.descriptions)) + action.connect('activate', self.on_item_view_show_episode_description_toggled) g.add_action(action) action = Gio.SimpleAction.new_stateful( @@ -3426,7 +3426,7 @@ class gPodder(BuilderWidget, dbus.service.Object): self.config.ui.gtk.episode_list.always_show_new = not state action.set_state(GLib.Variant.new_boolean(not state)) - def on_itemShowDescription_activate(self, action, param): + def on_item_view_show_episode_description_toggled(self, action, param): state = action.get_state() self.config.ui.gtk.episode_list.descriptions = not state action.set_state(GLib.Variant.new_boolean(not state)) -- 2.11.4.GIT