Bind and Unbind signals are emitted on selection

Hi!
Quick question, if I may.

Using a GtkSignalListFactory and GtkSingleSelection, the :bind and :unbind signals are emitted when the selection changes.

I.e.: In a GridView, if item 1 is currently selected, when item 3 is clicked, the following happens:

  • unbind is called on item 1
  • bind is called on item 1
  • unbind is called on item 3
  • bind is called on item 3

Is this intentional? Why does this happen? Seems excessive and unnecessary to me

Thanks in advance!

Cc @otte could you please take a look?

1 Like

Sounds like listitemfactory: Don't rebind on position or selection changes (!7420) · Merge requests · GNOME / gtk · GitLab ?

2 Likes

Thank you for the replies!

I’m on the latest version in the Fedora repo, which is 4.16.5-2. The linked merged commit is included in the following tags:
image

So I suppose it’s already solved in newer versions.

Thanks again, have a nice day!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.