<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Enumerate PDF named destinations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97262#c63">Comment # 63</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Enumerate PDF named destinations"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97262">bug 97262</a>
              from <span class="vcard"><a class="email" href="mailto:trueroad@trueroad.jp" title="Masamichi Hosoda <trueroad@trueroad.jp>"> <span class="fn">Masamichi Hosoda</span></a>
</span></b>
        <pre>I've noticed that another way.

GTree provides sorted order.
GHashTable provides unstable order.
But, I think that there is a case that the serial (appeared) order in PDF is
necessary.
In this case, both GTree and GHashTable cannot be used since the serial order
is not preserved.

So I propose that using GPtrArray with the following structure.

struct PopplerNamedDest {
        GBytes *name;
        PopplerDest *dest;
};

If you would like sorted order, you can use g_ptr_array_sort ().
If you would like to find name, you can build GHashTree from GPtrArray.

How about this?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>