gtktreeview: entries get duplicated when sorting
paolostivanin <[email protected]> Wed, 24 Jun 2020 16:24:35 +0200
| Newsgroups | gmane.comp.gnome.devel |
|---|---|
| Message-ID | <172e6b75bd7.11e6243be397204.1509806979340437523@paolostivanin.com> |
--===============8861852271108936076== Content-Type: multipart/alternative; boundary="----=_Part_1266810_428784993.1593008675799" ------=_Part_1266810_428784993.1593008675799 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hello, I'm the developer of OTPClient, a simple TOTP manager for GNOME. I have recently implemented the ability to sort the treeview by clicking on either the "account" or the "issuer" column header. The sorting func used is just the default one, so I did nothing additional there. I'm using a GtkTreeView+GtkListStore, and when I click on the column header the entries get sorted, but almost all of them also get duplicated and I can't figure out why. The complete code for the treeview part is here: https://github.com/paolostivanin/OTPClient/blob/master/src/treeview.c Do you have any idea why this is happening? Thanks ------=_Part_1266810_428784993.1593008675799 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>Hello,<br></div><div>I'm the developer of OTPClien= t, a simple TOTP manager for GNOME.<br></div><div>I have recently implement= ed the ability to sort the treeview by clicking on either the "account" or = the "issuer" column header. The sorting func used is just the default one, = so I did nothing additional there.<br></div><div>I'm using a GtkTreeView+Gt= kListStore, and when I click on the column header the entries get sorted, b= ut almost all of them also get duplicated and I can't figure out why.<br></= div><div><br></div><div>The complete code for the treeview part is here: <a= target=3D"_blank" href=3D"https://github.com/paolostivanin/OTPClient/blob/= master/src/treeview.c">https://github.com/paolostivanin/OTPClient/blob/mast= er/src/treeview.c</a><br></div><div><br></div><div>Do you have any idea why= this is happening?<br></div><div><br></div><div>Thanks<br></div></div><br>= </body></html> ------=_Part_1266810_428784993.1593008675799-- --===============8861852271108936076== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devel-list --===============8861852271108936076==--