Commit 85ab57fe authored by Luca Bacci's avatar Luca Bacci Committed by Mike Fleetwood

Use Gtk::Box for Dialog_DiskLabel (!25)

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

This commit makes the change for Dialog_DiskLabel.cc.

Closes !25 - Modern Gtk3 - part 1
parent 363868bf
......@@ -32,11 +32,11 @@ Dialog_Disklabel::Dialog_Disklabel( const Device & device )
this ->set_resizable( false );
{
Gtk::HBox* hbox(manage(new Gtk::HBox()));
Gtk::Box *hbox(manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL)));
get_vbox()->pack_start(*hbox, Gtk::PACK_SHRINK);
Gtk::VBox* vbox(manage(new Gtk::VBox()));
Gtk::Box *vbox(manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)));
vbox->set_border_width(10);
hbox->pack_start(*vbox, Gtk::PACK_SHRINK);
......@@ -44,7 +44,7 @@ Dialog_Disklabel::Dialog_Disklabel( const Device & device )
Gtk::Image* image(Utils::mk_image(Gtk::Stock::DIALOG_WARNING, Gtk::ICON_SIZE_DIALOG));
vbox->pack_start(*image, Gtk::PACK_SHRINK);
vbox = manage(new Gtk::VBox());
vbox = manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
vbox->set_border_width(10);
hbox->pack_start(*vbox, Gtk::PACK_SHRINK);
......@@ -56,7 +56,7 @@ Dialog_Disklabel::Dialog_Disklabel( const Device & device )
str_temp += "</span>\n";
vbox->pack_start(*Utils::mk_label(str_temp), Gtk::PACK_SHRINK);
hbox = manage(new Gtk::HBox(false, 5));
hbox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 5));
hbox->set_border_width(5);
str_temp = _("Select new partition table type:");
str_temp += "\t";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment