Replaces the following deprecated Gtk classes throughout the codebase by their non-deprecated counterparts. Style, HBox, VBox, HPaned, VPaned, HScrollbar, VScrollbar, VSeparator, HSeparator, Stock, Table, VScale and HScale.
This commit is contained in:
@@ -35,7 +35,7 @@ DynamicProfilePanel::EditDialog::EditDialog (const Glib::ustring &title, Gtk::Wi
|
||||
Gtk::Dialog (title, parent)
|
||||
{
|
||||
profilepath_ = Gtk::manage (new ProfileStoreComboBox());
|
||||
Gtk::HBox *hb = Gtk::manage (new Gtk::HBox());
|
||||
Gtk::Box *hb = Gtk::manage (new Gtk::Box());
|
||||
hb->pack_start (*Gtk::manage (new Gtk::Label (M ("DYNPROFILEEDITOR_PROFILE"))), false, false, 4);
|
||||
hb->pack_start (*profilepath_, true, true, 2);
|
||||
get_content_area()->pack_start (*hb, Gtk::PACK_SHRINK, 4);
|
||||
@@ -49,7 +49,7 @@ DynamicProfilePanel::EditDialog::EditDialog (const Glib::ustring &title, Gtk::Wi
|
||||
imagetype_->append(M("DYNPROFILEEDITOR_IMGTYPE_HDR"));
|
||||
imagetype_->append(M("DYNPROFILEEDITOR_IMGTYPE_PS"));
|
||||
imagetype_->set_active(0);
|
||||
hb = Gtk::manage (new Gtk::HBox());
|
||||
hb = Gtk::manage (new Gtk::Box());
|
||||
hb->pack_start (*Gtk::manage (new Gtk::Label (M ("EXIFFILTER_IMAGETYPE"))), false, false, 4);
|
||||
hb->pack_start (*imagetype_, true, true, 2);
|
||||
get_content_area()->pack_start (*hb, Gtk::PACK_SHRINK, 4);
|
||||
@@ -195,7 +195,7 @@ void DynamicProfilePanel::EditDialog::set_ranges()
|
||||
void DynamicProfilePanel::EditDialog::add_range (const Glib::ustring &name,
|
||||
Gtk::SpinButton *&from, Gtk::SpinButton *&to)
|
||||
{
|
||||
Gtk::HBox *hb = Gtk::manage (new Gtk::HBox());
|
||||
Gtk::Box *hb = Gtk::manage (new Gtk::Box());
|
||||
hb->pack_start (*Gtk::manage (new Gtk::Label (name)), false, false, 4);
|
||||
from = Gtk::manage (new Gtk::SpinButton());
|
||||
to = Gtk::manage (new Gtk::SpinButton());
|
||||
@@ -210,7 +210,7 @@ void DynamicProfilePanel::EditDialog::add_range (const Glib::ustring &name,
|
||||
void DynamicProfilePanel::EditDialog::add_optional (const Glib::ustring &name, Gtk::CheckButton *&check, Gtk::Entry *&field)
|
||||
{
|
||||
check = Gtk::manage (new Gtk::CheckButton (name));
|
||||
Gtk::HBox *hb = Gtk::manage (new Gtk::HBox());
|
||||
Gtk::Box *hb = Gtk::manage (new Gtk::Box());
|
||||
hb->pack_start (*check, Gtk::PACK_SHRINK, 4);
|
||||
field = Gtk::manage (new Gtk::Entry());
|
||||
hb->pack_start (*field, true, true, 2);
|
||||
@@ -231,10 +231,13 @@ DynamicProfilePanel::DynamicProfilePanel():
|
||||
button_edit_ (M ("DYNPROFILEEDITOR_EDIT")),
|
||||
button_delete_ (M ("DYNPROFILEEDITOR_DELETE"))
|
||||
{
|
||||
set_orientation(Gtk::ORIENTATION_VERTICAL);
|
||||
|
||||
add (vbox_);
|
||||
|
||||
treeview_.set_grid_lines (Gtk::TREE_VIEW_GRID_LINES_VERTICAL);
|
||||
scrolledwindow_.add (treeview_);
|
||||
scrolledwindow_.set_vexpand();
|
||||
|
||||
scrolledwindow_.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
|
||||
|
||||
|
Reference in New Issue
Block a user