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

B96a542ba3969981493f90081bf63958?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
0d130f179f85401f248e6ebc2ef8292f?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
header:

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


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???

Eric
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.