Forum: Ruby-Gnome 2 How to change Title font size in Listview

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3bd5c8d34ad61a79f251e2ec2a8b38f1?d=identicon&s=25 John S. (jhs408)
on 2014-05-11 03:01
Modifying listview example:

using the statement:  " ren_attr(:song, :size=18)"
changes the text font size of :song column,
but does not change the textfont size of the column title.

What is the example statement to change the title text size
of column :song?

Thanks, John
C37e335e7250698ebcc8a092a4baded3?d=identicon&s=25 Eric C. (eric_c)
on 2014-05-12 21:25
In the listview example there's a method that set the alignment of the

  def center__toggled(*argv)
    val = @builder["center"].active? ? 0.5 : 0
    col_alignment(:artist => val)

This is setting a property in the Gtk::TreeViewColumn object.  I don't
see a way to get access to the text inside the title except that there
is a widget property:

Perhaps you can get that widget, check its type and set the text size???

This topic is locked and can not be replied to.