Skip to content

Commit d7fd67c

Browse files
committed
Revert syslog spam issue - upstream issue #142
1 parent f64ec9e commit d7fd67c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

alttoolbar_type.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,16 +771,18 @@ def post_initialise(self):
771771
(self.next_button, "play-next"),
772772
(self.repeat_toggle, "play-repeat"),
773773
(self.shuffle_toggle, "play-shuffle")):
774+
a.set_action_name("app." + b)
774775
if b == "play-repeat" or b == "play-shuffle":
775776
# for some distros you need to set the target_value
776777
# for others this would actually disable the action
777778
# so work around this by testing if the action is disabled
778779
# then reset the action
779-
#a.set_action_target_value(GLib.Variant("b", True))
780-
#print(a.get_sensitive())
781-
#if not a.get_sensitive():
782-
a.set_detailed_action_name("app." + b)
783-
a.set_action_name("app." + b)
780+
# https://gitlab.gnome.org/GNOME/gtk/issues/939
781+
# the above issue is why you see actionhelper mismatch
782+
# errors
783+
a.set_action_target_value(GLib.Variant("b", True))
784+
if not a.get_sensitive():
785+
a.set_detailed_action_name("app." + b)
784786

785787

786788
# The Play-Repeat button is subject to the plugins Repeat All/one song

0 commit comments

Comments
 (0)