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:
parent
18228edd54
commit
6c9b03e2a3
@ -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);
|
table->attach (*hb, col, cend, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user