some more prettying: added pango formatting to "now playing" in Master Panel window and fixed broken ZebraTreeView::addCenteredColumn() function.

This commit is contained in:
fgerlits 2005-05-06 19:58:49 +00:00
parent d56c8131fd
commit 32376178d3
3 changed files with 40 additions and 17 deletions

View file

@ -22,7 +22,7 @@
Author : $Author: fgerlits $
Version : $Revision: 1.11 $
Version : $Revision: 1.12 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/src/ZebraTreeView.cxx,v $
------------------------------------------------------------------------------*/
@ -175,6 +175,9 @@ ZebraTreeView :: appendCenteredColumn(
// a standard cell renderer; can be replaced with a ZebraCellRenderer
Gtk::CellRendererText* renderer = Gtk::manage(new Gtk::CellRendererText);
// center the text in the column
renderer->property_xalign() = 0.5;
// the constructor packs the renderer into the TreeViewColumn
Gtk::TreeViewColumn* viewColumn = Gtk::manage(new
Gtk::TreeViewColumn(title, *renderer) );
@ -182,9 +185,6 @@ ZebraTreeView :: appendCenteredColumn(
// and then we associate this renderer with the model column
viewColumn->add_attribute(renderer->property_markup(), modelColumn);
// center the text in the column
viewColumn->set_alignment(Gtk::ALIGN_CENTER);
// this cell data function will do the blue-gray zebra stripes
viewColumn->set_cell_data_func(
*renderer,