13
0

Lua Dialog, fill window with single widget

This is particularly helpful with a file-selector (e.g. mixer
ccreenshot Script)
This commit is contained in:
Robin Gareus 2020-04-25 04:40:08 +02:00
parent 18228edd54
commit 6c9b03e2a3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -799,7 +799,7 @@ Dialog::Dialog (std::string const& title, luabridge::LuaRef lr)
table->attach (*hb, col, cend, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
}
} else {
table->attach (*((*i)->widget ()), col, cend, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
table->attach (*((*i)->widget ()), col, cend, row, row + 1, Gtk::FILL | Gtk::EXPAND, (_widgets.size() == 1) ? (Gtk::FILL | Gtk::EXPAND) : Gtk::SHRINK);
}
}
}