Commit 6d87fd19 authored by Marinus Schraal's avatar Marinus Schraal

albumwidget: Fix checkbox selection

When using the checkbox in selection mode, the checkbox widget's
'activated' signal came before the bound 'selected' property being updated.
Resulting in a discrepancy between the actual selection and the visible
representation, which is based on the latter, but signalled by the first.

Use the SongWidget 'selected' property notification instead to emit
the 'selection-changed' signal.
parent f5eb3ca5
......@@ -5,6 +5,7 @@
<template class="SongWidget" parent="GtkEventBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<signal name="notify::selected" handler="_on_selection_changed"/>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
......@@ -40,7 +41,6 @@
<property name="receives_default">False</property>
<property name="no_show_all">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="_on_selection_changed" swapped="no"/>
<property name="expand">False</property>
......@@ -128,7 +128,7 @@ class SongWidget(Gtk.EventBox):
def _on_selection_changed(self, klass):
def _on_selection_changed(self, klass, value):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment