From 3d6ee55606019c0a7e0aedcb128a6256e36e83ac Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 10 Aug 2018 09:49:30 +0200 Subject: [PATCH] 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 --- src/Dialog_Progress.cc | 4 ++-- src/TreeView_Detail.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc index 7aae8b6d..abee2000 100644 --- a/src/Dialog_Progress.cc +++ b/src/Dialog_Progress.cc @@ -49,13 +49,13 @@ Dialog_Progress::Dialog_Progress( const std::vector & 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("" + Glib::ustring(_("Completed Operations:")) + ""), diff --git a/src/TreeView_Detail.cc b/src/TreeView_Detail.cc index 375837fe..f5e6834b 100644 --- a/src/TreeView_Detail.cc +++ b/src/TreeView_Detail.cc @@ -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 renderers = get_column( 2 )->get_cell_renderers(); Gtk::CellRendererText *cell_renderer_text = dynamic_cast( 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.