GtkComboBox: different length of lists

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GtkComboBox: different length of lists

axel
Hi there,

I use GtkComboBox with different length of lists. Seems to me that GTK
takes the longest list as base and fills up shorter lists with zero's
(see attached image). How can I avoid these zero's on display?
Here's the part for the liststore in the ui-file:

  <object class="GtkListStore" id="list_zoomfaktor">
    <columns>
      <!-- column-name zoom_1k -->
      <column type="gint"/>
      <!-- column-name zoom_10k -->
      <column type="gint"/>
      <!-- column-name zoom_100k -->
      <column type="gint"/>
      <!-- column-name zoom_1M -->
      <column type="gint"/>
      <!-- column-name zoom_10M -->
      <column type="gint"/>
    </columns>
    <data>
      <row>
        <col id="0">2</col>
        <col id="1">2</col>
        <col id="2">2</col>
        <col id="3">2</col>
        <col id="4">2</col>
      </row>
      <row>
        <col id="0">5</col>
        <col id="1">5</col>
        <col id="2">5</col>
        <col id="3">5</col>
        <col id="4">5</col>
      </row>
      <row>
        <col id="1">10</col>
        <col id="2">10</col>
        <col id="3">10</col>
        <col id="4">10</col>
      </row>
      <row>
        <col id="1">20</col>
        <col id="2">20</col>
        <col id="3">20</col>
        <col id="4">20</col>
      </row>
      <row>
        <col id="1">50</col>
        <col id="2">50</col>
        <col id="3">50</col>
        <col id="4">50</col>
      </row>
      <row>
        <col id="2">100</col>
        <col id="3">100</col>
        <col id="4">100</col>
      </row>
      <row>
        <col id="2">200</col>
        <col id="3">200</col>
        <col id="4">200</col>
      </row>
      <row>
        <col id="2">500</col>
        <col id="3">500</col>
        <col id="4">500</col>
      </row>
      <row>
        <col id="3">1000</col>
        <col id="4">1000</col>
      </row>
      <row>
        <col id="3">2000</col>
        <col id="4">2000</col>
      </row>
      <row>
        <col id="3">5000</col>
        <col id="4">5000</col>
      </row>
      <row>
        <col id="4">10000</col>
      </row>
      <row>
        <col id="4">20000</col>
      </row>
      <row>
        <col id="4">50000</col>
      </row>
    </data>
  </object>
_________________________________________________

Axel


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list

ComboBox.png (18K) Download Attachment