Revision 651 src/mimeview.c

mimeview.c (revision 651)
1122 1122
#ifdef G_OS_WIN32
1123 1123
	if (!cmdline) {
1124 1124
		DWORD dwtype;
1125
		AlertValue avalue;
1126 1125

  
1127 1126
		if (str_has_suffix_case(filename, ".exe") ||
1128 1127
		    str_has_suffix_case(filename, ".com") ||
......
1132 1131
		    str_has_suffix_case(filename, ".vbs") ||
1133 1132
		    str_has_suffix_case(filename, ".js")  ||
1134 1133
		    GetBinaryType(filename, &dwtype)) {
1135
			avalue = alertpanel_full
1134
			alertpanel_full
1136 1135
				(_("Opening executable file"),
1137
				 _("This is an executable file. Do you really want to launch it?"),
1138
				 ALERT_WARNING, G_ALERTALTERNATE, FALSE,
1139
				 GTK_STOCK_YES, GTK_STOCK_NO, NULL);
1140
			if (avalue != G_ALERTDEFAULT)
1141
				return;
1136
				 _("This is an executable file. Opening executable file is restricted for security.\n"
1137
				   "If you want to launch it, save it to somewhere and make sure it is not an virus or something like a malicious program."),
1138
				 ALERT_WARNING, G_ALERTDEFAULT, FALSE,
1139
				 GTK_STOCK_OK, NULL, NULL);
1140
			return;
1142 1141
		}
1143 1142
		execute_open_file(filename, partinfo->content_type);
1144 1143
		return;

Also available in: Unified diff