[gparted] Use Gtk::Box for Dialog_Rescue_Data (!25)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Use Gtk::Box for Dialog_Rescue_Data (!25)
- Date: Sat, 27 Apr 2019 11:52:13 +0000 (UTC)
commit d780ca644ec754ac3950831519b9e8fc8e10c1df
Author: Luca Bacci <luca bacci982 gmail com>
Date: Wed Feb 27 16:53:59 2019 +0100
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
src/Dialog_Rescue_Data.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Dialog_Rescue_Data.cc b/src/Dialog_Rescue_Data.cc
index a9f594b9..fa941214 100644
--- a/src/Dialog_Rescue_Data.cc
+++ b/src/Dialog_Rescue_Data.cc
@@ -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")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]