<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi adlo,<br>
Have you tried model->collect_items instead of model->items in
xfce_appfinder_model_bookmarks_collect()?<br>
<br>
Cheers,<br>
Andre Miranda<br>
<br>
<div class="moz-cite-prefix">On 30-05-2018 15:28, adlo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2AD7EF81-BFB9-4624-A112-45C6C717FA06@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
I am writing a dashboard program based on xfce4-appfinder. I am
attempting to display the bookmarks as a sidebar with launcher
buttons. I have also slightly altered the code so that bookmarks
are stored chronologically rather than alphabetically. The
launcher buttons should be created at program startup. However, I
cannot get the ModelItem's data at program startup.
<div><br>
</div>
<div>At first I tried to iterate over the model items in
xfce_appfinder_model_bookmarks_collect(), but this doesn't work
because model->items is null at this point.</div>
<div><br>
</div>
<div>I have also tried putting my code in
xfce_appfinder_model_menu_changed_idle() and
xfce_appfinder_model_collect_thread(), but it either does
nothing or duplicates all of the menu items.</div>
<div><br>
</div>
<div>Here is some of my code:</div>
<div><a
href="https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L1272"
moz-do-not-send="true">https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L1272</a></div>
<div><br>
</div>
<div><a
href="https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L1802"
moz-do-not-send="true">https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L1802</a></div>
<div><br>
</div>
<div><a
href="https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L2601"
moz-do-not-send="true">https://github.com/adlocode/xfce4-lightdash-plugin/blob/bookmarks-order/src/appfinder-model.c#L2601</a></div>
<div><br>
</div>
<div>How can I resolve this?</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>adlo</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xfce4-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
<a class="moz-txt-link-freetext" href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></pre>
</blockquote>
<br>
</body>
</html>