Use Gtk::Box for Dialog_Rescue_Data (!25)

Gtk::HBox and Gtk::VBox were deprecated in Gtkmm 3.2.  Replace with
plain Gtk::Box.

This commit makes the change for Dialog_Rescue_Data.cc.

Closes !25 - Modern Gtk3 - part 1
This commit is contained in:
Luca Bacci 2019-02-27 16:53:59 +01:00 committed by Mike Fleetwood
parent cc6a085e60
commit d780ca644e
1 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ void Dialog_Rescue_Data::draw_dialog()
info_txt+="\n";
info_txt+=_("All mounted views will be unmounted when you close this dialog.");
Gtk::HBox *infoBox=manage(new Gtk::HBox());
Gtk::Box *infoBox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
Gtk::Image *infoImg = Utils::mk_image(Gtk::Stock::DIALOG_INFO, Gtk::ICON_SIZE_DIALOG);
Gtk::Label *infoLabel= manage(new Gtk::Label (info_txt));
@ -103,7 +103,7 @@ void Dialog_Rescue_Data::draw_dialog()
* Create the list of the filesystems found */
void Dialog_Rescue_Data::create_list_of_fs()
{
Gtk::VBox *vb=manage(new Gtk::VBox());
Gtk::Box *vb = manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
vb->set_border_width(5);
vb->set_spacing(5);
this->frm=Gtk::manage(new Gtk::Frame(_("File systems")));
@ -134,7 +134,7 @@ void Dialog_Rescue_Data::create_list_of_fs()
fsLbl->set_label(fsLbl->get_label().append(" (!)"));
}
Gtk::HBox *hb=manage(new Gtk::HBox());
Gtk::Box *hb = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
Gtk::Button *btn=manage(new Gtk::Button(_("View")));