From 42fd919a7e3237968fd60361b168a625eb405c0a Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 2 Nov 2007 20:54:42 +0000 Subject: [PATCH] Make the font size in the param dialog's 'type' column the same as the other columns. git-svn-id: http://svn.voria.com/code@1109 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/layertree.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/layertree.cpp b/synfig-studio/trunk/src/gtkmm/layertree.cpp index 82387b2..09a7f26 100644 --- a/synfig-studio/trunk/src/gtkmm/layertree.cpp +++ b/synfig-studio/trunk/src/gtkmm/layertree.cpp @@ -357,16 +357,16 @@ LayerTree::create_param_tree() column->set_resizable(); } { // --- T Y P E -------------------------------------------------------- - const CanvasTreeStore::Model model; - int cols_count = get_param_tree_view().append_column(_("Type"),model.type); - Gtk::TreeViewColumn* column = get_param_tree_view().get_column(cols_count-1); - if(column) - { - column->set_reorderable(); - column->set_resizable(); - column->set_clickable(); - column->set_sort_column_id(model.type); - } + Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column(_("Type")) ); + Gtk::CellRendererText* text_cellrenderer = Gtk::manage( new Gtk::CellRendererText() ); + column->pack_start(*text_cellrenderer,false); + column->add_attribute(text_cellrenderer->property_text(), param_model.type); + text_cellrenderer->property_attributes()=attr_list; + get_param_tree_view().append_column(*column); + column->set_reorderable(); + column->set_resizable(); + column->set_clickable(); + column->set_sort_column_id(param_model.type); } /*{ // --- T I M E T R A C K -------------------------------------------- Gtk::TreeView::Column* column = Gtk::manage( new Gtk::TreeView::Column(_("Time Track")) ); -- 2.7.4