modern-gtk2: Use Gtk::AlignmentEnum::ALIGN_START (!17)
Gtkmm 2.22 deprecated Gtk::AlignmentEnum::ALIGN_{LEFT,RIGHT,TOP,BOTTOM} replacing with Gtk::AlignmentEnum::ALIGN_{START,END}. References: https://developer.gnome.org/gtkmm/2.24/group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac https://gitlab.gnome.org/GNOME/gtkmm/blob/2.22.0/NEWS#L14 Closes !17 - Gtk2 modernisation
This commit is contained in:
parent
197c88ad73
commit
3d6ee55606
|
@ -49,13 +49,13 @@ Dialog_Progress::Dialog_Progress( const std::vector<Operation *> & operations )
|
|||
str_temp += "\n";
|
||||
vbox->pack_start(*Utils::mk_label(str_temp), Gtk::PACK_SHRINK);
|
||||
|
||||
label_current.set_alignment(Gtk::ALIGN_LEFT);
|
||||
label_current.set_alignment(Gtk::ALIGN_START);
|
||||
vbox->pack_start(label_current, Gtk::PACK_SHRINK);
|
||||
|
||||
progressbar_current.set_pulse_step(0.01);
|
||||
vbox->pack_start(progressbar_current, Gtk::PACK_SHRINK);
|
||||
|
||||
label_current_sub.set_alignment(Gtk::ALIGN_LEFT);
|
||||
label_current_sub.set_alignment(Gtk::ALIGN_START);
|
||||
vbox->pack_start(label_current_sub, Gtk::PACK_SHRINK);
|
||||
|
||||
vbox->pack_start(*Utils::mk_label("<b>" + Glib::ustring(_("Completed Operations:")) + "</b>"),
|
||||
|
|
|
@ -57,11 +57,11 @@ 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()->property_xalign() = Gtk::ALIGN_LEFT;
|
||||
get_column(2)->get_first_cell()->property_xalign() = Gtk::ALIGN_START;
|
||||
// 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() );
|
||||
cell_renderer_text ->property_xalign() = Gtk::ALIGN_LEFT ;
|
||||
cell_renderer_text->property_xalign() = Gtk::ALIGN_START;
|
||||
|
||||
// Tree view column "Mount Point", make column resizable and show too wide text
|
||||
// with ellipsis.
|
||||
|
|
Loading…
Reference in New Issue