GtkTreeViewColumn width



Hello!

I have a little tricky problem here. It is, I want to have a column with
maximum width so this column will always fill the list. I try to
illustrate that. BTW I am using Gtk 2.

Window borders are marked with "#".

This is how the list looks normally in Gtk.

#################################################################
# Nr  Filename        Size                                      #
# --  --------------  ----------------------------------------- #
#  1  Testfile.txt    10k                                       #
#  2  this_is_a_test  10k                                       #
#  3  more_testing.c  53k                                       #
#################################################################

And now I want to change the behaviour of the "Filename" column like
this:

#################################################################
# Nr  Filename                                             Size #
# --  ---------------------------------------------------  ---- #
#  1  Testfile.txt                                         10k  #
#  2  this_is_a_test                                       10k  #
#  3  more_testing.c                                       53k  #
#################################################################

You can compare this behaviour to a HTML table.

<table border width="100%">
  <tr>
    <td>1</td>
    <td width="100%">Testfile.txt</td>
    <td>10k</td>
  </tr>
  ...
</table>

Is it possible to implement such a functionality?

Thanks in advance.

Regards,

-- 
Simon Fuhrmann | NightSlayer gmx de | http://www.dismember.de
All people talk about the real life, but where can i download it?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]