Fix library blacklist and GTK dialogs

This commit is contained in:
Pera Pisar 2019-04-22 23:03:35 +02:00
parent b8c6434a14
commit acef1b4c0e
No known key found for this signature in database
GPG key ID: 6E1174E4DF875DCA
2 changed files with 4 additions and 3 deletions

View file

@ -17,7 +17,7 @@ line = gets
files = []
while line
if line =~ / => (\/.*) \(/
if not BLACKLIST.include? $1
if not BLACKLIST.any? {|library| $1.end_with? library }
files << $1
end
end

View file

@ -485,12 +485,12 @@ bool Oneshot::msgbox(int type, const char *body, const char *title)
{
if (!title)
title = "";
#if defined OS_LINUX
#ifdef OS_LINUX
linux_DialogData data = {type, body, title, 0};
gdk_threads_add_idle(linux_dialog, &data);
gtk_main();
return data.result;
#endif
#else
// SDL message box
// Button data
@ -570,6 +570,7 @@ bool Oneshot::msgbox(int type, const char *body, const char *title)
#endif
return button ? true : false;
#endif // #ifdef OS_LINUX
}
std::string Oneshot::textinput(const char* prompt, int char_limit, const char* fontName) {