modern-gtk2: Use Gtk::TreeView::Column::get_first_cell() (!17)
Gtk::TreeView::Column::get_first_cell_renderer() was deprecated in gtkmm 2.24. Replace with Gtk::TreeView::Column::get_first_cell(). References: https://developer.gnome.org/gtkmm/2.24/classGtk_1_1TreeViewColumn.html https://gitlab.gnome.org/GNOME/gtkmm/blob/2.24.0/NEWS#L64 Closes !17 - Gtk2 modernisation
This commit is contained in:
parent
3f18318304
commit
197c88ad73
|
@ -80,7 +80,7 @@ Dialog_Progress::Dialog_Progress( const std::vector<Operation *> & operations )
|
|||
|
||||
treeview_operations.get_column(0)->set_expand(true);
|
||||
treeview_operations.get_column(0)->set_cell_data_func(
|
||||
*(treeview_operations.get_column(0)->get_first_cell_renderer()),
|
||||
*(treeview_operations.get_column(0)->get_first_cell()),
|
||||
sigc::mem_fun(*this, &Dialog_Progress::on_cell_data_description) );
|
||||
|
||||
//fill 'er up
|
||||
|
|
|
@ -57,7 +57,7 @@ TreeView_Detail::TreeView_Detail()
|
|||
// Tree view column "File System"; add file system text cell.
|
||||
get_column( 2 )->pack_start( treeview_detail_columns.filesystem, true );
|
||||
// Color pixbuf cell is left aligned.
|
||||
get_column( 2 )->get_first_cell_renderer()->property_xalign() = Gtk::ALIGN_LEFT;
|
||||
get_column(2)->get_first_cell()->property_xalign() = Gtk::ALIGN_LEFT;
|
||||
// File system text cell is left aligned.
|
||||
std::vector<Gtk::CellRenderer*> renderers = get_column( 2 )->get_cell_renderers();
|
||||
Gtk::CellRendererText *cell_renderer_text = dynamic_cast<Gtk::CellRendererText*>( renderers.back() );
|
||||
|
@ -66,7 +66,7 @@ TreeView_Detail::TreeView_Detail()
|
|||
// Tree view column "Mount Point", make column resizable and show too wide text
|
||||
// with ellipsis.
|
||||
get_column( 3 )->set_resizable( true );
|
||||
cell_renderer_text = dynamic_cast<Gtk::CellRendererText *>( get_column( 3 )->get_first_cell_renderer() );
|
||||
cell_renderer_text = dynamic_cast<Gtk::CellRendererText *>(get_column(3)->get_first_cell());
|
||||
cell_renderer_text->property_ellipsize() = Pango::ELLIPSIZE_END;
|
||||
|
||||
//set alignment of numeric columns to right
|
||||
|
|
Loading…
Reference in New Issue