summaryrefslogtreecommitdiff
path: root/gtk2_ardour/luadialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-19 01:39:43 +0200
committerRobin Gareus <robin@gareus.org>2017-08-19 01:39:43 +0200
commite3475f8ae88658aecf276c2c057dd4bf41499215 (patch)
treeee52bd0e959f8bd3ca76600156f78768fed31976 /gtk2_ardour/luadialog.cc
parent722ac7575af9fb9a5af25cf2459c69b393f31cdd (diff)
NO-OP: whitespace & style
Diffstat (limited to 'gtk2_ardour/luadialog.cc')
-rw-r--r--gtk2_ardour/luadialog.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/luadialog.cc b/gtk2_ardour/luadialog.cc
index 32d86ec392..8976fe6c13 100644
--- a/gtk2_ardour/luadialog.cc
+++ b/gtk2_ardour/luadialog.cc
@@ -624,7 +624,7 @@ Dialog::Dialog (std::string const& title, luabridge::LuaRef lr)
_widgets.push_back(widge);
if (i.value ()["col"].isNumber ()) {
- widge->set_col ( i.value ()["col"].cast<int> () );
+ widge->set_col (i.value ()["col"].cast<int> ());
}
}
}
@@ -640,16 +640,17 @@ Dialog::Dialog (std::string const& title, luabridge::LuaRef lr)
for (DialogWidgets::const_iterator i = _widgets.begin (); i != _widgets.end (); ++i) {
int col = (*i)->col();
- if (col <= 0)
+ if (col <= 0) {
++row;
+ }
std::string const& label = (*i)->label ();
if (!label.empty ()) {
Gtk::HBox* hb = Gtk::manage (new Gtk::HBox());
Gtk::Label* lbl = Gtk::manage (new Gtk::Label (label + ":", Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false));
hb->set_spacing(4);
- hb->pack_start( *lbl, true, false);
- hb->pack_start( (*((*i)->widget ())), true, false);
+ hb->pack_start (*lbl, true, false);
+ hb->pack_start (*(*i)->widget (), true, false);
table->attach (*hb, col+0, col+1, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
} else if ((*i)->key ().empty ()) {
table->attach (*((*i)->widget ()), col+0, col+1, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);